From e0e9ff06af899b12d263b6e84af348615d65701f Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Wed, 25 Dec 2019 00:31:55 +0100 Subject: [PATCH] remove DefId::to_dep_node (dead code) --- src/librustc/dep_graph/dep_node.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs index 8c68f7272c02..0dae5d05066e 100644 --- a/src/librustc/dep_graph/dep_node.rs +++ b/src/librustc/dep_graph/dep_node.rs @@ -396,12 +396,6 @@ impl DefPathHash { } } -impl DefId { - pub fn to_dep_node(self, tcx: TyCtxt<'_>, kind: DepKind) -> DepNode { - DepNode::from_def_path_hash(kind, tcx.def_path_hash(self)) - } -} - rustc_dep_node_append!([define_dep_nodes!][ <'tcx> // We use this for most things when incr. comp. is turned off. [] Null,