]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/infer/error_reporting/nice_region_error/util.rs
cleanup: rename node_id_to_type(_opt)
[rust.git] / src / librustc / infer / error_reporting / nice_region_error / util.rs
index f73f8d8bb82be1b546ba8b53bc0418205c82c867..6db1bc382afe9b4f00dcd1d43c08757ffa586f71 100644 (file)
@@ -64,7 +64,7 @@ pub(super) fn find_arg_with_region(
                             // May return None; sometimes the tables are not yet populated.
                             let ty_hir_id = fn_decl.inputs[index].hir_id;
                             let arg_ty_span = hir.span(hir.hir_to_node_id(ty_hir_id));
-                            let ty = tables.node_id_to_type_opt(arg.hir_id)?;
+                            let ty = tables.node_type_opt(arg.hir_id)?;
                             let mut found_anon_region = false;
                             let new_arg_ty = self.tcx().fold_regions(&ty, &mut false, |r, _| {
                                 if *r == *anon_region {