rustup and test fixes

This commit is contained in:
Ralf Jung 2020-07-27 23:40:27 +02:00
parent bec7aab7fd
commit cae90b6d29
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
13f9aa190957b993a268fd4a046fce76ca8814ee
efc02b03d18b0cbaa55b1e421d792f70a39230b2

View File

@ -9,5 +9,5 @@ static mut TLS: u8 = 0;
fn main() { unsafe {
let dangling_ptr = std::thread::spawn(|| &TLS as *const u8 as usize).join().unwrap();
let _val = *(dangling_ptr as *const u8);
let _val = *(dangling_ptr as *const u8); //~ ERROR dereferenced after this allocation got freed
} }

View File

@ -1,4 +1,4 @@
// normalize-stderr-test "[^ ]*libcore/[a-z/]+.rs[0-9:]*" -> "$$LOC"
// normalize-stderr-test "[^ ]*libcore/[a-z_/]+.rs[0-9:]*" -> "$$LOC"
#![feature(never_type)]
#![allow(unconditional_panic)]