Skip to content

Commit a65c09f

Browse files
committed
Auto merge of #3597 - rust-lang:rustup-2024-05-11, r=RalfJung
Automatic Rustup
2 parents 81b2aa9 + 61ff41e commit a65c09f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/hir-ty/src/layout.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use base_db::salsa::Cycle;
66
use chalk_ir::{AdtId, FloatTy, IntTy, TyKind, UintTy};
77
use hir_def::{
88
layout::{
9-
Abi, FieldsShape, Integer, LayoutCalculator, LayoutS, Primitive, ReprOptions, Scalar, Size,
10-
StructKind, TargetDataLayout, WrappingRange,
9+
Abi, FieldsShape, Float, Integer, LayoutCalculator, LayoutS, Primitive, ReprOptions,
10+
Scalar, Size, StructKind, TargetDataLayout, WrappingRange,
1111
},
1212
LocalFieldId, StructId,
1313
};
@@ -264,10 +264,10 @@ pub fn layout_of_ty_query(
264264
),
265265
chalk_ir::Scalar::Float(f) => scalar(
266266
dl,
267-
match f {
268-
FloatTy::F32 => Primitive::F32,
269-
FloatTy::F64 => Primitive::F64,
270-
},
267+
Primitive::Float(match f {
268+
FloatTy::F32 => Float::F32,
269+
FloatTy::F64 => Float::F64,
270+
}),
271271
),
272272
},
273273
TyKind::Tuple(len, tys) => {

0 commit comments

Comments
 (0)