remove #![allow(stable_features)] from most tests
This commit is contained in:
parent
d1a11b670b
commit
28fc413c8f
36 changed files with 4 additions and 101 deletions
|
|
@ -1,5 +1,3 @@
|
|||
#![allow(stable_features)]
|
||||
|
||||
use std::ptr::{read_volatile, write_volatile};
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
//@ run-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(const_indexing)]
|
||||
|
||||
fn main() {
|
||||
const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47];
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
//@ compile-flags: -C debug-assertions
|
||||
|
||||
#![feature(iter_to_slice)]
|
||||
|
||||
use std::slice;
|
||||
|
||||
fn foo<T>(v: &[T]) -> Option<&[T]> {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
//@ run-pass
|
||||
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(stable_features)]
|
||||
// Issue 4691: Ensure that functional-struct-updates operates
|
||||
// correctly and moves rather than copy when appropriate.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
struct ncint { v: isize }
|
||||
fn ncint(v: isize) -> ncint { ncint { v: v } }
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
//@ run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
//@ compile-flags:-C target-feature=-crt-static -Z unstable-options
|
||||
//@ ignore-musl - requires changing the linker which is hard
|
||||
|
||||
#![feature(cfg_target_feature)]
|
||||
|
||||
#[cfg(not(target_feature = "crt-static"))]
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
// A very basic test of const fn functionality.
|
||||
|
||||
#![feature(const_indexing)]
|
||||
|
||||
const fn add(x: u32, y: u32) -> u32 {
|
||||
x + y
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(const_indexing)]
|
||||
|
||||
const ARR: [usize; 5] = [5, 4, 3, 2, 1];
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,9 @@
|
|||
//@ run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![allow(unused_imports)]
|
||||
// Test that cleanup scope for temporaries created in a match
|
||||
// arm is confined to the match arm itself.
|
||||
|
||||
|
||||
#![feature(os)]
|
||||
|
||||
use std::os;
|
||||
|
||||
struct Test { x: isize }
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
//@ run-pass
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
// Test a very simple custom DST coercion.
|
||||
|
||||
#![feature(core, rc_weak)]
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::rc::{Rc, Weak};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
#![feature(core, core_intrinsics)]
|
||||
#![feature(core_intrinsics)]
|
||||
|
||||
extern crate core;
|
||||
use core::intrinsics::discriminant_value;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
//@ run-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
// Tests parallel codegen - this can fail if the symbol for the anonymous
|
||||
// closure in `sum` pollutes the second codegen unit from the first.
|
||||
|
||||
//@ compile-flags: -C codegen_units=2
|
||||
|
||||
#![feature(iter_arith)]
|
||||
|
||||
mod a {
|
||||
fn foo() {
|
||||
let x = ["a", "bob", "c"];
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
//! Regression test for https://github.com/rust-lang/rust/issues/15673
|
||||
|
||||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(iter_arith)]
|
||||
|
||||
fn main() {
|
||||
let x: [u64; 3] = [1, 2, 3];
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
//@ build-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
// A reduced version of the rustbook ice. The problem this encountered
|
||||
// had to do with codegen ignoring binders.
|
||||
|
||||
|
||||
#![feature(os)]
|
||||
|
||||
use std::iter;
|
||||
use std::os;
|
||||
use std::fs::File;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(cfg_target_feature)]
|
||||
|
||||
#[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))]
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
// write_volatile causes an LLVM assert with composite types
|
||||
|
||||
#![feature(volatile)]
|
||||
use std::ptr::{read_volatile, write_volatile};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
//@ check-pass
|
||||
#![allow(stable_features)]
|
||||
#![feature(associated_consts)]
|
||||
|
||||
use std::marker::PhantomData;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
//@ check-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(stable_features)]
|
||||
#![feature(associated_consts)]
|
||||
|
||||
impl A for i32 {
|
||||
type Foo = u32;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
// Test to see that the element type of .cloned() can be inferred
|
||||
// properly. Previously this would fail to deduce the type of `sum`.
|
||||
|
||||
#![feature(iter_arith)]
|
||||
|
||||
fn square_sum(v: &[i64]) -> i64 {
|
||||
let sum: i64 = v.iter().cloned().sum();
|
||||
sum * sum
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
// https://github.com/rust-lang/rust/issues/15673
|
||||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(iter_arith)]
|
||||
|
||||
fn main() {
|
||||
let x: [u64; 3] = [1, 2, 3];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
#![allow(unused_labels)]
|
||||
#![allow(unreachable_code)]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,14 +3,10 @@
|
|||
#![allow(dead_code)]
|
||||
#![allow(unused_assignments)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
#![allow(dropping_copy_types)]
|
||||
|
||||
// Test parsing binary operators after macro invocations.
|
||||
|
||||
|
||||
#![feature(macro_rules)]
|
||||
|
||||
macro_rules! id {
|
||||
($e: expr) => { $e }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
//@ run-pass
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
// Test that we handle projection types which wind up important for
|
||||
// resolving methods. This test was reduced from a larger example; the
|
||||
|
|
@ -10,8 +9,6 @@
|
|||
// type projection.
|
||||
|
||||
|
||||
#![feature(associated_types)]
|
||||
|
||||
trait Hasher {
|
||||
type Output;
|
||||
fn finish(&self) -> Self::Output;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
//@ run-pass
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
// test that ordinary fat pointer operations work.
|
||||
|
||||
#![feature(braced_empty_structs)]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
use std::sync::atomic;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
//@ run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![feature(no_core, core)]
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
extern crate core;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
//@ run-pass
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
|
||||
// Test overloaded indexing combined with autoderef.
|
||||
|
||||
use std::ops::{Index, IndexMut};
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
#![allow(stable_features)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(std_panic)]
|
||||
#![feature(panic_update_hook)]
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(std_panic)]
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::panic;
|
||||
|
|
|
|||
|
|
@ -1,14 +1,11 @@
|
|||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![allow(unused_must_use)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(std_panic)]
|
||||
|
||||
use std::panic;
|
||||
use std::thread;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(std_panic)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
//@ run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
// #45662
|
||||
|
||||
#![feature(repr_align)]
|
||||
|
||||
#[repr(align(16))]
|
||||
pub struct A(#[allow(dead_code)] i64);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
//@ run-pass
|
||||
#![allow(unused_variables)]
|
||||
#![allow(stable_features)]
|
||||
#![allow(overflowing_literals)]
|
||||
|
||||
//@ needs-subprocess
|
||||
//@ ignore-fuchsia must translate zircon signal to SIGILL, FIXME (#58590)
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(repr_simd, target_feature, cfg_target_feature)]
|
||||
#![feature(repr_simd)]
|
||||
|
||||
#[path = "../../auxiliary/minisimd.rs"]
|
||||
mod minisimd;
|
||||
|
|
|
|||
|
|
@ -4,9 +4,6 @@
|
|||
//@ run-pass
|
||||
//@ ignore-i586 (no SSE2)
|
||||
|
||||
#![allow(stable_features)]
|
||||
#![feature(cfg_target_feature)]
|
||||
|
||||
fn main() {
|
||||
if cfg!(any(target_arch = "x86", target_arch = "x86_64")) {
|
||||
assert!(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
//@ needs-threads
|
||||
#![feature(thread_local_try_with)]
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::thread;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
//@ run-pass
|
||||
#![allow(stable_features)]
|
||||
//@ needs-threads
|
||||
#![feature(thread_local_try_with)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
//@ run-pass
|
||||
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![allow(unused_imports)]
|
||||
#![feature(no_core, core)]
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
extern crate std;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue