@@ -6,7 +6,7 @@ use hir_def::LocalFieldId;
6
6
7
7
use crate :: { db:: HirDatabase , Interner , Substitution , Ty } ;
8
8
9
- use self :: adt:: univariant_uninterned ;
9
+ use self :: adt:: univariant ;
10
10
pub use self :: {
11
11
adt:: { layout_of_adt_query, layout_of_adt_recover} ,
12
12
target:: current_target_data_layout_query,
@@ -113,7 +113,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty) -> Result<Layout, LayoutError
113
113
TyKind :: Tuple ( len, tys) => {
114
114
let kind = if * len == 0 { StructKind :: AlwaysSized } else { StructKind :: MaybeUnsized } ;
115
115
116
- univariant_uninterned (
116
+ univariant (
117
117
dl,
118
118
& tys. iter ( Interner )
119
119
. 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
197
197
scalar_pair ( dl, data_ptr, metadata)
198
198
}
199
199
TyKind :: FnDef ( _, _) => {
200
- univariant_uninterned ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?
200
+ univariant ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?
201
201
}
202
202
TyKind :: Str => Layout {
203
203
variants : Variants :: Single ,
@@ -217,7 +217,7 @@ pub fn layout_of_ty(db: &dyn HirDatabase, ty: &Ty) -> Result<Layout, LayoutError
217
217
} ,
218
218
TyKind :: Dyn ( _) | TyKind :: Foreign ( _) => {
219
219
let mut unit =
220
- univariant_uninterned ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?;
220
+ univariant ( dl, & [ ] , & ReprOptions :: default ( ) , StructKind :: AlwaysSized ) ?;
221
221
match unit. abi {
222
222
Abi :: Aggregate { ref mut sized } => * sized = false ,
223
223
_ => user_error ! ( "bug" ) ,
0 commit comments