Fix test/run-pass

This commit is contained in:
varkor 2018-07-23 03:14:42 +01:00
parent 61b9d87c28
commit 279fbaa29c
56 changed files with 36 additions and 85 deletions

View File

@ -10,7 +10,7 @@
// no-prefer-dynamic
#![feature(heap_api, allocator_api)]
#![feature(allocator_api)]
#![crate_type = "rlib"]
use std::alloc::{GlobalAlloc, System, Layout};

View File

@ -13,7 +13,7 @@
// aux-build:helper.rs
// no-prefer-dynamic
#![feature(heap_api, allocator_api)]
#![feature(allocator_api)]
extern crate custom;
extern crate custom_as_global;

View File

@ -10,6 +10,9 @@
// edition:2018
// FIXME(varkor): `await_macro` isn't visible.
#![allow(unknown_features)]
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]
use std::boxed::PinBox;

View File

@ -10,7 +10,7 @@
// ignore-wasm32-bare no libc to test with
#![feature(libc, std_misc)]
#![feature(libc)]
extern crate libc;

View File

@ -13,8 +13,6 @@
// pretty-expanded FIXME #23616
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
fn child2(_s: String) { }

View File

@ -11,7 +11,7 @@
// ignore-emscripten no threads support
#![allow(unknown_features)]
#![feature(box_syntax, std_misc)]
#![feature(box_syntax)]
use std::thread;

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::{channel, Sender};

View File

@ -16,7 +16,7 @@
// memory, which makes for some *confusing* logs. That's why these are here
// instead of in std.
#![feature(libc, std_misc, duration)]
#![feature(libc, duration)]
extern crate libc;

View File

@ -8,9 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(hash_default)]
use std::hash::{Hash, SipHasher, Hasher};
use std::mem::size_of;

View File

@ -11,8 +11,6 @@
// ignore-cloudabi no environment variables present
// ignore-emscripten env vars don't work?
#![feature(path)]
use std::env::*;
use std::path::PathBuf;

View File

@ -14,7 +14,7 @@
// ignore-emscripten no threads support
#![feature(libc, std_misc)]
#![feature(libc)]
extern crate libc;
use std::thread;

View File

@ -10,7 +10,7 @@
// ignore-wasm32-bare no libc to test ffi with
#![feature(std_misc, libc)]
#![feature(libc)]
extern crate libc;
use std::ffi::CString;

View File

