Remove opt_remap_env_constness from rustc_query_impl

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
Miguel Guarniz 2022-08-07 13:54:01 -04:00
parent 4916e2b9e6
commit ffb925c0f0
2 changed files with 2 additions and 11 deletions

View File

@ -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]) => {

View File

@ -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]))*)