Skip to content

Commit

Permalink
Remove usages of opt_remap_env_constness
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Guarniz <[email protected]>
  • Loading branch information
kckeiks committed Aug 16, 2022
1 parent ffb925c commit 3a37f0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion compiler/rustc_middle/src/ty/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ macro_rules! separate_provide_extern_default {
};
}

#[macro_export]
macro_rules! opt_remap_env_constness {
([][$name:ident]) => {};
([(remap_env_constness) $($rest:tt)*][$name:ident]) => {
Expand Down
3 changes: 0 additions & 3 deletions compiler/rustc_query_impl/src/plumbing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ 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]))*)
Expand All @@ -249,7 +248,6 @@ macro_rules! define_queries {
// Create an eponymous constructor for each query.
$(#[allow(nonstandard_style)] $(#[$attr])*
pub fn $name<$tcx>(tcx: QueryCtxt<$tcx>, key: query_keys::$name<$tcx>) -> QueryStackFrame {
opt_remap_env_constness!([$($modifiers)*][key]);
let kind = dep_graph::DepKind::$name;
let name = stringify!($name);
// Disable visible paths printing for performance reasons.
Expand Down Expand Up @@ -539,7 +537,6 @@ macro_rules! define_queries_struct {
key: query_keys::$name<$tcx>,
mode: QueryMode,
) -> Option<query_stored::$name<$tcx>> {
opt_remap_env_constness!([$($modifiers)*][key]);
let qcx = QueryCtxt { tcx, queries: self };
get_query::<queries::$name<$tcx>, _>(qcx, span, key, mode)
})*
Expand Down

0 comments on commit 3a37f0b

Please sign in to comment.