mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 18:43:38 +00:00
Fix test/run-pass
This commit is contained in:
parent
61b9d87c28
commit
279fbaa29c
@ -10,7 +10,7 @@
|
||||
|
||||
// no-prefer-dynamic
|
||||
|
||||
#![feature(heap_api, allocator_api)]
|
||||
#![feature(allocator_api)]
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
use std::alloc::{GlobalAlloc, System, Layout};
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
// ignore-wasm32-bare no libc to test with
|
||||
|
||||
#![feature(libc, std_misc)]
|
||||
#![feature(libc)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
@ -13,8 +13,6 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
fn child2(_s: String) { }
|
||||
|
@ -11,7 +11,7 @@
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![allow(unknown_features)]
|
||||
#![feature(box_syntax, std_misc)]
|
||||
#![feature(box_syntax)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(libc, std_misc)]
|
||||
#![feature(libc)]
|
||||
|
||||
extern crate libc;
|
||||
use std::thread;
|
||||
|
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -15,7 +15,7 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(intrinsics, std_misc)]
|
||||
#![feature(intrinsics)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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::*;
|
||||
|
@ -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::*;
|
||||
|
@ -11,7 +11,7 @@
|
||||
// ignore-cloudabi no processes
|
||||
// ignore-emscripten no processes
|
||||
|
||||
#![feature(std_misc, os)]
|
||||
#![feature(os)]
|
||||
|
||||
#[cfg(unix)]
|
||||
fn main() {
|
||||
|
@ -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() {
|
||||
|
@ -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>() {}
|
||||
|
@ -9,8 +9,6 @@
|
||||
// except according to those terms.
|
||||
//
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
pub type Task = isize;
|
||||
|
||||
// tjc: I don't know why
|
||||
|
@ -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;
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Receiver};
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
||||
|
@ -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) {}
|
||||
|
@ -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;
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
pub fn main() {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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() {}
|
||||
|
@ -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};
|
||||
|
@ -11,8 +11,6 @@
|
||||
// pretty-expanded FIXME #23616
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::channel;
|
||||
|
||||
|
@ -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>() {}
|
||||
|
@ -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};
|
||||
|
@ -13,7 +13,6 @@
|
||||
#![allow(warnings)]
|
||||
#![feature(iter_empty)]
|
||||
#![feature(iter_once)]
|
||||
#![feature(iter_unfold)]
|
||||
#![feature(str_escape)]
|
||||
|
||||
use std::iter::{empty, once, repeat};
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
pub fn main() { test00(); }
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
pub fn main() { test00(); }
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
use std::thread;
|
||||
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
use std::thread;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
#![allow(dead_assignment)]
|
||||
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
||||
|
@ -11,8 +11,6 @@
|
||||
// ignore-emscripten no threads support
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
pub fn main() {
|
||||
|
@ -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;
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// ignore-emscripten no threads support
|
||||
|
||||
#![feature(std_misc)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
pub fn main() {
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user