diff options
| author | Michael Goulet <michael@errs.io> | 2022-08-29 03:53:33 +0000 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2022-09-12 16:55:59 -0700 |
| commit | b2ed2dcaaedf0a96dece85a5409b3a1f30a84360 (patch) | |
| tree | 09e5929727f25e3cec44443f4f9fdf857cddc0f3 /compiler/rustc_middle/src/ty/context.rs | |
| parent | 12ec2f0e34e230a5d95d7ef06c6de92efcdcbedf (diff) | |
| download | rust-b2ed2dcaaedf0a96dece85a5409b3a1f30a84360.tar.gz rust-b2ed2dcaaedf0a96dece85a5409b3a1f30a84360.zip | |
Rename some variants
Diffstat (limited to 'compiler/rustc_middle/src/ty/context.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index 1b6b97dc229..93597034721 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -63,9 +63,7 @@ use rustc_span::{Span, DUMMY_SP}; use rustc_target::abi::{Layout, LayoutS, TargetDataLayout, VariantIdx}; use rustc_target::spec::abi; use rustc_type_ir::sty::TyKind::*; -use rustc_type_ir::{ - InternAs, InternIteratorElement, Interner, TraitObjectRepresentation, TypeFlags, -}; +use rustc_type_ir::{DynKind, InternAs, InternIteratorElement, Interner, TypeFlags}; use std::any::Any; use std::borrow::Borrow; @@ -2547,7 +2545,7 @@ impl<'tcx> TyCtxt<'tcx> { self, obj: &'tcx List<ty::Binder<'tcx, ExistentialPredicate<'tcx>>>, reg: ty::Region<'tcx>, - repr: TraitObjectRepresentation, + repr: DynKind, ) -> Ty<'tcx> { self.mk_ty(Dynamic(obj, reg, repr)) } |
