From cecbe1611befc6bab2fa194e5cdef88f56692193 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 25 Aug 2019 14:56:38 +0200 Subject: [PATCH 1/2] test for invalid wide raw ptr --- tests/compile-fail/validity/invalid_wide_raw.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/compile-fail/validity/invalid_wide_raw.rs diff --git a/tests/compile-fail/validity/invalid_wide_raw.rs b/tests/compile-fail/validity/invalid_wide_raw.rs new file mode 100644 index 0000000000..ec14f6988b --- /dev/null +++ b/tests/compile-fail/validity/invalid_wide_raw.rs @@ -0,0 +1,8 @@ +fn main() { + trait T { } + #[derive(Debug)] + struct S { + x: * mut dyn T + } + dbg!(S { x: unsafe { std::mem::transmute((0usize, 0usize)) } }); //~ ERROR: encountered dangling or unaligned vtable pointer +} From 5483531be36cc1cdc19048829c1a135ea669ab50 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 29 Aug 2019 17:20:14 +0200 Subject: [PATCH 2/2] bump Rust --- rust-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-version b/rust-version index 8c746ad2ff..3520d790ec 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -0444b9f66acb5da23dc816e0d8eb59623ba9ea50 +7445622bcb515c822a2fc6e8c57c90478c1a56bb