Skip to content

Commit 3434a22

Browse files
Rollup merge of rust-lang#143015 - samueltardieu:pin-macro-diag-item, r=Urgau
Add `sym::macro_pin` diagnostic item for `core::pin::pin!()`
2 parents 5215f1a + 7559d68 commit 3434a22

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)