Skip to content

Commit 88ef094

Browse files
authored
Rollup merge of rust-lang#122806 - compiler-errors:type-ascribe, r=fmease
Make `type_ascribe!` not a built-in The only weird thing is the macro expansion note. I wonder if we should suppress these 🤔 r? ````@fmease```` since you told me about builtin# lol
2 parents d8fbe99 + 2148556 commit 88ef094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/macros/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1704,14 +1704,14 @@ pub(crate) mod builtin {
17041704
}
17051705

17061706
/// Unstable placeholder for type ascription.
1707-
#[rustc_builtin_macro]
1707+
#[allow_internal_unstable(builtin_syntax)]
17081708
#[unstable(
17091709
feature = "type_ascription",
17101710
issue = "23416",
17111711
reason = "placeholder syntax for type ascription"
17121712
)]
17131713
pub macro type_ascribe($expr:expr, $ty:ty) {
1714-
/* compiler built-in */
1714+
builtin # type_ascribe($expr, $ty)
17151715
}
17161716

17171717
/// Unstable implementation detail of the `rustc` compiler, do not use.

0 commit comments

Comments
 (0)