diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-25 00:31:55 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-04 19:01:42 +0100 |
| commit | e0e9ff06af899b12d263b6e84af348615d65701f (patch) | |
| tree | 455ad95a0781ba9050f244f3e26f25799d5ae3fa | |
| parent | 2f64ab66339405ae4d5636a238268e2cd4a309ff (diff) | |
| download | rust-e0e9ff06af899b12d263b6e84af348615d65701f.tar.gz rust-e0e9ff06af899b12d263b6e84af348615d65701f.zip | |
remove DefId::to_dep_node (dead code)
| -rw-r--r-- | src/librustc/dep_graph/dep_node.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs index 8c68f7272c0..0dae5d05066 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, |
