Skip to content

Commit 322f222

Browse files
committed
remove code not doing anything
1 parent 1a104ff commit 322f222

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,6 @@ rustc_queries! {
12751275
query autodiff_attrs(def_id: DefId) -> &'tcx AutoDiffAttrs {
12761276
desc { |tcx| "computing autodiff attributes of `{}`", tcx.def_path_str(def_id) }
12771277
arena_cache
1278-
cache_on_disk_if { def_id.is_local() }
12791278
}
12801279

12811280
query asm_target_features(def_id: DefId) -> &'tcx FxIndexSet<Symbol> {

compiler/rustc_middle/src/ty/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ pub struct ResolverAstLowering {
215215

216216
pub next_node_id: ast::NodeId,
217217

218-
/// Mapping of autodiff function IDs
219-
pub autodiff_map: FxHashMap<LocalDefId, LocalDefId>,
220-
221218
pub node_id_to_def_id: NodeMap<LocalDefId>,
222219

223220
pub trait_map: NodeMap<Vec<hir::TraitCandidate>>,

compiler/rustc_resolve/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,6 @@ pub struct Resolver<'ra, 'tcx> {
11681168
node_id_to_def_id: NodeMap<Feed<'tcx, LocalDefId>>,
11691169
def_id_to_node_id: IndexVec<LocalDefId, ast::NodeId>,
11701170

1171-
autodiff_map: FxHashMap<LocalDefId, LocalDefId>,
1172-
11731171
/// Indices of unnamed struct or variant fields with unresolved attributes.
11741172
placeholder_field_indices: FxHashMap<NodeId, usize>,
11751173
/// When collecting definitions from an AST fragment produced by a macro invocation `ExpnId`
@@ -1541,7 +1539,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
15411539
next_node_id: CRATE_NODE_ID,
15421540
node_id_to_def_id,
15431541
def_id_to_node_id,
1544-
autodiff_map: Default::default(),
15451542
placeholder_field_indices: Default::default(),
15461543
invocation_parents,
15471544
trait_impl_items: Default::default(),
@@ -1671,7 +1668,6 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
16711668
.into_items()
16721669
.map(|(k, f)| (k, f.key()))
16731670
.collect(),
1674-
autodiff_map: self.autodiff_map,
16751671
trait_map: self.trait_map,
16761672
lifetime_elision_allowed: self.lifetime_elision_allowed,
16771673
lint_buffer: Steal::new(self.lint_buffer),

0 commit comments

Comments
 (0)