diff options
| author | Michael Goulet <michael@errs.io> | 2025-07-04 18:09:11 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-07-04 18:26:09 +0000 |
| commit | dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb (patch) | |
| tree | 409509d553c5330f6ed5175548fbc9d6893c9ab9 /compiler/rustc_borrowck | |
| parent | 0ad96c1e1f12a21f4cb734acd76d94a27066700e (diff) | |
| download | rust-dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb.tar.gz rust-dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb.zip | |
Nits
Diffstat (limited to 'compiler/rustc_borrowck')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/region_errors.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs index 3ec33e5e5c8..040a0607db5 100644 --- a/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs @@ -4195,7 +4195,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> { let return_ty = sig.output(); match return_ty.skip_binder().kind() { ty::Ref(return_region, _, _) - if return_region.has_name(self.infcx.tcx) && !is_closure => + if return_region.is_named(self.infcx.tcx) && !is_closure => { // This is case 1 from above, return type is a named reference so we need to // search for relevant arguments. diff --git a/compiler/rustc_borrowck/src/diagnostics/region_errors.rs b/compiler/rustc_borrowck/src/diagnostics/region_errors.rs index d14f2417ea7..b130cf8ed27 100644 --- a/compiler/rustc_borrowck/src/diagnostics/region_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/region_errors.rs @@ -853,7 +853,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> { }; let lifetime = - if f.has_name(self.infcx.tcx) { fr_name.name } else { kw::UnderscoreLifetime }; + if f.is_named(self.infcx.tcx) { fr_name.name } else { kw::UnderscoreLifetime }; let arg = match param.param.pat.simple_ident() { Some(simple_ident) => format!("argument `{simple_ident}`"), |
