Skip to content

Commit 962a8e9

Browse files
fixup! Adds expr_2024 migration lit
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 962a9a1 commit 962a8e9

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

compiler/rustc_lint/messages.ftl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ lint_lintpass_by_hand = implementing `LintPass` by hand
443443
lint_macro_expanded_macro_exports_accessed_by_absolute_paths = macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
444444
.note = the macro is defined here
445445
446+
lint_macro_expr_fragment_specifier_2024_migration =
447+
the `expr` fragment specifier will accept more expressions in the 2024 edition.
448+
.suggestion = to keep the existing behavior, use the `expr_2021` fragment specifier.
446449
lint_macro_is_private = macro `{$ident}` is private
447450
448451
lint_macro_rule_never_used = rule #{$n} of macro `{$name}` is never used
@@ -889,7 +892,3 @@ lint_variant_size_differences =
889892
890893
lint_wasm_c_abi =
891894
older versions of the `wasm-bindgen` crate will be incompatible with future versions of Rust; please update to `wasm-bindgen` v0.2.88
892-
893-
lint_macro_expr_fragment_specifier_2024_migration =
894-
the `expr` fragment specifier will accept more expressions in the 2024 edition.
895-
.suggestion = to keep the existing behavior, use the `expr_2021` fragment specifier.

compiler/rustc_lint/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ mod late;
5858
mod let_underscore;
5959
mod levels;
6060
mod lints;
61+
mod macro_expr_fragment_specifier_2024_migration;
6162
mod map_unit_fn;
6263
mod methods;
6364
mod multiple_supertrait_upcastable;
@@ -77,7 +78,6 @@ mod traits;
7778
mod types;
7879
mod unit_bindings;
7980
mod unused;
80-
mod macro_expr_fragment_specifier_2024_migration;
8181

8282
pub use shadowed_into_iter::{ARRAY_INTO_ITER, BOXED_SLICE_INTO_ITER};
8383

@@ -96,6 +96,7 @@ use impl_trait_overcaptures::ImplTraitOvercaptures;
9696
use internal::*;
9797
use invalid_from_utf8::*;
9898
use let_underscore::*;
99+
use macro_expr_fragment_specifier_2024_migration::*;
99100
use map_unit_fn::*;
100101
use methods::*;
101102
use multiple_supertrait_upcastable::*;
@@ -114,7 +115,6 @@ use traits::*;
114115
use types::*;
115116
use unit_bindings::*;
116117
use unused::*;
117-
use macro_expr_fragment_specifier_2024_migration::*;
118118

119119
/// Useful for other parts of the compiler / Clippy.
120120
pub use builtin::{MissingDoc, SoftLints};

0 commit comments

Comments
 (0)