Use LocalDefId in ItemCtxt
This commit is contained in:
parent
2eb1c08e43
commit
979ef5981f
11 changed files with 110 additions and 112 deletions
|
@ -31,7 +31,7 @@ fn diagnostic_hir_wf_check<'tcx>(
|
|||
tcx.sess
|
||||
.delay_span_bug(tcx.def_span(def_id), "Performed HIR wfcheck without an existing error!");
|
||||
|
||||
let icx = ItemCtxt::new(tcx, def_id.to_def_id());
|
||||
let icx = ItemCtxt::new(tcx, def_id);
|
||||
|
||||
// To perform HIR-based WF checking, we iterate over all HIR types
|
||||
// that occur 'inside' the item we're checking. For example,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue