@@ -6,7 +6,7 @@ use hir_def::LocalFieldId;
66
77use crate :: { db:: HirDatabase , Interner , Substitution , Ty } ;
88
9- use self :: adt:: univariant_uninterned ;
9+ use self :: adt:: univariant ;
1010pub use self :: {
1111 adt:: { layout_of_adt_query, layout_of_adt_recover} ,
1212 target:: current_target_data_layout_query,
@@ -113,7 +113,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty) -> Result<Layout, LayoutError
113113 TyKind :: Tuple ( len, tys) => {
114114 let kind = if * len == 0 { StructKind :: AlwaysSized } else { StructKind :: MaybeUnsized } ;
115115
116- univariant_uninterned (
116+ univariant (
117117 dl,
118118 & tys. iter ( Interner )
119119 . map ( |k| layout_of_ty ( db, k. assert_ty_ref ( Interner ) ) )
@@ -197,7 +197,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty) -> Result<Layout, LayoutError
197197 scalar_pair ( dl, data_ptr, metadata)
198198 }
199199 TyKind :: FnDef ( _, _) => {
200- univariant_uninterned ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?
200+ univariant ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?
201201 }
202202 TyKind :: Str => Layout {
203203 variants : Variants :: Single ,
@@ -217,7 +217,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty) -> Result<Layout, LayoutError
217217 } ,
218218 TyKind :: Dyn ( _) | TyKind :: Foreign ( _) => {
219219 let mut unit =
220- univariant_uninterned ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?;
220+ univariant ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?;
221221 match unit. abi {
222222 Abi :: Aggregate { ref mut sized } => * sized = false ,
223223 _ => user_error ! ( "bug" ) ,
0 commit comments