File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 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 {
162162 } ;
163163}
164164
165+ #[ macro_export]
165166macro_rules! opt_remap_env_constness {
166167 ( [ ] [ $name: ident] ) => { } ;
167168 ( [ ( 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 {
233233 } ;
234234}
235235
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-
246236macro_rules! define_queries {
247237 ( <$tcx: tt>
248238 $( $( #[ $attr: meta] ) *
249239 [ $( $modifiers: tt) * ] fn $name: ident( $( $K: tt) * ) -> $V: ty, ) * ) => {
250-
240+ use rustc_middle :: opt_remap_env_constness ;
251241 define_queries_struct! {
252242 tcx: $tcx,
253243 input: ( $( ( [ $( $modifiers) * ] [ $( $attr) * ] [ $name] ) ) * )
You can’t perform that action at this time.
0 commit comments