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_middle | |
| parent | 0ad96c1e1f12a21f4cb734acd76d94a27066700e (diff) | |
| download | rust-dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb.tar.gz rust-dc8cac8e8d1e7e8f9535bd53c4aa7d70cce617fb.zip | |
Nits
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/ty/region.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/region.rs b/compiler/rustc_middle/src/ty/region.rs index ab6316c9484..51be93d9a72 100644 --- a/compiler/rustc_middle/src/ty/region.rs +++ b/compiler/rustc_middle/src/ty/region.rs @@ -182,7 +182,7 @@ impl<'tcx> Region<'tcx> { } /// Is this region named by the user? - pub fn has_name(self, tcx: TyCtxt<'tcx>) -> bool { + pub fn is_named(self, tcx: TyCtxt<'tcx>) -> bool { match self.kind() { ty::ReEarlyParam(ebr) => ebr.is_named(), ty::ReBound(_, br) => br.kind.is_named(tcx), |
