|
1 | 1 | error: the `async` keyword is missing from the function declaration
|
2 |
| - --> $DIR/macros_invalid_input.rs:4:1 |
| 2 | + --> tests/fail/macros_invalid_input.rs:6:1 |
3 | 3 | |
|
4 |
| -4 | fn main_is_not_async() {} |
| 4 | +6 | fn main_is_not_async() {} |
5 | 5 | | ^^
|
6 | 6 |
|
7 | 7 | error: Unknown attribute foo is specified; expected one of: `flavor`, `worker_threads`, `start_paused`, `crate`
|
8 |
| - --> $DIR/macros_invalid_input.rs:6:15 |
| 8 | + --> tests/fail/macros_invalid_input.rs:8:15 |
9 | 9 | |
|
10 |
| -6 | #[tokio::main(foo)] |
| 10 | +8 | #[tokio::main(foo)] |
11 | 11 | | ^^^
|
12 | 12 |
|
13 | 13 | error: Must have specified ident
|
14 |
| - --> $DIR/macros_invalid_input.rs:9:15 |
15 |
| - | |
16 |
| -9 | #[tokio::main(threadpool::bar)] |
17 |
| - | ^^^^^^^^^^^^^^^ |
| 14 | + --> tests/fail/macros_invalid_input.rs:11:15 |
| 15 | + | |
| 16 | +11 | #[tokio::main(threadpool::bar)] |
| 17 | + | ^^^^^^^^^^^^^^^ |
18 | 18 |
|
19 | 19 | error: the `async` keyword is missing from the function declaration
|
20 |
| - --> $DIR/macros_invalid_input.rs:13:1 |
| 20 | + --> tests/fail/macros_invalid_input.rs:15:1 |
21 | 21 | |
|
22 |
| -13 | fn test_is_not_async() {} |
| 22 | +15 | fn test_is_not_async() {} |
23 | 23 | | ^^
|
24 | 24 |
|
25 | 25 | error: Unknown attribute foo is specified; expected one of: `flavor`, `worker_threads`, `start_paused`, `crate`
|
26 |
| - --> $DIR/macros_invalid_input.rs:15:15 |
| 26 | + --> tests/fail/macros_invalid_input.rs:17:15 |
27 | 27 | |
|
28 |
| -15 | #[tokio::test(foo)] |
| 28 | +17 | #[tokio::test(foo)] |
29 | 29 | | ^^^
|
30 | 30 |
|
31 | 31 | error: Unknown attribute foo is specified; expected one of: `flavor`, `worker_threads`, `start_paused`, `crate`
|
32 |
| - --> $DIR/macros_invalid_input.rs:18:15 |
| 32 | + --> tests/fail/macros_invalid_input.rs:20:15 |
33 | 33 | |
|
34 |
| -18 | #[tokio::test(foo = 123)] |
| 34 | +20 | #[tokio::test(foo = 123)] |
35 | 35 | | ^^^^^^^^^
|
36 | 36 |
|
37 | 37 | error: Failed to parse value of `flavor` as string.
|
38 |
| - --> $DIR/macros_invalid_input.rs:21:24 |
| 38 | + --> tests/fail/macros_invalid_input.rs:23:24 |
39 | 39 | |
|
40 |
| -21 | #[tokio::test(flavor = 123)] |
| 40 | +23 | #[tokio::test(flavor = 123)] |
41 | 41 | | ^^^
|
42 | 42 |
|
43 | 43 | error: No such runtime flavor `foo`. The runtime flavors are `current_thread` and `multi_thread`.
|
44 |
| - --> $DIR/macros_invalid_input.rs:24:24 |
| 44 | + --> tests/fail/macros_invalid_input.rs:26:24 |
45 | 45 | |
|
46 |
| -24 | #[tokio::test(flavor = "foo")] |
| 46 | +26 | #[tokio::test(flavor = "foo")] |
47 | 47 | | ^^^^^
|
48 | 48 |
|
49 | 49 | error: The `start_paused` option requires the `current_thread` runtime flavor. Use `#[tokio::test(flavor = "current_thread")]`
|
50 |
| - --> $DIR/macros_invalid_input.rs:27:55 |
| 50 | + --> tests/fail/macros_invalid_input.rs:29:55 |
51 | 51 | |
|
52 |
| -27 | #[tokio::test(flavor = "multi_thread", start_paused = false)] |
| 52 | +29 | #[tokio::test(flavor = "multi_thread", start_paused = false)] |
53 | 53 | | ^^^^^
|
54 | 54 |
|
55 | 55 | error: Failed to parse value of `worker_threads` as integer.
|
56 |
| - --> $DIR/macros_invalid_input.rs:30:57 |
| 56 | + --> tests/fail/macros_invalid_input.rs:32:57 |
57 | 57 | |
|
58 |
| -30 | #[tokio::test(flavor = "multi_thread", worker_threads = "foo")] |
| 58 | +32 | #[tokio::test(flavor = "multi_thread", worker_threads = "foo")] |
59 | 59 | | ^^^^^
|
60 | 60 |
|
61 | 61 | error: The `worker_threads` option requires the `multi_thread` runtime flavor. Use `#[tokio::test(flavor = "multi_thread")]`
|
62 |
| - --> $DIR/macros_invalid_input.rs:33:59 |
| 62 | + --> tests/fail/macros_invalid_input.rs:35:59 |
63 | 63 | |
|
64 |
| -33 | #[tokio::test(flavor = "current_thread", worker_threads = 4)] |
| 64 | +35 | #[tokio::test(flavor = "current_thread", worker_threads = 4)] |
65 | 65 | | ^
|
66 | 66 |
|
67 | 67 | error: Failed to parse value of `crate` as ident.
|
68 |
| - --> $DIR/macros_invalid_input.rs:36:23 |
| 68 | + --> tests/fail/macros_invalid_input.rs:38:23 |
69 | 69 | |
|
70 |
| -36 | #[tokio::test(crate = 456)] |
| 70 | +38 | #[tokio::test(crate = 456)] |
71 | 71 | | ^^^
|
72 | 72 |
|
73 | 73 | error: Failed to parse value of `crate` as ident: "456"
|
74 |
| - --> $DIR/macros_invalid_input.rs:39:23 |
| 74 | + --> tests/fail/macros_invalid_input.rs:41:23 |
75 | 75 | |
|
76 |
| -39 | #[tokio::test(crate = "456")] |
| 76 | +41 | #[tokio::test(crate = "456")] |
77 | 77 | | ^^^^^
|
78 | 78 |
|
79 | 79 | error: Failed to parse value of `crate` as ident: "abc::edf"
|
80 |
| - --> $DIR/macros_invalid_input.rs:42:23 |
| 80 | + --> tests/fail/macros_invalid_input.rs:44:23 |
81 | 81 | |
|
82 |
| -42 | #[tokio::test(crate = "abc::edf")] |
| 82 | +44 | #[tokio::test(crate = "abc::edf")] |
83 | 83 | | ^^^^^^^^^^
|
84 | 84 |
|
85 | 85 | error: second test attribute is supplied
|
86 |
| - --> $DIR/macros_invalid_input.rs:46:1 |
| 86 | + --> tests/fail/macros_invalid_input.rs:48:1 |
87 | 87 | |
|
88 |
| -46 | #[test] |
| 88 | +48 | #[test] |
89 | 89 | | ^^^^^^^
|
90 | 90 |
|
91 | 91 | error: duplicated attribute
|
92 |
| - --> $DIR/macros_invalid_input.rs:46:1 |
| 92 | + --> tests/fail/macros_invalid_input.rs:48:1 |
93 | 93 | |
|
94 |
| -46 | #[test] |
| 94 | +48 | #[test] |
95 | 95 | | ^^^^^^^
|
96 | 96 | |
|
97 |
| - = note: `-D duplicate-macro-attributes` implied by `-D warnings` |
| 97 | +note: the lint level is defined here |
| 98 | + --> tests/fail/macros_invalid_input.rs:1:9 |
| 99 | + | |
| 100 | +1 | #![deny(duplicate_macro_attributes)] |
| 101 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
0 commit comments