diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-07-02 08:45:56 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-07-04 12:53:12 +0200 |
| commit | 675bfb6d169f29ffc3b0eadeab81901a32b79e73 (patch) | |
| tree | 9fc3e3c9ebad5e66000b795792af8c4573802aa3 /src | |
| parent | 01e0d83336d58f4fb1a25552ebd77226619b8137 (diff) | |
| download | rust-675bfb6d169f29ffc3b0eadeab81901a32b79e73.tar.gz rust-675bfb6d169f29ffc3b0eadeab81901a32b79e73.zip | |
fix a dep_graph doc regarding type_of_item
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/dep_graph/dep_tracking_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/dep_graph/dep_tracking_map.rs b/src/librustc/dep_graph/dep_tracking_map.rs index 31d5780a0c0..ee22d0b755a 100644 --- a/src/librustc/dep_graph/dep_tracking_map.rs +++ b/src/librustc/dep_graph/dep_tracking_map.rs @@ -55,7 +55,7 @@ impl<M: DepTrackingMapConfig> MemoizationMap for RefCell<DepTrackingMap<M>> { /// /// ``` /// fn type_of_item(..., item: &hir::Item) -> Ty<'tcx> { - /// let item_def_id = ccx.tcx.hir().local_def_id_from_node_id(it.id); + /// let item_def_id = ccx.tcx.hir().local_def_id(it.hir_id); /// ccx.tcx.item_types.memoized(item_def_id, || { /// ccx.tcx.dep_graph.read(DepNode::Hir(item_def_id)); // (*) /// compute_type_of_item(ccx, item) |
