about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-03-19 17:29:31 +0100
committerJana Dönszelmann <jana@donsz.nl>2025-03-19 17:37:35 +0100
commit7c085f7ffdf731175430b908bc11bd97282cff9e (patch)
tree83cbcafe22c15fd17f0e6675486a15f24f617ba3 /library/core/src
parentc4b38a596767c9c6275c937cf3a2d4b9612b4875 (diff)
add rustc_macro_edition_2021
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/pin.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs
index 7fcd19f67ee..bc097bf198d 100644
--- a/library/core/src/pin.rs
+++ b/library/core/src/pin.rs
@@ -1943,6 +1943,7 @@ unsafe impl<T: ?Sized> PinCoerceUnsized for *mut T {}
 #[stable(feature = "pin_macro", since = "1.68.0")]
 #[rustc_macro_transparency = "semitransparent"]
 #[allow_internal_unstable(unsafe_pin_internals)]
+#[cfg_attr(not(bootstrap), rustc_macro_edition_2021)]
 pub macro pin($value:expr $(,)?) {
     // This is `Pin::new_unchecked(&mut { $value })`, so, for starters, let's
     // review such a hypothetical macro (that any user-code could define):