Auto merge of #1648 - RalfJung:windows-track-raw, r=RalfJung

enable track-raw-ptr tests on Windows

With https://github.com/rust-lang/rust/pull/79893 landed, raw-pointer-tracking now works even for the Windows runtime. :)
This commit is contained in:
bors 2020-12-11 10:37:40 +00:00
commit 2065b52dfe
8 changed files with 2 additions and 9 deletions

View File

@ -248,8 +248,7 @@ environment variable:
help identify latent aliasing issues in code that Miri accepts by default. You
can recognize false positives by "<untagged>" occurring in the message -- this
indicates a pointer that was cast from an integer, so Miri was unable to track
this pointer. Make sure to use a non-Windows target with this flag, as the
Windows runtime makes use of integer-pointer casts.
this pointer.
Some native rustc `-Z` flags are also very relevant for Miri:

View File

@ -1 +1 @@
39b841dfe36f90a7cd111e7f0c55f32594f6e578
a2e29d67c26bdf8f278c98ee02d6cc77a279ed2e

View File

@ -1,5 +1,4 @@
// compile-flags: -Zmiri-track-raw-pointers
// ignore-windows (FIXME: tracking raw pointers does not work on Windows)
//! This demonstrates a provenance problem that requires tracking of raw pointers to be detected.
fn main() {

View File

@ -1,5 +1,4 @@
// compile-flags: -Zmiri-track-raw-pointers
// ignore-windows (FIXME: tracking raw pointers does not work on Windows)
#![feature(btree_drain_filter)]
use std::collections::{BTreeMap, BTreeSet};
use std::mem;

View File

@ -1,5 +1,4 @@
// compile-flags: -Zmiri-track-raw-pointers
// ignore-windows (FIXME: tracking raw pointers does not work on Windows)
#![feature(new_uninit)]
#![feature(get_mut_unchecked)]

View File

@ -1,5 +1,4 @@
// compile-flags: -Zmiri-track-raw-pointers
// ignore-windows (FIXME: tracking raw pointers does not work on Windows)
#![feature(raw_ref_macros)]
use std::ptr;

View File

@ -1,5 +1,4 @@
// compile-flags: -Zmiri-track-raw-pointers
// ignore-windows (FIXME: tracking raw pointers does not work on Windows)
// Gather all references from a mutable iterator and make sure Miri notices if
// using them is dangerous.
fn test_all_refs<'a, T: 'a>(dummy: &mut T, iter: impl Iterator<Item = &'a mut T>) {

View File

@ -1,5 +1,4 @@
// compile-flags: -Zmiri-track-raw-pointers
// ignore-windows (FIXME: tracking raw pointers does not work on Windows)
use std::collections::VecDeque;
fn test_all_refs<'a, T: 'a>(dummy: &mut T, iter: impl Iterator<Item = &'a mut T>) {