about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/check/wfcheck.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-07-04 18:09:11 +0000
committerMichael Goulet <michael@errs.io>2025-07-04 18:26:09 +0000
commitdc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb (patch)
tree409509d553c5330f6ed5175548fbc9d6893c9ab9 /compiler/rustc_hir_analysis/src/check/wfcheck.rs
parent0ad96c1e1f12a21f4cb734acd76d94a27066700e (diff)
downloadrust-dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb.tar.gz
rust-dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb.zip
Nits
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/wfcheck.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/check/wfcheck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/wfcheck.rs b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
index 089ba14bcf7..0a3e018b79a 100644
--- a/compiler/rustc_hir_analysis/src/check/wfcheck.rs
+++ b/compiler/rustc_hir_analysis/src/check/wfcheck.rs
@@ -2338,7 +2338,7 @@ fn lint_redundant_lifetimes<'tcx>(
             lifetimes.push(ty::Region::new_late_param(tcx, owner_id.to_def_id(), kind));
         }
     }
-    lifetimes.retain(|candidate| candidate.has_name(tcx));
+    lifetimes.retain(|candidate| candidate.is_named(tcx));
 
     // Keep track of lifetimes which have already been replaced with other lifetimes.
     // This makes sure that if `'a = 'b = 'c`, we don't say `'c` should be replaced by