File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ macro_rules! separate_provide_extern_default {
162
162
} ;
163
163
}
164
164
165
+ #[ macro_export]
165
166
macro_rules! opt_remap_env_constness {
166
167
( [ ] [ $name: ident] ) => { } ;
167
168
( [ ( remap_env_constness) $( $rest: tt) * ] [ $name: ident] ) => {
Original file line number Diff line number Diff line change @@ -233,21 +233,11 @@ macro_rules! get_provider {
233
233
} ;
234
234
}
235
235
236
- macro_rules! opt_remap_env_constness {
237
- ( [ ] [ $name: ident] ) => { } ;
238
- ( [ ( remap_env_constness) $( $rest: tt) * ] [ $name: ident] ) => {
239
- let $name = $name. without_const( ) ;
240
- } ;
241
- ( [ $other: tt $( $modifiers: tt) * ] [ $name: ident] ) => {
242
- opt_remap_env_constness!( [ $( $modifiers) * ] [ $name] )
243
- } ;
244
- }
245
-
246
236
macro_rules! define_queries {
247
237
( <$tcx: tt>
248
238
$( $( #[ $attr: meta] ) *
249
239
[ $( $modifiers: tt) * ] fn $name: ident( $( $K: tt) * ) -> $V: ty, ) * ) => {
250
-
240
+ use rustc_middle :: opt_remap_env_constness ;
251
241
define_queries_struct! {
252
242
tcx: $tcx,
253
243
input: ( $( ( [ $( $modifiers) * ] [ $( $attr) * ] [ $name] ) ) * )
You can’t perform that action at this time.
0 commit comments