diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-13 11:07:42 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-14 15:36:39 +0000 |
| commit | a5cd3bde95da07589b7a3a0cee35ec9b390c72aa (patch) | |
| tree | 62a361e93cb91129b890e39964a2231902fcd102 /compiler/rustc_mir_transform/src | |
| parent | 4ffe3bdf992d2d9eebca9efc3fb3a240724a9fb3 (diff) | |
| download | rust-a5cd3bde95da07589b7a3a0cee35ec9b390c72aa.tar.gz rust-a5cd3bde95da07589b7a3a0cee35ec9b390c72aa.zip | |
Ensure no one constructs `AliasTy`s themselves
Diffstat (limited to 'compiler/rustc_mir_transform/src')
| -rw-r--r-- | compiler/rustc_mir_transform/src/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs index ef7589d3ef2..9d560f5c837 100644 --- a/compiler/rustc_mir_transform/src/inline.rs +++ b/compiler/rustc_mir_transform/src/inline.rs @@ -849,7 +849,7 @@ impl<'tcx> Visitor<'tcx> for CostChecker<'_, 'tcx> { }; let kind = match parent_ty.ty.kind() { - &ty::Alias(ty::Opaque, ty::AliasTy { def_id, substs }) => { + &ty::Alias(ty::Opaque, ty::AliasTy { def_id, substs, .. }) => { self.tcx.bound_type_of(def_id).subst(self.tcx, substs).kind() } kind => kind, |
