diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-27 15:52:33 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-16 07:16:40 +1000 |
| commit | fe882bf330f00f7bc07327430fdded4164dac25e (patch) | |
| tree | 1c6677a36bd6f2bd3aa1e6e77fabaf181938b566 /compiler/rustc_middle/src | |
| parent | 414da5b63d699c1c648088114ad2796deb0ce737 (diff) | |
| download | rust-fe882bf330f00f7bc07327430fdded4164dac25e.tar.gz rust-fe882bf330f00f7bc07327430fdded4164dac25e.zip | |
Rename `LifetimeName` as `LifetimeKind`.
It's a much better name, more consistent with how we name such things. Also rename `Lifetime::res` as `Lifetime::kind` to match. I suspect this field used to have the type `LifetimeRes` and then the type was changed but the field name remained the same.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/diagnostics.rs b/compiler/rustc_middle/src/ty/diagnostics.rs index 09db6eee2c9..fbb57b8df6b 100644 --- a/compiler/rustc_middle/src/ty/diagnostics.rs +++ b/compiler/rustc_middle/src/ty/diagnostics.rs @@ -578,8 +578,8 @@ impl<'v> hir::intravisit::Visitor<'v> for TraitObjectVisitor<'v> { match ty.kind { hir::TyKind::TraitObject(_, tagged_ptr) if let hir::Lifetime { - res: - hir::LifetimeName::ImplicitObjectLifetimeDefault | hir::LifetimeName::Static, + kind: + hir::LifetimeKind::ImplicitObjectLifetimeDefault | hir::LifetimeKind::Static, .. } = tagged_ptr.pointer() => { |
