diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-19 17:54:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-19 17:54:42 +0200 |
| commit | 75de33cd1dbe8ed39ab1e5795673fcbcfb547a80 (patch) | |
| tree | 146a96e8ef95369b9834e8b642da65a671dce6ac /compiler/rustc_middle/src/ty | |
| parent | 9a13f4f0188d5a373815f23455250fd8d9575316 (diff) | |
| parent | 16d061ea77eebe963cac28b0cf13dd3cbb506b13 (diff) | |
| download | rust-75de33cd1dbe8ed39ab1e5795673fcbcfb547a80.tar.gz rust-75de33cd1dbe8ed39ab1e5795673fcbcfb547a80.zip | |
Rollup merge of #110531 - lcnr:type-system-stuff, r=aliemjay
small type system cleanup
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/flags.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/ty/flags.rs b/compiler/rustc_middle/src/ty/flags.rs index 5a6ee123811..68002bfcfbd 100644 --- a/compiler/rustc_middle/src/ty/flags.rs +++ b/compiler/rustc_middle/src/ty/flags.rs @@ -178,7 +178,7 @@ impl FlagComputation { &ty::Alias(ty::Projection, data) => { self.add_flags(TypeFlags::HAS_TY_PROJECTION); - self.add_projection_ty(data); + self.add_alias_ty(data); } &ty::Alias(ty::Opaque, ty::AliasTy { substs, .. }) => { @@ -267,7 +267,7 @@ impl FlagComputation { projection_ty, term, })) => { - self.add_projection_ty(projection_ty); + self.add_alias_ty(projection_ty); self.add_term(term); } ty::PredicateKind::WellFormed(arg) => { @@ -372,8 +372,8 @@ impl FlagComputation { } } - fn add_projection_ty(&mut self, projection_ty: ty::AliasTy<'_>) { - self.add_substs(projection_ty.substs); + fn add_alias_ty(&mut self, alias_ty: ty::AliasTy<'_>) { + self.add_substs(alias_ty.substs); } fn add_substs(&mut self, substs: &[GenericArg<'_>]) { |
