Skip to content

Commit 2d3261d

Browse files
committed
Auto merge of #1398 - RalfJung:rustup, r=RalfJung
rustup; fix error messages
2 parents 308458a + fb3a067 commit 2d3261d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ff4df04799c406c8149a041c3163321758aac924
1+
97f3eeec8216d7155c24674b9be55e7c672bcae3

tests/compile-fail/issue-miri-1112.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl FunnyPointer {
3232
data: data as *const _ as *const (),
3333
vtable: ptr as *const _ as *const (),
3434
};
35-
let obj = std::mem::transmute::<FatPointer, *mut FunnyPointer>(obj); //~ ERROR invalid drop fn in vtable
35+
let obj = std::mem::transmute::<FatPointer, *mut FunnyPointer>(obj); //~ ERROR invalid drop function pointer in vtable
3636
&*obj
3737
}
3838
}

tests/compile-fail/validity/dangling_ref1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
use std::mem;
44

55
fn main() {
6-
let _x: &i32 = unsafe { mem::transmute(16usize) }; //~ ERROR reference to unallocated address 16
6+
let _x: &i32 = unsafe { mem::transmute(16usize) }; //~ ERROR encountered a dangling reference (address 16 is unallocated)
77
}

tests/compile-fail/validity/invalid_wide_raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ fn main() {
66
struct S {
77
x: * mut dyn T
88
}
9-
dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling or unaligned vtable pointer
9+
dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling vtable pointer
1010
}

0 commit comments

Comments
 (0)