Skip to content

Commit 66046a7

Browse files
committed
Auto merge of #124972 - matthiaskrgr:rollup-3fablim, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #124615 (coverage: Further simplify extraction of mapping info from MIR) - #124778 (Fix parse error message for meta items) - #124797 (Refactor float `Primitive`s to a separate `Float` type) - #124888 (Migrate `run-make/rustdoc-output-path` to rmake) - #124957 (Make `Ty::builtin_deref` just return a `Ty`) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 643e56d + 94e6f58 commit 66046a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: crates/hir-ty/src/layout.rs

+6-6
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)