diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-08-07 13:54:01 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-08-15 13:49:39 -0400 |
| commit | ffb925c0f04cd2ba475ae923f92542a136ca3fbc (patch) | |
| tree | 9745ca1517fe159010092cbdb72cc81da3201872 /compiler/rustc_query_impl/src | |
| parent | 4916e2b9e6ef8cee6f9c6abb75bd01ba9dc07e5c (diff) | |
| download | rust-ffb925c0f04cd2ba475ae923f92542a136ca3fbc.tar.gz rust-ffb925c0f04cd2ba475ae923f92542a136ca3fbc.zip | |
Remove opt_remap_env_constness from rustc_query_impl
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
Diffstat (limited to 'compiler/rustc_query_impl/src')
| -rw-r--r-- | compiler/rustc_query_impl/src/plumbing.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs index eda4401c81d..5ebde81534b 100644 --- a/compiler/rustc_query_impl/src/plumbing.rs +++ b/compiler/rustc_query_impl/src/plumbing.rs @@ -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]))*) |
