File tree 3 files changed +2
-11
lines changed
3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1558,17 +1558,6 @@ pub(crate) mod builtin {
1558
1558
/* compiler built-in */
1559
1559
}
1560
1560
1561
- /// Unstable placeholder for type ascription.
1562
- #[ unstable(
1563
- feature = "type_ascription" ,
1564
- issue = "23416" ,
1565
- reason = "placeholder syntax for type ascription"
1566
- ) ]
1567
- #[ cfg( bootstrap) ]
1568
- pub macro type_ascribe ( $expr: expr, $ty: ty) {
1569
- $expr: $ty
1570
- }
1571
-
1572
1561
/// Unstable implementation detail of the `rustc` compiler, do not use.
1573
1562
#[ rustc_builtin_macro]
1574
1563
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -104,4 +104,5 @@ pub use crate::macros::builtin::cfg_eval;
104
104
issue = "23416" ,
105
105
reason = "placeholder syntax for type ascription"
106
106
) ]
107
+ #[ cfg( not( bootstrap) ) ]
107
108
pub use crate :: macros:: builtin:: type_ascribe;
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ pub use core::prelude::v1::cfg_eval;
91
91
issue = "23416" ,
92
92
reason = "placeholder syntax for type ascription"
93
93
) ]
94
+ #[ cfg( not( bootstrap) ) ]
94
95
pub use core:: prelude:: v1:: type_ascribe;
95
96
96
97
// The file so far is equivalent to src/libcore/prelude/v1.rs,
You can’t perform that action at this time.
0 commit comments