Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0577300

Browse files
committedMar 19, 2025
Address review comments.
1 parent 25896cc commit 0577300

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎compiler/rustc_resolve/src/macros.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,10 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
11251125
edition,
11261126
);
11271127

1128-
if find_attr!(attrs.iter(), AttributeKind::RustcMacroEdition2021 {}) {
1128+
// The #[rustc_macro_edition_2021] attribute is used by the pin!() macro
1129+
// as a temporary workaround for a regression in expressiveness in Rust 2024.
1130+
// See https://github.com/rust-lang/rust/issues/138718.
1131+
if find_attr!(attrs.iter(), AttributeKind::RustcMacroEdition2021) {
11291132
ext.edition = Edition::Edition2021;
11301133
}
11311134

0 commit comments

Comments
 (0)
Failed to load comments.