Skip to content

Commit bf544fa

Browse files
committed
remove #[rustc_error] from ui/ tests that remain compile-fail tests.
1 parent 8315b11 commit bf544fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+82
-82
lines changed

src/test/ui/asm/asm-bad-clobber.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
// ignore-mips
2222
// ignore-mips64
2323

24-
#![feature(asm, rustc_attrs)]
24+
#![feature(asm)]
2525

2626
#[cfg(any(target_arch = "x86",
2727
target_arch = "x86_64"))]
28-
#[rustc_error]
28+
2929
pub fn main() {
3030
unsafe {
3131
// clobber formatted as register input/output

src/test/ui/coherence/coherence_copy_like_err_fundamental_struct_tuple.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// aux-build:coherence_copy_like_lib.rs
1515

16-
#![feature(rustc_attrs)]
16+
1717

1818
extern crate coherence_copy_like_lib as lib;
1919

@@ -26,5 +26,5 @@ impl<T: lib::MyCopy> MyTrait for T { }
2626
// Tuples are not fundamental.
2727
impl MyTrait for lib::MyFundamentalStruct<(MyType,)> { } //~ ERROR E0119
2828

29-
#[rustc_error]
29+
3030
fn main() { }

src/test/ui/coherence/coherence_local_err_struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// aux-build:coherence_copy_like_lib.rs
1515

16-
#![feature(rustc_attrs)]
16+
1717
#![allow(dead_code)]
1818

1919
extern crate coherence_copy_like_lib as lib;
@@ -25,5 +25,5 @@ struct MyType { x: i32 }
2525
// MyStruct is not fundamental.
2626
impl lib::MyCopy for lib::MyStruct<MyType> { } //~ ERROR E0117
2727

28-
#[rustc_error]
28+
2929
fn main() { }

src/test/ui/coherence/coherence_local_err_tuple.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// aux-build:coherence_copy_like_lib.rs
1515

16-
#![feature(rustc_attrs)]
16+
1717
#![allow(dead_code)]
1818

1919
extern crate coherence_copy_like_lib as lib;
@@ -25,5 +25,5 @@ struct MyType { x: i32 }
2525
// Tuples are not fundamental, so this is not a local impl.
2626
impl lib::MyCopy for (MyType,) { } //~ ERROR E0117
2727

28-
#[rustc_error]
28+
2929
fn main() { }

src/test/ui/feature-gates/feature-gate-custom_attribute.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Check that literals in attributes parse just fine.
1212

13-
#![feature(rustc_attrs)]
13+
1414
#![allow(dead_code)]
1515
#![allow(unused_variables)]
1616

@@ -29,5 +29,5 @@
2929
#[fake_doc(r"doc")] //~ ERROR attribute `fake_doc` is currently unknown
3030
struct Q { }
3131

32-
#[rustc_error]
32+
3333
fn main() { }

src/test/ui/lifetimes/lifetime-bound-will-change-warning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#![allow(dead_code)]
1717
#![allow(unused_variables)]
18-
#![feature(rustc_attrs)]
18+
1919

2020
extern crate lifetime_bound_will_change_warning_lib as lib;
2121

@@ -59,6 +59,6 @@ fn test3cc<'a>(x: &'a Box<Fn()+'static>) {
5959
lib::ref_obj(x)
6060
}
6161

62-
#[rustc_error]
62+
6363
fn main() {
6464
}

src/test/ui/on-unimplemented/multiple-impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test if the on_unimplemented message override works
1212

1313
#![feature(on_unimplemented)]
14-
#![feature(rustc_attrs)]
14+
1515

1616
struct Foo<T>(T);
1717
struct Bar<T>(T);
@@ -38,7 +38,7 @@ impl Index<Bar<usize>> for [i32] {
3838
}
3939
}
4040

41-
#[rustc_error]
41+
4242
fn main() {
4343
Index::index(&[] as &[i32], 2u32);
4444
//~^ ERROR E0277

src/test/ui/on-unimplemented/on-impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test if the on_unimplemented message override works
1212

1313
#![feature(on_unimplemented)]
14-
#![feature(rustc_attrs)]
14+
1515

1616
#[rustc_on_unimplemented = "invalid"]
1717
trait Index<Idx: ?Sized> {
@@ -27,7 +27,7 @@ impl Index<usize> for [i32] {
2727
}
2828
}
2929

30-
#[rustc_error]
30+
3131
fn main() {
3232
Index::<u32>::index(&[1, 2, 3] as &[i32], 2u32);
3333
//~^ ERROR E0277

src/test/ui/on-unimplemented/slice-index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// Test new Index error message for slices
1212
// ignore-tidy-linelength
1313

14-
#![feature(rustc_attrs)]
14+
1515

1616
use std::ops::Index;
1717

18-
#[rustc_error]
18+
1919
fn main() {
2020
let x = &[1, 2, 3] as &[i32];
2121
x[1i32]; //~ ERROR E0277

src/test/ui/regions/regions-outlives-projection-container-hrtb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// "outlives" requirements. Issue #22246.
1313

1414
#![allow(dead_code)]
15-
#![feature(rustc_attrs)]
15+
1616

1717
///////////////////////////////////////////////////////////////////////////
1818

@@ -64,6 +64,6 @@ fn with_assoc_sub<'a,'b>() {
6464
//~^ ERROR reference has a longer lifetime
6565
}
6666

67-
#[rustc_error]
67+
6868
fn main() {
6969
}

0 commit comments

Comments
 (0)