Skip to content

Commit 7559d68

Browse files
committed
Add sym::macro_pin diagnostic item for core::pin::pin!()
1 parent 91f22c4 commit 7559d68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/pin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,7 @@ unsafe impl<T: ?Sized> PinCoerceUnsized for *mut T {}
19351935
#[stable(feature = "pin_macro", since = "1.68.0")]
19361936
#[rustc_macro_transparency = "semitransparent"]
19371937
#[allow_internal_unstable(super_let)]
1938+
#[rustc_diagnostic_item = "pin_macro"]
19381939
// `super` gets removed by rustfmt
19391940
#[rustfmt::skip]
19401941
pub macro pin($value:expr $(,)?) {

0 commit comments

Comments
 (0)