Skip to content

Commit 05c4ea4

Browse files
committed
Remove derive_macros
1 parent cf3b790 commit 05c4ea4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/librustc/ty/context.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use ty::maps;
5050
use ty::steal::Steal;
5151
use ty::BindingMode;
5252
use ty::CanonicalTy;
53-
use util::nodemap::{NodeMap, DefIdSet, ItemLocalMap};
53+
use util::nodemap::{DefIdSet, ItemLocalMap};
5454
use util::nodemap::{FxHashMap, FxHashSet};
5555
use rustc_data_structures::accumulate_vec::AccumulateVec;
5656
use rustc_data_structures::stable_hasher::{HashStable, hash_stable_hashmap,
@@ -888,10 +888,6 @@ pub struct GlobalCtxt<'tcx> {
888888
/// Used to prevent layout from recursing too deeply.
889889
pub layout_depth: Cell<usize>,
890890

891-
/// Map from function to the `#[derive]` mode that it's defining. Only used
892-
/// by `proc-macro` crates.
893-
pub derive_macros: RefCell<NodeMap<Symbol>>,
894-
895891
stability_interner: Lock<FxHashSet<&'tcx attr::Stability>>,
896892

897893
pub interpret_interner: InterpretInterner<'tcx>,
@@ -1274,7 +1270,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
12741270
data_layout,
12751271
layout_interner: Lock::new(FxHashSet()),
12761272
layout_depth: Cell::new(0),
1277-
derive_macros: RefCell::new(NodeMap()),
12781273
stability_interner: Lock::new(FxHashSet()),
12791274
interpret_interner: Default::default(),
12801275
tx_to_llvm_workers: Lock::new(tx),

0 commit comments

Comments
 (0)