Skip to content

Commit 7e2f235

Browse files
committed
Enable proc_macro_non_items for unstable tests
1 parent fae480d commit 7e2f235

9 files changed

+21
-13
lines changed

tests/tests/run-pass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9-
#![cfg_attr(feature = "unstable", feature(proc_macro))]
9+
#![cfg_attr(feature = "unstable", feature(proc_macro, proc_macro_non_items))]
1010

1111
#[cfg_attr(not(feature = "unstable"), macro_use)]
1212
extern crate indoc;

tests/tests/ui-unstable/no-arguments.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
#![feature(proc_macro_non_items)]
10+
911
#[macro_use]
1012
extern crate indoc;
1113

tests/tests/ui-unstable/no-arguments.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: proc macro panicked
2-
--> $DIR/no-arguments.rs:13:5
2+
--> $DIR/no-arguments.rs:15:5
33
|
4-
13 | indoc!();
4+
15 | indoc!();
55
| ^^^^^^^^^
66
|
77
= help: message: argument must be a single string literal, but got 0 arguments

tests/tests/ui-unstable/non-lit.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
#![feature(proc_macro_non_items)]
10+
911
#[macro_use]
1012
extern crate indoc;
1113

tests/tests/ui-unstable/non-lit.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: proc macro panicked
2-
--> $DIR/non-lit.rs:13:5
2+
--> $DIR/non-lit.rs:15:5
33
|
4-
13 | indoc!(fail);
4+
15 | indoc!(fail);
55
| ^^^^^^^^^^^^^
66
|
77
= help: message: argument must be a single string literal

tests/tests/ui-unstable/non-string.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
#![feature(proc_macro_non_items)]
10+
911
#[macro_use]
1012
extern crate indoc;
1113

tests/tests/ui-unstable/non-string.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: proc macro panicked
2-
--> $DIR/non-string.rs:13:5
2+
--> $DIR/non-string.rs:15:5
33
|
4-
13 | indoc!(64);
4+
15 | indoc!(64);
55
| ^^^^^^^^^^^
66
|
77
= help: message: argument must be a single string literal

tests/tests/ui-unstable/two-arguments.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
#![feature(proc_macro_non_items)]
10+
911
#[macro_use]
1012
extern crate indoc;
1113

tests/tests/ui-unstable/two-arguments.stderr

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: proc macro panicked
2-
--> $DIR/two-arguments.rs:13:5
2+
--> $DIR/two-arguments.rs:15:5
33
|
4-
13 | / indoc!("
5-
14 | | a
6-
15 | | b
7-
16 | | c
8-
17 | | " 64);
4+
15 | / indoc!("
5+
16 | | a
6+
17 | | b
7+
18 | | c
8+
19 | | " 64);
99
| |______________^
1010
|
1111
= help: message: argument must be a single string literal, but got 2 arguments

0 commit comments

Comments
 (0)