Skip to content

Commit 8e8ab49

Browse files
committed
Move some run-pass attribute tests to ui
1 parent 6a66491 commit 8e8ab49

14 files changed

+10
-8
lines changed

src/test/run-pass/attr-before-view-item.rs renamed to src/test/ui/attributes/attr-before-view-item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// compile-pass
12
// pretty-expanded FIXME #23616
23

3-
#![allow(unused)]
44
#![feature(rustc_attrs)]
55
#![feature(test)]
66

src/test/run-pass/attr-before-view-item2.rs renamed to src/test/ui/attributes/attr-before-view-item2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// compile-pass
12
// pretty-expanded FIXME #23616
23

3-
#![allow(unused)]
44
#![feature(rustc_attrs)]
55
#![feature(test)]
66

src/test/run-pass/attr-mix-new.rs renamed to src/test/ui/attributes/attr-mix-new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// compile-pass
12
// pretty-expanded FIXME #23616
23

3-
#![allow(unused)]
44
#![feature(rustc_attrs)]
55

66
#[rustc_dummy(bar)]

src/test/run-pass/structs-enums/class-attributes-1.rs renamed to src/test/ui/attributes/class-attributes-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// compile-pass
12
// pp-exact - Make sure we actually print the attributes
23

3-
#![allow(unused)]
44
#![feature(rustc_attrs)]
55

66
struct Cat {

src/test/run-pass/structs-enums/class-attributes-2.rs renamed to src/test/ui/attributes/class-attributes-2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![allow(unused)]
1+
// compile-pass
2+
23
#![feature(rustc_attrs)]
34

45
struct Cat {

src/test/run-pass/item-attributes.rs renamed to src/test/ui/attributes/item-attributes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// for completeness since .rs files linked from .rc files support this
33
// notation to specify their module's attributes
44

5-
#![allow(unused)]
5+
// compile-pass
6+
67
#![feature(rustc_attrs)]
78

89
#![rustc_dummy = "val"]

src/test/run-pass/methods/method-attributes.rs renamed to src/test/ui/attributes/method-attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
// compile-pass
12
// pp-exact - Make sure we print all the attributes
23
// pretty-expanded FIXME #23616
34

4-
#![allow(unused)]
55
#![feature(rustc_attrs)]
66

77
#[rustc_dummy]

src/test/run-pass/variant-attributes.rs renamed to src/test/ui/attributes/variant-attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
// compile-pass
12
// pp-exact - Make sure we actually print the attributes
23
// pretty-expanded FIXME #23616
34

4-
#![allow(unused)]
55
#![allow(non_camel_case_types)]
66
#![feature(rustc_attrs)]
77

0 commit comments

Comments
 (0)