We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unwrap()
unwrap_or(DUMMY_HIR_ID)
1 parent 830e4fd commit 95fb7bfCopy full SHA for 95fb7bf
src/librustc_infer/infer/error_reporting/mod.rs
@@ -191,7 +191,7 @@ fn msg_span_from_early_bound_and_free_regions(
191
let sm = tcx.sess.source_map();
192
193
let scope = region.free_region_binding_scope(tcx);
194
- let node = tcx.hir().as_local_hir_id(scope).unwrap_or(hir::DUMMY_HIR_ID);
+ let node = tcx.hir().as_local_hir_id(scope).unwrap();
195
let tag = match tcx.hir().find(node) {
196
Some(Node::Block(_)) | Some(Node::Expr(_)) => "body",
197
Some(Node::Item(it)) => item_scope_tag(&it),
0 commit comments