Skip to content

Commit 146fe45

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 f284eb2 + b75b14f commit 146fe45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,6 +1617,7 @@ symbols! {
16171617
pie,
16181618
pin,
16191619
pin_ergonomics,
1620+
pin_macro,
16201621
platform_intrinsics,
16211622
plugin,
16221623
plugin_registrar,

library/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)