From 05c4ea47fefc0c5fbae7c48bf654230414910242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Sun, 1 Apr 2018 08:16:36 +0200 Subject: [PATCH] Remove derive_macros --- src/librustc/ty/context.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs index 677b7afc95a3..83d9aa6dd86a 100644 --- a/src/librustc/ty/context.rs +++ b/src/librustc/ty/context.rs @@ -50,7 +50,7 @@ use ty::maps; use ty::steal::Steal; use ty::BindingMode; use ty::CanonicalTy; -use util::nodemap::{NodeMap, DefIdSet, ItemLocalMap}; +use util::nodemap::{DefIdSet, ItemLocalMap}; use util::nodemap::{FxHashMap, FxHashSet}; use rustc_data_structures::accumulate_vec::AccumulateVec; use rustc_data_structures::stable_hasher::{HashStable, hash_stable_hashmap, @@ -888,10 +888,6 @@ pub struct GlobalCtxt<'tcx> { /// Used to prevent layout from recursing too deeply. pub layout_depth: Cell, - /// Map from function to the `#[derive]` mode that it's defining. Only used - /// by `proc-macro` crates. - pub derive_macros: RefCell>, - stability_interner: Lock>, pub interpret_interner: InterpretInterner<'tcx>, @@ -1274,7 +1270,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> { data_layout, layout_interner: Lock::new(FxHashSet()), layout_depth: Cell::new(0), - derive_macros: RefCell::new(NodeMap()), stability_interner: Lock::new(FxHashSet()), interpret_interner: Default::default(), tx_to_llvm_workers: Lock::new(tx),