Skip to content

Commit d3f8483

Browse files
committed
Fixed compilation error
Apparently this one test is not used on my machine?
1 parent ebe0459 commit d3f8483

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/test/mir-opt/inline/inline-into-box-place/32bit/rustc.main.Inline.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- // + ty: fn() -> std::vec::Vec<u32> {std::vec::Vec::<u32>::new}
2525
- // + val: Value(Scalar(<ZST>))
2626
+ // + ty: alloc::raw_vec::RawVec<u32>
27-
+ // + val: Value(ByRef { alloc: Allocation { bytes: [4, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), undef_mask: UndefMask { blocks: [255], len: Size { raw: 8 } }, size: Size { raw: 8 }, align: Align { pow2: 2 }, mutability: Not, extra: () }, offset: Size { raw: 0 } })
27+
+ // + val: Value(ByRef { alloc: Allocation { bytes: [4, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), uninit_mask: UninitMask { blocks: [255], len: Size { raw: 8 } }, size: Size { raw: 8 }, align: Align { pow2: 2 }, mutability: Not, extra: () }, offset: Size { raw: 0 } })
2828
// mir::Constant
2929
- // + span: $DIR/inline-into-box-place.rs:8:33: 8:41
3030
- // + user_ty: UserType(1)
@@ -41,7 +41,7 @@
4141
- _0 = const (); // bb2[2]: scope 0 at $DIR/inline-into-box-place.rs:7:11: 9:2
4242
+ // + span: $SRC_DIR/liballoc/vec.rs:LL:COL
4343
+ // + user_ty: UserType(0)
44-
+ // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Value(ByRef { alloc: Allocation { bytes: [4, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), undef_mask: UndefMask { blocks: [255], len: Size { raw: 8 } }, size: Size { raw: 8 }, align: Align { pow2: 2 }, mutability: Not, extra: () }, offset: Size { raw: 0 } }) }
44+
+ // + literal: Const { ty: alloc::raw_vec::RawVec<u32>, val: Value(ByRef { alloc: Allocation { bytes: [4, 0, 0, 0, 0, 0, 0, 0], relocations: Relocations(SortedMap { data: [] }), uninit_mask: UninitMask { blocks: [255], len: Size { raw: 8 } }, size: Size { raw: 8 }, align: Align { pow2: 2 }, mutability: Not, extra: () }, offset: Size { raw: 0 } }) }
4545
+ ((*_4).1: usize) = const 0usize; // bb0[5]: scope 2 at $SRC_DIR/liballoc/vec.rs:LL:COL
4646
// ty::Const
4747
+ // + ty: usize

src/test/ui-fulldeps/undef_mask.rs renamed to src/test/ui-fulldeps/uninit_mask.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
extern crate rustc_middle;
88
extern crate rustc_target;
99

10-
use rustc_middle::mir::interpret::UndefMask;
10+
use rustc_middle::mir::interpret::UninitMask;
1111
use rustc_target::abi::Size;
1212

1313
fn main() {
14-
let mut mask = UndefMask::new(Size::from_bytes(500), false);
14+
let mut mask = Uninit::new(Size::from_bytes(500), false);
1515
assert!(!mask.get(Size::from_bytes(499)));
1616
mask.set(Size::from_bytes(499), true);
1717
assert!(mask.get(Size::from_bytes(499)));

0 commit comments

Comments
 (0)