File tree 3 files changed +29
-0
lines changed
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -1714,6 +1714,18 @@ pub(crate) mod builtin {
1714
1714
builtin # type_ascribe( $expr, $ty)
1715
1715
}
1716
1716
1717
+ #[ cfg( not( bootstrap) ) ]
1718
+ /// Unstable placeholder for deref patterns.
1719
+ #[ allow_internal_unstable( builtin_syntax) ]
1720
+ #[ unstable(
1721
+ feature = "deref_patterns" ,
1722
+ issue = "87121" ,
1723
+ reason = "placeholder syntax for deref patterns"
1724
+ ) ]
1725
+ pub macro deref( $pat: pat) {
1726
+ builtin # deref( $pat)
1727
+ }
1728
+
1717
1729
/// Unstable implementation detail of the `rustc` compiler, do not use.
1718
1730
#[ rustc_builtin_macro]
1719
1731
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -103,3 +103,11 @@ pub use crate::macros::builtin::cfg_eval;
103
103
reason = "placeholder syntax for type ascription"
104
104
) ]
105
105
pub use crate :: macros:: builtin:: type_ascribe;
106
+
107
+ #[ cfg( not( bootstrap) ) ]
108
+ #[ unstable(
109
+ feature = "deref_patterns" ,
110
+ issue = "87121" ,
111
+ reason = "placeholder syntax for deref patterns"
112
+ ) ]
113
+ pub use crate :: macros:: builtin:: deref;
Original file line number Diff line number Diff line change @@ -91,6 +91,15 @@ pub use core::prelude::v1::cfg_eval;
91
91
) ]
92
92
pub use core:: prelude:: v1:: type_ascribe;
93
93
94
+ #[ cfg( not( bootstrap) ) ]
95
+ // Do not `doc(no_inline)` either.
96
+ #[ unstable(
97
+ feature = "deref_patterns" ,
98
+ issue = "87121" ,
99
+ reason = "placeholder syntax for deref patterns"
100
+ ) ]
101
+ pub use core:: prelude:: v1:: deref;
102
+
94
103
// The file so far is equivalent to core/src/prelude/v1.rs. It is duplicated
95
104
// rather than glob imported because we want docs to show these re-exports as
96
105
// pointing to within `std`.
You can’t perform that action at this time.
0 commit comments