Skip to content
Closed
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
1 change: 0 additions & 1 deletion src/libcargo/cargo.rc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#[no_core];

#[legacy_modes];

#[allow(vecs_implicitly_copyable,
non_implicitly_copyable_typarams)];
Expand Down
1 change: 0 additions & 1 deletion src/libcore/stackwalk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#[doc(hidden)]; // FIXME #3538

#[legacy_modes]; // tjc: remove after snapshot

// NB: transitionary, de-mode-ing.
// FIXME #4425: Can't forbid this because frame_address needs a deprecated
Expand Down
1 change: 0 additions & 1 deletion src/libfuzzer/fuzzer.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#[crate_type = "lib"];
#[no_core];

#[legacy_modes];

#[allow(vecs_implicitly_copyable)];
#[allow(non_camel_case_types)];
Expand Down
1 change: 0 additions & 1 deletion src/librustc/rustc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#[license = "MIT"];
#[crate_type = "lib"];

#[legacy_modes];
#[legacy_records];

#[allow(non_implicitly_copyable_typarams)];
Expand Down
1 change: 0 additions & 1 deletion src/libsyntax/syntax.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#[crate_type = "lib"];

#[legacy_modes];
#[legacy_records];

#[allow(vecs_implicitly_copyable)];
Expand Down
1 change: 0 additions & 1 deletion src/test/auxiliary/cci_iter_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

#[link(name="cci_iter_lib", vers="0.0")];
#[legacy_modes];

#[inline]
pub fn iter<T>(v: ~[T], f: fn(T)) {
Expand Down
1 change: 0 additions & 1 deletion src/test/auxiliary/cci_nested_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[legacy_modes];

use dvec::DVec;

Expand Down
1 change: 0 additions & 1 deletion src/test/bench/graph500-bfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[legacy_modes];

/*!

Expand Down
1 change: 0 additions & 1 deletion src/test/bench/msgsend-pipes-shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// different scalability characteristics compared to the select
// version.

#[legacy_modes];

extern mod std;
use io::Writer;
Expand Down
1 change: 0 additions & 1 deletion src/test/bench/msgsend-pipes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
//
// I *think* it's the same, more or less.

#[legacy_modes];

extern mod std;
use io::Writer;
Expand Down
1 change: 0 additions & 1 deletion src/test/bench/shootout-k-nucleotide-pipes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// xfail-pretty (extra blank line is inserted in vec::mapi call)
// multi tasking k-nucleotide

#[legacy_modes];

extern mod std;
use std::map;
Expand Down
1 change: 0 additions & 1 deletion src/test/bench/shootout-pfib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

*/

#[legacy_modes];

extern mod std;

Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/fn-variance-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[legacy_modes];

fn takes_mut(&&x: @mut int) { }
fn takes_const(&&x: @const int) { }
Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/mode-inference-fail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[legacy_modes];

// In this test, the mode gets inferred to ++ due to the apply_int(),
// but then we get a failure in the generic apply().
Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/pure-higher-order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[legacy_modes];

// Test rules governing higher-order pure fns.

Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/regions-creating-enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[legacy_modes];

enum ast {
num(uint),
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass-fulldeps/qquote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// xfail-pretty

#[legacy_modes];

extern mod std;
extern mod syntax;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/argument-passing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

struct X { mut x: int }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/block-iter-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn iter_vec<T>(v: ~[T], f: fn(T)) { for v.each |x| { f(*x); } }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/block-iter-2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn iter_vec<T>(v: ~[T], f: fn(T)) { for v.each |x| { f(*x); } }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/cci_iter_exe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// xfail-fast - check-fast doesn't understand aux-build
// aux-build:cci_iter_lib.rs

#[legacy_modes];

extern mod cci_iter_lib;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/class-impl-very-parameterized-trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

extern mod std;
use std::map::*;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/class-implement-traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

trait noisy {
fn speak();
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/closure-inference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn foo(i: int) -> int { i + 1 }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-alt-generic-box2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// xfail-fast
// -*- rust -*-

#[legacy_modes];

type compare<T> = fn@(T, T) -> bool;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-alt-generic-unique2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// xfail-fast
// -*- rust -*-

#[legacy_modes];

type compare<T> = fn@(T, T) -> bool;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-alt-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// xfail-fast
// -*- rust -*-
#[legacy_modes];

type compare<T> = fn@(T, T) -> bool;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-block-generic-box2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

type compare<T> = fn@(T, T) -> bool;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-block-generic-unique2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// xfail-fast
// -*- rust -*-
#[legacy_modes];

type compare<T> = fn@(T, T) -> bool;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-block-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


// xfail-fast
#[legacy_modes];

// Tests for standalone blocks as expressions with dynamic type sizes
type compare<T> = fn@(T, T) -> bool;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn f(arg: A) {
arg.a = 100;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-if-generic-box2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// xfail-fast
// -*- rust -*-
#[legacy_modes];

type compare<T> = fn@(T, T) -> bool;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/expr-if-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// xfail-fast
// -*- rust -*-
#[legacy_modes];

// Tests for if as expressions with dynamic type sizes
type compare<T> = fn@(T, T) -> bool;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/fixed-point-bind-box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn fix_help<A, B>(f: extern fn(fn@(A) -> B, A) -> B, x: A) -> B {
return f( |a| fix_help(f, a), x);
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/fixed-point-bind-unique.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn fix_help<A: &static, B: Owned>(f: extern fn(fn@(A) -> B, A) -> B, x: A) -> B {
return f(|a| fix_help(f, a), x);
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/generic-temporary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn mk() -> int { return 1; }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/intrinsic-frame-address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];
#[abi = "rust-intrinsic"]
extern mod rusti {
pub fn frame_address(f: &once fn(*u8));
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/issue-2185.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// However, the condition it was testing seemed complex enough to
// warrant still having a test, so I inlined the old definitions.

#[legacy_modes];

trait iterable<A> {
fn iter(blk: fn(A));
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/last-use-corner-cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn main() {
// Make sure closing over can be a last use
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/monad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

trait vec_monad<A> {
fn bind<B: Copy>(f: fn(A) -> ~[B]) -> ~[B];
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/operator-overloading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

struct Point {
x: int,
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/reflect-visit-data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

use core::bool;
use intrinsic::{TyDesc, get_tydesc, visit_tydesc, TyVisitor};
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/regions-params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn region_identity(x: &r/uint) -> &r/uint { x }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/resource-generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

struct Arg<T> {val: T, fin: extern fn(T)}

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/ret-break-cont-in-block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

use cmp::Eq;

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/sendfn-generic-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn main() { test05(); }

Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/sendfn-is-a-block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

fn test(f: fn(uint) -> uint) -> uint {
return f(22u);
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/static-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

pub trait plus {
fn plus() -> int;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/static-method-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

// A trait for objects that can be used to do an if-then-else
// (No actual need for this to be static, but it is a simple test.)
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/task-comm-0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// xfail-fast
#[legacy_modes];

extern mod std;

Expand Down
Loading