Remove opt_remap_env_constness from rustc_query_impl
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
parent
4916e2b9e6
commit
ffb925c0f0
@ -162,6 +162,7 @@ macro_rules! separate_provide_extern_default {
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! opt_remap_env_constness {
|
||||
([][$name:ident]) => {};
|
||||
([(remap_env_constness) $($rest:tt)*][$name:ident]) => {
|
||||
|
@ -233,21 +233,11 @@ macro_rules! get_provider {
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! opt_remap_env_constness {
|
||||
([][$name:ident]) => {};
|
||||
([(remap_env_constness) $($rest:tt)*][$name:ident]) => {
|
||||
let $name = $name.without_const();
|
||||
};
|
||||
([$other:tt $($modifiers:tt)*][$name:ident]) => {
|
||||
opt_remap_env_constness!([$($modifiers)*][$name])
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! define_queries {
|
||||
(<$tcx:tt>
|
||||
$($(#[$attr:meta])*
|
||||
[$($modifiers:tt)*] fn $name:ident($($K:tt)*) -> $V:ty,)*) => {
|
||||
|
||||
use rustc_middle::opt_remap_env_constness;
|
||||
define_queries_struct! {
|
||||
tcx: $tcx,
|
||||
input: ($(([$($modifiers)*] [$($attr)*] [$name]))*)
|
||||
|
Loading…
Reference in New Issue
Block a user