Skip to content

Commit

Permalink
remove code not doing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuseZ4 committed Nov 25, 2024
1 parent 1a104ff commit 322f222
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion compiler/rustc_middle/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,6 @@ rustc_queries! {
query autodiff_attrs(def_id: DefId) -> &'tcx AutoDiffAttrs {
desc { |tcx| "computing autodiff attributes of `{}`", tcx.def_path_str(def_id) }
arena_cache
cache_on_disk_if { def_id.is_local() }
}

query asm_target_features(def_id: DefId) -> &'tcx FxIndexSet<Symbol> {
Expand Down
3 changes: 0 additions & 3 deletions compiler/rustc_middle/src/ty/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ pub struct ResolverAstLowering {

pub next_node_id: ast::NodeId,

/// Mapping of autodiff function IDs
pub autodiff_map: FxHashMap<LocalDefId, LocalDefId>,

pub node_id_to_def_id: NodeMap<LocalDefId>,

pub trait_map: NodeMap<Vec<hir::TraitCandidate>>,
Expand Down
4 changes: 0 additions & 4 deletions compiler/rustc_resolve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,6 @@ pub struct Resolver<'ra, 'tcx> {
node_id_to_def_id: NodeMap<Feed<'tcx, LocalDefId>>,
def_id_to_node_id: IndexVec<LocalDefId, ast::NodeId>,

autodiff_map: FxHashMap<LocalDefId, LocalDefId>,

/// Indices of unnamed struct or variant fields with unresolved attributes.
placeholder_field_indices: FxHashMap<NodeId, usize>,
/// When collecting definitions from an AST fragment produced by a macro invocation `ExpnId`
Expand Down Expand Up @@ -1541,7 +1539,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
next_node_id: CRATE_NODE_ID,
node_id_to_def_id,
def_id_to_node_id,
autodiff_map: Default::default(),
placeholder_field_indices: Default::default(),
invocation_parents,
trait_impl_items: Default::default(),
Expand Down Expand Up @@ -1671,7 +1668,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
.into_items()
.map(|(k, f)| (k, f.key()))
.collect(),
autodiff_map: self.autodiff_map,
trait_map: self.trait_map,
lifetime_elision_allowed: self.lifetime_elision_allowed,
lint_buffer: Steal::new(self.lint_buffer),
Expand Down

0 comments on commit 322f222

Please sign in to comment.