Skip to content

Commit 2148556

Browse files
Make type_ascribe! not a built-in
1 parent dd7927a commit 2148556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/macros/mod.rs

Lines changed: 2 additions & 2 deletions
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)