Auto merge of #1621 - RalfJung:rustup, r=RalfJung

Rustup; test btreemap with raw ptr tracking
This commit is contained in:
bors 2020-11-10 15:53:31 +00:00
commit 0459f0be9e
10 changed files with 10 additions and 13 deletions

View File

@ -1 +1 @@
89631663b7ad2d46d3e4f52bcfa7bee2be9eb82b
cf9cf7c923eb01146971429044f216a3ca905e06

View File

@ -1,5 +1,4 @@
#![feature(core_intrinsics)]
#![feature(rustc_private)]
fn main() {
extern "C" {

View File

@ -1,5 +1,4 @@
#![feature(core_intrinsics)]
#![feature(rustc_private)]
fn main() {
extern "C" {

View File

@ -1,5 +1,3 @@
#![feature(rustc_private)]
fn main() {
extern "C" {
// Use the wrong type(ie. not the pointer width) for the `size`

View File

@ -1,3 +1,5 @@
// 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

@ -2,10 +2,10 @@
#![feature(rustc_private)]
use core::slice;
extern crate libc;
use core::slice;
fn main() {
unsafe {
let p1 = libc::calloc(0, 0);

View File

@ -1,5 +1,3 @@
#![feature(rustc_private, renamed_spin_loop)]
use std::sync::{Mutex, TryLockError};
use std::sync::atomic;
use std::hint;

View File

@ -3,6 +3,8 @@
#![feature(rustc_private)]
extern crate libc;
use std::fs::{
File, create_dir, OpenOptions, read_dir, remove_dir, remove_dir_all, remove_file, rename,
};
@ -10,8 +12,6 @@ use std::ffi::CString;
use std::io::{Read, Write, Error, ErrorKind, Result, Seek, SeekFrom};
use std::path::{PathBuf, Path};
extern crate libc;
fn main() {
test_file();

View File

@ -2,10 +2,10 @@
#![feature(rustc_private)]
use core::{slice, ptr};
extern crate libc;
use core::{slice, ptr};
fn main() {
// Test that small allocations sometimes *are* not very aligned.
let saw_unaligned = (0..64).any(|_| unsafe {

View File

@ -3,6 +3,7 @@
#![feature(rustc_private)]
extern crate libc;
use std::mem;
struct Arena(());