We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01e0d83 commit 675bfb6Copy full SHA for 675bfb6
src/librustc/dep_graph/dep_tracking_map.rs
@@ -55,7 +55,7 @@ impl<M: DepTrackingMapConfig> MemoizationMap for RefCell<DepTrackingMap<M>> {
55
///
56
/// ```
57
/// fn type_of_item(..., item: &hir::Item) -> Ty<'tcx> {
58
- /// 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);
59
/// ccx.tcx.item_types.memoized(item_def_id, || {
60
/// ccx.tcx.dep_graph.read(DepNode::Hir(item_def_id)); // (*)
61
/// compute_type_of_item(ccx, item)
0 commit comments