Skip to content

Commit 30df69e

Browse files
cramertjnikomatsakis
authored andcommitted
Add ids to several region_maps calls
1 parent 800b783 commit 30df69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
701701
pub fn region_maps(self, node_id: NodeId) -> Rc<RegionMaps<'tcx>> {
702702
// Find the `NodeId` of the outermost function that wraps the node pointed to by node_id
703703
let mut outermost_fn_id_opt = None;
704-
let mut outermost_id = fn_id;
704+
let mut outermost_id = node_id;
705705
loop {
706706
if self.hir.is_fn(outermost_id) {
707707
outermost_fn_id_opt = Some(outermost_id);

0 commit comments

Comments
 (0)