diff options
| author | Michael Goulet <michael@errs.io> | 2023-10-19 16:41:43 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-19 16:42:58 +0000 |
| commit | e8e9f6a32af51fab7aae62f3f551aa3be8ff1ba2 (patch) | |
| tree | 2ac20b7c6053d85da4d384f9b386d737bfe80215 /compiler/rustc_middle/src/ty | |
| parent | c104861b7b51d2c28e7023e7e53db16cc6677e29 (diff) | |
| download | rust-e8e9f6a32af51fab7aae62f3f551aa3be8ff1ba2.tar.gz rust-e8e9f6a32af51fab7aae62f3f551aa3be8ff1ba2.zip | |
Uplift movability and mutability, the simple way
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 82c7f8ab486..cad3aac23d8 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -88,8 +88,6 @@ impl<'tcx> Interner for TyCtxt<'tcx> { type Predicate = Predicate<'tcx>; type PredicateKind = ty::PredicateKind<'tcx>; type TypeAndMut = TypeAndMut<'tcx>; - type Mutability = hir::Mutability; - type Movability = hir::Movability; type Ty = Ty<'tcx>; type Tys = &'tcx List<Ty<'tcx>>; type AliasTy = ty::AliasTy<'tcx>; @@ -118,13 +116,9 @@ impl<'tcx> Interner for TyCtxt<'tcx> { fn ty_and_mut_to_parts( TypeAndMut { ty, mutbl }: TypeAndMut<'tcx>, - ) -> (Self::Ty, Self::Mutability) { + ) -> (Self::Ty, ty::Mutability) { (ty, mutbl) } - - fn mutability_is_mut(mutbl: Self::Mutability) -> bool { - mutbl.is_mut() - } } type InternedSet<'tcx, T> = ShardedHashMap<InternedInSet<'tcx, T>, ()>; |
