Skip to content

Commit

Permalink
removed custom functions and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hackeryarn committed Apr 29, 2017
1 parent 00d02cf commit d3b7af0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/librustc/dep_graph/dep_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ pub enum DepNode<D: Clone + Debug> {
// not a hotspot.
ProjectionCache { def_ids: Vec<D> },

// Depnodes for MetaData
DescribeDef(D),
DefSpan(D),
}
Expand Down
14 changes: 3 additions & 11 deletions src/librustc/ty/maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ define_maps! { <'tcx>
[] def_symbol_name: SymbolName(DefId) -> ty::SymbolName,
[] symbol_name: symbol_name_dep_node(ty::Instance<'tcx>) -> ty::SymbolName,

[] describe_def: describe_def(DefId) -> Option<Def>,
[] def_span: def_span(DefId) -> Span
[] describe_def: DescribeDef(DefId) -> Option<Def>,
[] def_span: DefSpan(DefId) -> Span
}

fn coherent_trait_dep_node((_, def_id): (CrateNum, DefId)) -> DepNode<DefId> {
Expand Down Expand Up @@ -608,12 +608,4 @@ fn typeck_item_bodies_dep_node(_: CrateNum) -> DepNode<DefId> {

fn const_eval_dep_node((def_id, _): (DefId, &Substs)) -> DepNode<DefId> {
DepNode::ConstEval(def_id)
}

fn describe_def(def_id: DefId) -> DepNode<DefId> {
DepNode::DescribeDef(def_id)
}

fn def_span(def_id: DefId) -> DepNode<DefId> {
DepNode::DefSpan(def_id)
}
}

0 comments on commit d3b7af0

Please sign in to comment.