Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions compiler/rustc_feature/src/accepted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ declare_features! (
// feature-group-start: for testing purposes
// -------------------------------------------------------------------------

/// A temporary feature gate used to enable parser extensions needed
/// to bootstrap fix for #5723.
(accepted, issue_5723_bootstrap, "1.0.0", None),
/// These are used to test this portion of the compiler,
/// they don't actually mean anything.
(accepted, test_accepted_feature, "1.0.0", None),
Expand Down
3 changes: 3 additions & 0 deletions compiler/rustc_feature/src/removed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ declare_features! (
/// Allow anonymous constants from an inline `const` block in pattern position
(removed, inline_const_pat, "1.88.0", Some(76001),
Some("removed due to implementation concerns as it requires significant refactorings"), 138492),
/// A temporary feature gate used to enable parser extensions needed
/// to bootstrap fix for #5723.
(removed, issue_5723_bootstrap, "CURRENT_RUSTC_VERSION", None, None),
/// Lazily evaluate constants. This allows constants to depend on type parameters.
(removed, lazy_normalization_consts, "1.56.0", Some(72219), Some("superseded by `generic_const_exprs`"), 88369),
/// Changes `impl Trait` to capture all lifetimes in scope.
Expand Down
2 changes: 0 additions & 2 deletions library/std/tests/volatile-fat-ptr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![allow(stable_features)]

use std::ptr::{read_volatile, write_volatile};

#[test]
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/array-slice-vec/array_const_index-2.rs
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/array-slice-vec/slice-of-zero-size-elements.rs
Original file line number Diff line number Diff line change
@@ -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]> {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/borrowck/fsu-moves-and-copies.rs
Original file line number Diff line number Diff line change
@@ -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 } }
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/cfg/crt-static-off-works.rs
Original file line number Diff line number Diff line change
@@ -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() {}
4 changes: 0 additions & 4 deletions tests/ui/consts/const-fn.rs
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/consts/issue-29914.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
//@ run-pass
#![allow(stable_features)]

#![feature(const_indexing)]

const ARR: [usize; 5] = [5, 4, 3, 2, 1];

fn main() {
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/dropck/cleanup-arm-conditional.rs
Original file line number Diff line number Diff line change
@@ -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 }
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/dst/dst-coerce-rc.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
3 changes: 1 addition & 2 deletions tests/ui/enum-discriminant/discriminant_value.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass
#![allow(stable_features)]
#![feature(core, core_intrinsics)]
#![feature(core_intrinsics)]

extern crate core;
use core::intrinsics::discriminant_value;
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/functions-closures/parallel-codegen-closures.rs
Original file line number Diff line number Diff line change
@@ -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"];
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/inference/iterator-sum-array-15673.rs
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/issues/issue-20644.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/issues/issue-21634.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
//@ run-pass
#![allow(stable_features)]

#![feature(cfg_target_feature)]

#[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))]
fn main() {
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/issues/issue-29663.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/issues/issue-34780.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//@ check-pass
#![allow(stable_features)]
#![feature(associated_consts)]

use std::marker::PhantomData;

Expand Down
2 changes: 0 additions & 2 deletions tests/ui/issues/issue-42956.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//@ check-pass
#![allow(dead_code)]
#![allow(stable_features)]
#![feature(associated_consts)]

impl A for i32 {
type Foo = u32;
Expand Down
4 changes: 0 additions & 4 deletions tests/ui/iterators/iter-cloned-type-inference.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/iterators/iterator-type-inference-sum-15673.rs
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
1 change: 0 additions & 1 deletion tests/ui/macros/macro-lifetime-used-with-labels.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//@ run-pass
#![allow(stable_features)]
#![allow(unused_labels)]
#![allow(unreachable_code)]

Expand Down
4 changes: 0 additions & 4 deletions tests/ui/macros/parse-complex-macro-invoc-op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/methods/method-normalize-bounds-issue-20604.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,8 +9,6 @@
// type projection.


#![feature(associated_types)]

trait Hasher {
type Output;
fn finish(&self) -> Self::Output;
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/mir/mir_fat_ptr_drop.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 1 addition & 2 deletions tests/ui/no_std/no-core-with-explicit-std-core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

//@ run-pass

#![allow(stable_features)]
#![feature(no_core, core)]
#![feature(no_core)]
#![no_core]

extern crate core;
Expand Down
1 change: 0 additions & 1 deletion tests/ui/overloaded/overloaded-autoderef.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//@ run-pass
#![allow(unused_variables)]
#![allow(stable_features)]

use std::cell::RefCell;
use std::rc::Rc;
Expand Down
2 changes: 0 additions & 2 deletions tests/ui/overloaded/overloaded-index-autoderef.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
//@ run-pass
#![allow(stable_features)]

// Test overloaded indexing combined with autoderef.

use std::ops::{Index, IndexMut};
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/panics/panic-handler-chain-update-hook.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/panics/panic-handler-chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/panics/panic-handler-flail-wildly.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
3 changes: 0 additions & 3 deletions tests/ui/panics/panic-handler-set-twice.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//@ run-pass
//@ needs-unwind
#![allow(unused_variables)]
#![allow(stable_features)]

#![feature(std_panic)]

//@ needs-threads
//@ ignore-backends: gcc
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/regions/regions-bound-lists-feature-gate-2.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//@ run-pass
#![allow(dead_code)]
#![allow(stable_features)]

#![feature(issue_5723_bootstrap)]

trait Foo {
fn dummy(&self) { }
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/regions/regions-bound-lists-feature-gate.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//@ run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(stable_features)]

#![feature(issue_5723_bootstrap)]

trait Foo {
fn dummy(&self) { }
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/repr/align-with-extern-c-fn.rs
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
3 changes: 1 addition & 2 deletions tests/ui/simd/target-feature-mixup.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions tests/ui/target-feature/target-feature-detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down
Loading
Loading