Do not enable OTP feature at runtime

Since Erlang/OTP 26:
```
OTP-18445
Application(s):
erts, stdlib
It is no longer necessary to enable a feature in the runtime system in order to load modules that are using it.
It is sufficient to enable the feature in the compiler when compiling it.
That means that to use feature maybe_expr in Erlang/OTP 26, it is sufficient to enable it during compilation.
In Erlang/OTP 27, feature maybe_expr will be enabled by default, but it will be possible to disable it.
```
This commit is contained in:
David Ansari 2023-06-13 15:40:07 +00:00
parent 2a27132290
commit c914e43097
6 changed files with 0 additions and 12 deletions

View File

@ -5,7 +5,6 @@ load("//:rabbitmq_home.bzl", "rabbitmq_home")
load("//:rabbitmq_run.bzl", "rabbitmq_run")
load(
"//:rabbitmq.bzl",
"ENABLE_FEATURE_MAYBE_EXPR",
"RABBITMQ_DIALYZER_OPTS",
"assert_suites",
"rabbitmq_app",
@ -1322,7 +1321,6 @@ eunit(
":test_test_rabbit_event_handler_beam",
":test_clustering_utils_beam",
],
erl_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
target = ":test_erlang_app",
test_env = {
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",

View File

@ -77,7 +77,6 @@ start_rabbitmq_server() {
-syslog logger '[]' \
-syslog syslog_error_logger false \
-kernel prevent_overlapping_partitions false \
-enable-feature maybe_expr \
"$@"
}

View File

@ -71,7 +71,6 @@ if "!RABBITMQ_ALLOW_INPUT!"=="" (
-syslog logger [] ^
-syslog syslog_error_logger false ^
-kernel prevent_overlapping_partitions false ^
-enable-feature maybe_expr ^
!STAR!
if ERRORLEVEL 1 (

View File

@ -201,7 +201,6 @@ set ERLANG_SERVICE_ARGUMENTS= ^
-syslog logger [] ^
-syslog syslog_error_logger false ^
-kernel prevent_overlapping_partitions false ^
-enable-feature maybe_expr ^
!STARVAR!
set ERLANG_SERVICE_ARGUMENTS=!ERLANG_SERVICE_ARGUMENTS:\=\\!

View File

@ -4,7 +4,6 @@ load("@rules_erlang//:dialyze.bzl", "dialyze", "plt")
load(
"//:rabbitmq.bzl",
"BROKER_VERSION_REQUIREMENTS_ANY",
"ENABLE_FEATURE_MAYBE_EXPR",
"RABBITMQ_DIALYZER_OPTS",
"assert_suites",
"broker_for_integration_suites",
@ -121,7 +120,6 @@ eunit(
":test_event_recorder_beam",
":test_util_beam",
],
erl_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
target = ":test_erlang_app",
)

View File

@ -22,8 +22,6 @@ STARTS_BACKGROUND_BROKER_TAG = "starts-background-broker"
MIXED_VERSION_CLUSTER_TAG = "mixed-version-cluster"
ENABLE_FEATURE_MAYBE_EXPR = "-enable-feature maybe_expr"
RABBITMQ_ERLC_OPTS = DEFAULT_ERLC_OPTS + [
"-DINSTR_MOD=gm",
]
@ -184,7 +182,6 @@ def rabbitmq_suite(
name = name,
app_name = app_name,
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
ct_run_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
data = native.glob(["test/{}_data/**/*".format(name)]) + data,
test_env = dict({
"RABBITMQ_CT_SKIP_AS_ERROR": "true",
@ -247,7 +244,6 @@ def rabbitmq_integration_suite(
suite_name = name,
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
tags = tags + [STARTS_BACKGROUND_BROKER_TAG],
ct_run_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
data = native.glob(["test/{}_data/**/*".format(name)]) + data,
test_env = dict({
"SKIP_MAKE_TEST_DIST": "true",
@ -271,7 +267,6 @@ def rabbitmq_integration_suite(
suite_name = name,
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
tags = tags + [STARTS_BACKGROUND_BROKER_TAG, MIXED_VERSION_CLUSTER_TAG],
ct_run_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
data = native.glob(["test/{}_data/**/*".format(name)]) + data,
test_env = dict({
"SKIP_MAKE_TEST_DIST": "true",