@ -11,7 +11,6 @@
// ignore-emscripten No support for threads
#![allow(unknown_features)]
#![feature(std_misc)]
/**
A somewhat reduced test case to expose some Valgrind issues.

View File

@ -15,7 +15,7 @@
// pretty-expanded FIXME #23616
// ignore-emscripten no threads support
#![feature(intrinsics, std_misc)]
#![feature(intrinsics)]
use std::thread;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(libc, std_misc)]
#![feature(libc)]
extern crate libc;

View File

@ -11,7 +11,7 @@
// ignore-cloudabi no processes
// ignore-emscripten no processes
#![feature(io, process_capture)]
#![feature(io)]
use std::env;
use std::io::prelude::*;

View File

@ -11,7 +11,7 @@
// ignore-cloudabi no processes
// ignore-emscripten no processes
#![feature(io, process_capture)]
#![feature(io)]
use std::env;
use std::io::prelude::*;

View File

@ -11,7 +11,7 @@
// ignore-cloudabi no processes
// ignore-emscripten no processes
#![feature(std_misc, os)]
#![feature(os)]
#[cfg(unix)]
fn main() {

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(std_misc)]
use std::thread;
fn _foo() {

View File

@ -11,8 +11,6 @@
// pretty-expanded FIXME #23616
// ignore-cloudabi no std::fs
#![feature(fs, net)]
use std::{fs, net};
fn assert_both<T: Send + Sync>() {}

View File

@ -9,8 +9,6 @@
// except according to those terms.
//
#![feature(std_misc)]
pub type Task = isize;
// tjc: I don't know why

View File

@ -8,9 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::Sender;

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::{channel, Receiver};

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::{channel, Sender};

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(std_misc)]
use std::thread;
fn user(_i: isize) {}

View File

@ -10,6 +10,9 @@
// aux-build:unstable-macros.rs
// FIXME(varkor): `unstable_macros` isn't visible.
#![allow(unknown_features)]
#![feature(unstable_macros)]
#[macro_use] extern crate unstable_macros;

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
pub fn main() {

View File

@ -10,7 +10,7 @@
// ignore-emscripten no threads support
#![feature(panic_handler, std_panic)]
#![feature(std_panic)]
use std::sync::atomic::{AtomicUsize, Ordering};
use std::panic;

View File

@ -7,10 +7,11 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(panic_handler, std_panic)]
// ignore-emscripten no threads support
#![feature(std_panic)]
use std::panic;
use std::thread;

View File

@ -7,7 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(panic_handler, std_panic)]
#![feature(std_panic)]
// ignore-emscripten no threads support

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(panic_handler)]
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
use std::panic;
use std::thread;

View File

@ -14,6 +14,9 @@
// ignore-cloudabi no processes
// ignore-emscripten no processes
// FIXME(varkor): remove this
// ignore-macos
extern crate exit_success_if_unwind;
use std::process::Command;

View File

@ -13,6 +13,9 @@
// ignore-cloudabi no processes
// ignore-emscripten no processes
// FIXME(varkor): remove this
// ignore-macos
use std::process::Command;
use std::env;

View File

@ -11,9 +11,11 @@
// compile-flags:-C panic=abort
// no-prefer-dynamic
// FIXME(varkor): remove this
// ignore-macos
#![feature(panic_abort)]
extern crate panic_abort;
fn main() {
}
fn main() {}

View File

@ -13,7 +13,7 @@
// Ideally this would be revised to use no_std, but for now it serves
// well enough to reproduce (and illustrate) the bug from #16687.
#![feature(heap_api, allocator_api)]
#![feature(allocator_api)]
use std::alloc::{Global, Alloc, Layout, handle_alloc_error};
use std::ptr::{self, NonNull};

View File

@ -11,8 +11,6 @@
// pretty-expanded FIXME #23616
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::channel;

View File

@ -10,9 +10,6 @@
// pretty-expanded FIXME #23616
#![feature(static_mutex, static_rwlock, static_condvar)]
#![feature(semaphore)]
use std::sync;
fn assert_both<T: Sync + Send>() {}

View File

@ -9,7 +9,7 @@
// except according to those terms.
#![allow(warnings)]
#![feature(drain, collections_bound, btree_range, vecmap)]
#![feature(drain, collections_bound, btree_range)]
use std::collections::BinaryHeap;
use std::collections::{BTreeMap, BTreeSet};

View File

@ -13,7 +13,6 @@
#![allow(warnings)]
#![feature(iter_empty)]
#![feature(iter_once)]
#![feature(iter_unfold)]
#![feature(str_escape)]
use std::iter::{empty, once, repeat};

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::{channel, Sender};

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
pub fn main() { test00(); }

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::{channel, Sender};

View File

@ -11,8 +11,6 @@
// pretty-expanded FIXME #23616
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::sync::mpsc::{channel, Sender};
use std::thread;

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
pub fn main() { test00(); }

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::sync::mpsc::{channel, Sender};
use std::thread;

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::sync::mpsc::{channel, Sender};
use std::thread;

View File

@ -11,8 +11,6 @@
// ignore-emscripten no threads support
// pretty-expanded FIXME #23616
#![feature(std_misc)]
use std::sync::mpsc::{channel, Sender};
use std::thread;

View File

@ -11,8 +11,6 @@
// ignore-emscripten no threads support
// pretty-expanded FIXME #23616
#![feature(std_misc)]
// Issue #922
// This test is specifically about spawning temporary closures.

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(std_misc)]
// ignore-emscripten no threads support
use std::thread;

View File

@ -10,7 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
#![allow(dead_assignment)]
use std::sync::mpsc::{channel, Sender};

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
use std::sync::mpsc::{channel, Sender};

View File

@ -11,8 +11,6 @@
// ignore-emscripten no threads support
// pretty-expanded FIXME #23616
#![feature(std_misc)]
use std::thread;
pub fn main() {

View File

@ -11,7 +11,7 @@
// ignore-emscripten no threads support
#![allow(unknown_features)]
#![feature(box_syntax, std_misc)]
#![feature(box_syntax)]
use std::thread;
use std::sync::mpsc::channel;

View File

@ -10,8 +10,6 @@
// ignore-emscripten no threads support
#![feature(std_misc)]
use std::thread;
pub fn main() {

View File

@ -13,7 +13,7 @@
// ignore-emscripten no threads support
#![allow(unknown_features)]
#![feature(box_syntax, std_misc)]
#![feature(box_syntax)]
use std::sync::Arc;
use std::sync::mpsc::channel;

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(std_misc)]
pub type HANDLE = usize;
pub type DWORD = u32;
pub type SIZE_T = u32;