File tree 2 files changed +13
-10
lines changed
2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,4 @@ pub mod vec;
189
189
#[ unstable( feature = "liballoc_internals" , issue = "none" , reason = "implementation detail" ) ]
190
190
pub mod __export {
191
191
pub use core:: format_args;
192
-
193
- /// Force AST node to an expression to improve diagnostics in pattern position.
194
- #[ rustc_macro_transparency = "semitransparent" ]
195
- #[ unstable( feature = "liballoc_internals" , issue = "none" , reason = "implementation detail" ) ]
196
- pub macro force_expr( $e: expr) {
197
- $e
198
- }
199
192
}
Original file line number Diff line number Diff line change 40
40
#[ allow_internal_unstable( box_syntax, liballoc_internals) ]
41
41
macro_rules! vec {
42
42
( ) => (
43
- $crate:: __export :: force_expr!( $crate:: vec:: Vec :: new( ) )
43
+ $crate:: force_expr!( $crate:: vec:: Vec :: new( ) )
44
44
) ;
45
45
( $elem: expr; $n: expr) => (
46
- $crate:: __export :: force_expr!( $crate:: vec:: from_elem( $elem, $n) )
46
+ $crate:: force_expr!( $crate:: vec:: from_elem( $elem, $n) )
47
47
) ;
48
48
( $( $x: expr) ,+ $( , ) ?) => (
49
- $crate:: __export :: force_expr!( <[ _] >:: into_vec( box [ $( $x) ,+] ) )
49
+ $crate:: force_expr!( <[ _] >:: into_vec( box [ $( $x) ,+] ) )
50
50
) ;
51
51
}
52
52
@@ -111,3 +111,13 @@ macro_rules! format {
111
111
res
112
112
} }
113
113
}
114
+
115
+ /// Force AST node to an expression to improve diagnostics in pattern position.
116
+ #[ doc( hidden) ]
117
+ #[ macro_export]
118
+ #[ unstable( feature = "liballoc_internals" , issue = "none" , reason = "implementation detail" ) ]
119
+ macro_rules! force_expr {
120
+ ( $e: expr) => {
121
+ $e
122
+ } ;
123
+ }
You can’t perform that action at this time.
0 commit comments