Skip to content

Commit 8b257f4

Browse files
committed
consistently use is_deprecated_and_do_nothing
1 parent b2ee6e7 commit 8b257f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ macro_rules! options {
611611
$parse:ident,
612612
[$dep_tracking_marker:ident $( $tmod:ident )?],
613613
$desc:expr
614-
$(, deprecated_do_nothing: $dnn:literal )?)
614+
$(, is_deprecated_and_do_nothing: $dnn:literal )?)
615615
),* ,) =>
616616
(
617617
#[derive(Clone)]
@@ -2059,7 +2059,7 @@ options! {
20592059
#[rustc_lint_opt_deny_field_access("documented to do nothing")]
20602060
ar: String = (String::new(), parse_string, [UNTRACKED],
20612061
"this option is deprecated and does nothing",
2062-
deprecated_do_nothing: true),
2062+
is_deprecated_and_do_nothing: true),
20632063
#[rustc_lint_opt_deny_field_access("use `Session::code_model` instead of this field")]
20642064
code_model: Option<CodeModel> = (None, parse_code_model, [TRACKED],
20652065
"choose the code model to use (`rustc --print code-models` for details)"),
@@ -2098,7 +2098,7 @@ options! {
20982098
inline_threshold: Option<u32> = (None, parse_opt_number, [UNTRACKED],
20992099
"this option is deprecated and does nothing \
21002100
(consider using `-Cllvm-args=--inline-threshold=...`)",
2101-
deprecated_do_nothing: true),
2101+
is_deprecated_and_do_nothing: true),
21022102
#[rustc_lint_opt_deny_field_access("use `Session::instrument_coverage` instead of this field")]
21032103
instrument_coverage: InstrumentCoverage = (InstrumentCoverage::No, parse_instrument_coverage, [TRACKED],
21042104
"instrument the generated code to support LLVM source-based code coverage reports \
@@ -2139,7 +2139,7 @@ options! {
21392139
#[rustc_lint_opt_deny_field_access("documented to do nothing")]
21402140
no_stack_check: bool = (false, parse_no_value, [UNTRACKED],
21412141
"this option is deprecated and does nothing",
2142-
deprecated_do_nothing: true),
2142+
is_deprecated_and_do_nothing: true),
21432143
no_vectorize_loops: bool = (false, parse_no_value, [TRACKED],
21442144
"disable loop vectorization optimization passes"),
21452145
no_vectorize_slp: bool = (false, parse_no_value, [TRACKED],

0 commit comments

Comments
 (0)