Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc16ede

Browse files
committedDec 27, 2018
Fix rebase and more CI failures
1 parent 37af04f commit bc16ede

33 files changed

+136
-130
lines changed
 

‎src/test/ui/derives/derive-on-trait-item-or-impl-item.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ LL | #[derive(Clone)]
55
| ^^^^^^^^^^^^^^^^
66

77
error: `derive` may only be applied to structs, enums and unions
8-
--> $DIR/derive-on-trait-item-or-impl-item.rs:8:5
8+
--> $DIR/derive-on-trait-item-or-impl-item.rs:10:5
99
|
1010
LL | #[derive(Clone)]
1111
| ^^^^^^^^^^^^^^^^
1212

1313
error: aborting due to 2 previous errors
14+

‎src/test/ui/did_you_mean/issue-40396.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: chained comparison operators require parentheses
2-
--> $DIR/issue-40396.rs:2:37
2+
--> $DIR/issue-40396.rs:2:20
33
|
44
LL | (0..13).collect<Vec<i32>>();
55
| ^^^^^^^^
@@ -8,7 +8,7 @@ LL | (0..13).collect<Vec<i32>>();
88
= help: or use `(...)` if you meant to specify fn arguments
99

1010
error: chained comparison operators require parentheses
11-
--> $DIR/issue-40396.rs:6:25
11+
--> $DIR/issue-40396.rs:10:8
1212
|
1313
LL | Vec<i32>::new();
1414
| ^^^^^^^
@@ -17,7 +17,7 @@ LL | Vec<i32>::new();
1717
= help: or use `(...)` if you meant to specify fn arguments
1818

1919
error: chained comparison operators require parentheses
20-
--> $DIR/issue-40396.rs:10:37
20+
--> $DIR/issue-40396.rs:18:20
2121
|
2222
LL | (0..13).collect<Vec<i32>();
2323
| ^^^^^^^^
@@ -26,7 +26,7 @@ LL | (0..13).collect<Vec<i32>();
2626
= help: or use `(...)` if you meant to specify fn arguments
2727

2828
error: chained comparison operators require parentheses
29-
--> $DIR/issue-40396.rs:10:41
29+
--> $DIR/issue-40396.rs:18:24
3030
|
3131
LL | (0..13).collect<Vec<i32>();
3232
| ^^^^^^
@@ -35,65 +35,65 @@ LL | (0..13).collect<Vec<i32>();
3535
= help: or use `(...)` if you meant to specify fn arguments
3636

3737
error[E0423]: expected value, found struct `Vec`
38-
--> $DIR/issue-40396.rs:12:21
38+
--> $DIR/issue-40396.rs:2:21
3939
|
4040
LL | (0..13).collect<Vec<i32>>();
4141
| ^^^ did you mean `Vec { /* fields */ }`?
4242

4343
error[E0423]: expected value, found builtin type `i32`
44-
--> $DIR/issue-40396.rs:12:25
44+
--> $DIR/issue-40396.rs:2:25
4545
|
4646
LL | (0..13).collect<Vec<i32>>();
4747
| ^^^ not a value
4848

4949
error[E0423]: expected value, found struct `Vec`
50-
--> $DIR/issue-40396.rs:20:5
50+
--> $DIR/issue-40396.rs:10:5
5151
|
5252
LL | Vec<i32>::new();
5353
| ^^^ did you mean `Vec { /* fields */ }`?
5454

5555
error[E0423]: expected value, found builtin type `i32`
56-
--> $DIR/issue-40396.rs:20:9
56+
--> $DIR/issue-40396.rs:10:9
5757
|
5858
LL | Vec<i32>::new();
5959
| ^^^ not a value
6060

6161
error[E0425]: cannot find function `new` in the crate root
62-
--> $DIR/issue-40396.rs:20:15
62+
--> $DIR/issue-40396.rs:10:15
6363
|
6464
LL | Vec<i32>::new();
6565
| ^^^ not found in the crate root
6666

6767
error[E0423]: expected value, found struct `Vec`
68-
--> $DIR/issue-40396.rs:28:21
68+
--> $DIR/issue-40396.rs:18:21
6969
|
7070
LL | (0..13).collect<Vec<i32>();
7171
| ^^^ did you mean `Vec { /* fields */ }`?
7272

7373
error[E0423]: expected value, found builtin type `i32`
74-
--> $DIR/issue-40396.rs:28:25
74+
--> $DIR/issue-40396.rs:18:25
7575
|
7676
LL | (0..13).collect<Vec<i32>();
7777
| ^^^ not a value
7878

7979
error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>`
80-
--> $DIR/issue-40396.rs:12:13
80+
--> $DIR/issue-40396.rs:2:13
8181
|
8282
LL | (0..13).collect<Vec<i32>>();
8383
| ^^^^^^^
8484
|
8585
= help: maybe a `()` to call it is missing?
8686

8787
error[E0615]: attempted to take value of method `collect` on type `std::ops::Range<{integer}>`
88-
--> $DIR/issue-40396.rs:28:13
88+
--> $DIR/issue-40396.rs:18:13
8989
|
9090
LL | (0..13).collect<Vec<i32>();
9191
| ^^^^^^^
9292
|
9393
= help: maybe a `()` to call it is missing?
9494

9595
error[E0308]: mismatched types
96-
--> $DIR/issue-40396.rs:28:29
96+
--> $DIR/issue-40396.rs:18:29
9797
|
9898
LL | (0..13).collect<Vec<i32>();
9999
| ^^ expected bool, found ()
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
error: no rules expected the token `r#async`
2-
--> $DIR/edition-keywords-2015-2015-parsing.rs:12:31
2+
--> $DIR/edition-keywords-2015-2015-parsing.rs:16:31
33
|
44
LL | r#async = consumes_async!(r#async); //~ ERROR no rules expected the token `r#async`
55
| ^^^^^^^ no rules expected this token in macro call
66

77
error: no rules expected the token `async`
8-
--> $DIR/edition-keywords-2015-2015-parsing.rs:13:35
8+
--> $DIR/edition-keywords-2015-2015-parsing.rs:17:35
99
|
1010
LL | r#async = consumes_async_raw!(async); //~ ERROR no rules expected the token `async`
1111
| ^^^^^ no rules expected this token in macro call
1212

1313
error: aborting due to 2 previous errors
14+
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
error: no rules expected the token `r#async`
2-
--> $DIR/edition-keywords-2015-2018-parsing.rs:12:31
2+
--> $DIR/edition-keywords-2015-2018-parsing.rs:16:31
33
|
44
LL | r#async = consumes_async!(r#async); //~ ERROR no rules expected the token `r#async`
55
| ^^^^^^^ no rules expected this token in macro call
66

77
error: no rules expected the token `async`
8-
--> $DIR/edition-keywords-2015-2018-parsing.rs:13:35
8+
--> $DIR/edition-keywords-2015-2018-parsing.rs:17:35
99
|
1010
LL | r#async = consumes_async_raw!(async); //~ ERROR no rules expected the token `async`
1111
| ^^^^^ no rules expected this token in macro call
1212

1313
error: aborting due to 2 previous errors
14+

‎src/test/ui/feature-gates/feature-gate-asm2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: inline assembly is not stable enough for use and is subject to change (see issue #29722)
2-
--> $DIR/feature-gate-asm2.rs:5:24
2+
--> $DIR/feature-gate-asm2.rs:5:26
33
|
44
LL | println!("{:?}", asm!("")); //~ ERROR inline assembly is not stable
55
| ^^^^^^^^

‎src/test/ui/feature-gates/feature-gate-cfg-target-has-atomic.stderr

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,141 @@
11
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
2-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:13:7
2+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:15:7
33
|
44
LL | #[cfg(target_has_atomic = "8")]
55
| ^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
88

99
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
10-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:19:7
10+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:21:7
1111
|
1212
LL | #[cfg(target_has_atomic = "8")]
1313
| ^^^^^^^^^^^^^^^^^^^^^^^
1414
|
1515
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
1616

1717
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
18-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:24:7
18+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:26:7
1919
|
2020
LL | #[cfg(target_has_atomic = "16")]
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^
2222
|
2323
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
2424

2525
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
26-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:29:7
26+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:31:7
2727
|
2828
LL | #[cfg(target_has_atomic = "16")]
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^
3030
|
3131
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
3232

3333
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
34-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:34:7
34+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:36:7
3535
|
3636
LL | #[cfg(target_has_atomic = "32")]
3737
| ^^^^^^^^^^^^^^^^^^^^^^^^
3838
|
3939
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
4040

4141
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
42-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:39:7
42+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:41:7
4343
|
4444
LL | #[cfg(target_has_atomic = "32")]
4545
| ^^^^^^^^^^^^^^^^^^^^^^^^
4646
|
4747
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
4848

4949
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
50-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:44:7
50+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:46:7
5151
|
5252
LL | #[cfg(target_has_atomic = "64")]
5353
| ^^^^^^^^^^^^^^^^^^^^^^^^
5454
|
5555
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
5656

5757
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
58-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:49:7
58+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:51:7
5959
|
6060
LL | #[cfg(target_has_atomic = "64")]
6161
| ^^^^^^^^^^^^^^^^^^^^^^^^
6262
|
6363
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
6464

6565
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
66-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:54:7
66+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:56:7
6767
|
6868
LL | #[cfg(target_has_atomic = "128")]
6969
| ^^^^^^^^^^^^^^^^^^^^^^^^^
7070
|
7171
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
7272

7373
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
74-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:59:7
74+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:61:7
7575
|
7676
LL | #[cfg(target_has_atomic = "128")]
7777
| ^^^^^^^^^^^^^^^^^^^^^^^^^
7878
|
7979
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
8080

8181
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
82-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:64:7
82+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:66:7
8383
|
8484
LL | #[cfg(target_has_atomic = "ptr")]
8585
| ^^^^^^^^^^^^^^^^^^^^^^^^^
8686
|
8787
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
8888

8989
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
90-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:69:7
90+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:71:7
9191
|
9292
LL | #[cfg(target_has_atomic = "ptr")]
9393
| ^^^^^^^^^^^^^^^^^^^^^^^^^
9494
|
9595
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
9696

9797
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
98-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:76:10
98+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:78:10
9999
|
100100
LL | cfg!(target_has_atomic = "8");
101101
| ^^^^^^^^^^^^^^^^^^^^^^^
102102
|
103103
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
104104

105105
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
106-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:78:10
106+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:80:10
107107
|
108108
LL | cfg!(target_has_atomic = "16");
109109
| ^^^^^^^^^^^^^^^^^^^^^^^^
110110
|
111111
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
112112

113113
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
114-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:80:10
114+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:82:10
115115
|
116116
LL | cfg!(target_has_atomic = "32");
117117
| ^^^^^^^^^^^^^^^^^^^^^^^^
118118
|
119119
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
120120

121121
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
122-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:82:10
122+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:84:10
123123
|
124124
LL | cfg!(target_has_atomic = "64");
125125
| ^^^^^^^^^^^^^^^^^^^^^^^^
126126
|
127127
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
128128

129129
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
130-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:84:10
130+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:86:10
131131
|
132132
LL | cfg!(target_has_atomic = "128");
133133
| ^^^^^^^^^^^^^^^^^^^^^^^^^
134134
|
135135
= help: add #![feature(cfg_target_has_atomic)] to the crate attributes to enable
136136

137137
error[E0658]: `cfg(target_has_atomic)` is experimental and subject to change (see issue #32976)
138-
--> $DIR/feature-gate-cfg-target-has-atomic.rs:86:10
138+
--> $DIR/feature-gate-cfg-target-has-atomic.rs:88:10
139139
|
140140
LL | cfg!(target_has_atomic = "ptr");
141141
| ^^^^^^^^^^^^^^^^^^^^^^^^^

‎src/test/ui/feature-gates/feature-gate-concat_idents2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | concat_idents!(a, b); //~ ERROR `concat_idents` is not stable enough
77
= help: add #![feature(concat_idents)] to the crate attributes to enable
88

99
error[E0425]: cannot find value `ab` in this scope
10-
--> $DIR/feature-gate-concat_idents2.rs:14:5
10+
--> $DIR/feature-gate-concat_idents2.rs:4:5
1111
|
1212
LL | concat_idents!(a, b); //~ ERROR `concat_idents` is not stable enough
1313
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

‎src/test/ui/feature-gates/feature-gate-log_syntax2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: `log_syntax!` is not stable enough for use and is subject to change (see issue #29598)
2-
--> $DIR/feature-gate-log_syntax2.rs:4:20
2+
--> $DIR/feature-gate-log_syntax2.rs:4:22
33
|
44
LL | println!("{:?}", log_syntax!()); //~ ERROR `log_syntax!` is not stable
55
| ^^^^^^^^^^^^^

‎src/test/ui/feature-gates/feature-gate-rustc-attrs.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: unless otherwise specified, attributes with the prefix `rustc_` are reserved for internal compiler diagnostics (see issue #29642)
2-
--> $DIR/feature-gate-rustc-attrs.rs:5:3
2+
--> $DIR/feature-gate-rustc-attrs.rs:3:3
33
|
44
LL | #[rustc_foo]
55
| ^^^^^^^^^

‎src/test/ui/issues/issue-10536.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: macros that expand to items must either be surrounded with braces or followed by a semicolon
2-
--> $DIR/issue-10536.rs:16:22
2+
--> $DIR/issue-10536.rs:14:22
33
|
44
LL | assert!({one! two()});
55
| ^^
@@ -11,13 +11,13 @@ LL | assert!({one! two});
1111
| ^ expected `(` or `{`
1212

1313
error: cannot find macro `one!` in this scope
14-
--> $DIR/issue-10536.rs:24:14
14+
--> $DIR/issue-10536.rs:14:14
1515
|
1616
LL | assert!({one! two()});
1717
| ^^^
1818

1919
error[E0308]: mismatched types
20-
--> $DIR/issue-10536.rs:24:13
20+
--> $DIR/issue-10536.rs:14:13
2121
|
2222
LL | assert!({one! two()});
2323
| ^^^^^^^^^^^^ expected bool, found ()

‎src/test/ui/issues/issue-11692-1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | print!("{}", testo!());
99
| ^^^^^
1010

1111
error: cannot find macro `testo!` in this scope
12-
--> $DIR/issue-11692-1.rs:12:12
12+
--> $DIR/issue-11692-1.rs:2:12
1313
|
1414
LL | print!(testo!());
1515
| ^^^^^

‎src/test/ui/issues/issue-11692-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: expected a literal
2-
--> $DIR/issue-11692-2.rs:12:13
2+
--> $DIR/issue-11692-2.rs:2:13
33
|
44
LL | concat!(test!()); //~ ERROR cannot find macro `test!` in this scope
55
| ^^^^^^^

‎src/test/ui/issues/issue-32950.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | concat_idents!(Foo, Bar) //~ ERROR `derive` cannot be used on items wit
55
| ^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error[E0412]: cannot find type `FooBar` in this scope
8-
--> $DIR/issue-32950.rs:15:5
8+
--> $DIR/issue-32950.rs:5:5
99
|
1010
LL | concat_idents!(Foo, Bar) //~ ERROR `derive` cannot be used on items with type macros
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope

‎src/test/ui/issues/issue-49074.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | #[marco_use] // typo
77
= help: add #![feature(custom_attribute)] to the crate attributes to enable
88

99
error: cannot find macro `bar!` in this scope
10-
--> $DIR/issue-49074.rs:22:4
10+
--> $DIR/issue-49074.rs:12:4
1111
|
1212
LL | bar!(); //~ ERROR cannot find macro `bar!` in this scope
1313
| ^^^

‎src/test/ui/issues/issue-51279.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ LL | type Z<#[ignored] 'a, #[cfg(none)] T> = X<'a, T>;
4747
| ^^^^^^^^^^^^
4848

4949
error[E0658]: The attribute `ignored` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
50-
--> $DIR/issue-51279.rs:33:8
50+
--> $DIR/issue-51279.rs:23:8
5151
|
5252
LL | type Z<#[ignored] 'a, #[cfg(none)] T> = X<'a, T>;
5353
| ^^^^^^^^^^

‎src/test/ui/issues/issue-6596-2.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ LL | g!(foo);
88
| -------- in this macro invocation
99

1010
error: aborting due to previous error
11+

‎src/test/ui/macro_backtrace/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ macro_rules! pong {
1212
//~| ERROR expected one of
1313
//~| ERROR expected one of
1414

15+
#[allow(non_camel_case_types)]
1516
struct syntax;
1617

1718
fn main() {
Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,44 @@
11
error: 1 positional argument in format string, but no arguments were given
2-
--> $DIR/macro-comma-behavior.rs:17:23
2+
--> $DIR/macro-comma-behavior.rs:21:23
33
|
44
LL | assert_eq!(1, 1, "{}",);
55
| ^^
66

77
error: 1 positional argument in format string, but no arguments were given
8-
--> $DIR/macro-comma-behavior.rs:20:23
8+
--> $DIR/macro-comma-behavior.rs:24:23
99
|
1010
LL | assert_ne!(1, 2, "{}",);
1111
| ^^
1212

1313
error: 1 positional argument in format string, but no arguments were given
14-
--> $DIR/macro-comma-behavior.rs:26:29
14+
--> $DIR/macro-comma-behavior.rs:30:29
1515
|
1616
LL | debug_assert_eq!(1, 1, "{}",);
1717
| ^^
1818

1919
error: 1 positional argument in format string, but no arguments were given
20-
--> $DIR/macro-comma-behavior.rs:29:29
20+
--> $DIR/macro-comma-behavior.rs:33:29
2121
|
2222
LL | debug_assert_ne!(1, 2, "{}",);
2323
| ^^
2424

2525
error: 1 positional argument in format string, but no arguments were given
26-
--> $DIR/macro-comma-behavior.rs:50:19
26+
--> $DIR/macro-comma-behavior.rs:54:19
2727
|
2828
LL | format_args!("{}",);
2929
| ^^
3030

3131
error: 1 positional argument in format string, but no arguments were given
32-
--> $DIR/macro-comma-behavior.rs:68:21
32+
--> $DIR/macro-comma-behavior.rs:72:21
3333
|
3434
LL | unimplemented!("{}",);
3535
| ^^
3636

3737
error: 1 positional argument in format string, but no arguments were given
38-
--> $DIR/macro-comma-behavior.rs:77:24
38+
--> $DIR/macro-comma-behavior.rs:81:24
3939
|
4040
LL | write!(f, "{}",)?;
4141
| ^^
4242

43-
error: `#[panic_handler]` function required, but not found
43+
error: aborting due to 7 previous errors
4444

45-
error: language item required, but not found: `eh_personality`
46-
47-
error: aborting due to 9 previous errors

‎src/test/ui/macros/macro-comma-behavior.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
#[cfg(std)] use std::fmt;
1010
#[cfg(core)] use core::fmt;
11+
#[cfg(core)] #[lang = "eh_personality"] fn eh_personality() {}
1112
#[cfg(core)] #[lang = "eh_unwind_resume"] fn eh_unwind_resume() {}
13+
#[cfg(core)] #[lang = "panic_impl"] fn panic_impl(panic: &core::panic::PanicInfo) -> ! { loop {} }
1214

1315
// (see documentation of the similarly-named test in run-pass)
1416
fn to_format_or_not_to_format() {
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,62 @@
11
error: 1 positional argument in format string, but no arguments were given
2-
--> $DIR/macro-comma-behavior.rs:17:23
2+
--> $DIR/macro-comma-behavior.rs:21:23
33
|
44
LL | assert_eq!(1, 1, "{}",);
55
| ^^
66

77
error: 1 positional argument in format string, but no arguments were given
8-
--> $DIR/macro-comma-behavior.rs:20:23
8+
--> $DIR/macro-comma-behavior.rs:24:23
99
|
1010
LL | assert_ne!(1, 2, "{}",);
1111
| ^^
1212

1313
error: 1 positional argument in format string, but no arguments were given
14-
--> $DIR/macro-comma-behavior.rs:26:29
14+
--> $DIR/macro-comma-behavior.rs:30:29
1515
|
1616
LL | debug_assert_eq!(1, 1, "{}",);
1717
| ^^
1818

1919
error: 1 positional argument in format string, but no arguments were given
20-
--> $DIR/macro-comma-behavior.rs:29:29
20+
--> $DIR/macro-comma-behavior.rs:33:29
2121
|
2222
LL | debug_assert_ne!(1, 2, "{}",);
2323
| ^^
2424

2525
error: 1 positional argument in format string, but no arguments were given
26-
--> $DIR/macro-comma-behavior.rs:34:18
26+
--> $DIR/macro-comma-behavior.rs:38:18
2727
|
2828
LL | eprint!("{}",);
2929
| ^^
3030

3131
error: 1 positional argument in format string, but no arguments were given
32-
--> $DIR/macro-comma-behavior.rs:46:18
32+
--> $DIR/macro-comma-behavior.rs:50:18
3333
|
3434
LL | format!("{}",);
3535
| ^^
3636

3737
error: 1 positional argument in format string, but no arguments were given
38-
--> $DIR/macro-comma-behavior.rs:50:19
38+
--> $DIR/macro-comma-behavior.rs:54:19
3939
|
4040
LL | format_args!("{}",);
4141
| ^^
4242

4343
error: 1 positional argument in format string, but no arguments were given
44-
--> $DIR/macro-comma-behavior.rs:57:17
44+
--> $DIR/macro-comma-behavior.rs:61:17
4545
|
4646
LL | print!("{}",);
4747
| ^^
4848

4949
error: 1 positional argument in format string, but no arguments were given
50-
--> $DIR/macro-comma-behavior.rs:68:21
50+
--> $DIR/macro-comma-behavior.rs:72:21
5151
|
5252
LL | unimplemented!("{}",);
5353
| ^^
5454

5555
error: 1 positional argument in format string, but no arguments were given
56-
--> $DIR/macro-comma-behavior.rs:77:24
56+
--> $DIR/macro-comma-behavior.rs:81:24
5757
|
5858
LL | write!(f, "{}",)?;
5959
| ^^
6060

6161
error: aborting due to 10 previous errors
62+

‎src/test/ui/parser/macro/pub-item-macro.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | pub_x!();
1010
= help: try adjusting the macro to put `pub` inside the invocation
1111

1212
error[E0603]: static `x` is private
13-
--> $DIR/pub-item-macro.rs:27:23
13+
--> $DIR/pub-item-macro.rs:17:23
1414
|
1515
LL | let y: u32 = foo::x; //~ ERROR static `x` is private
1616
| ^

‎src/test/ui/proc-macro/issue-41211.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | #![emit_unchanged]
77
= help: add #![feature(custom_attribute)] to the crate attributes to enable
88

99
error: inconsistent resolution for a macro: first custom attribute, then attribute macro
10-
--> $DIR/issue-41211.rs:18:4
10+
--> $DIR/issue-41211.rs:8:4
1111
|
1212
LL | #![emit_unchanged]
1313
| ^^^^^^^^^^^^^^

‎src/test/ui/proc-macro/more-gates.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
error[E0658]: procedural macros cannot expand to macro definitions (see issue #54727)
2-
--> $DIR/more-gates.rs:7:1
2+
--> $DIR/more-gates.rs:9:1
33
|
44
LL | #[attr2mac1]
55
| ^^^^^^^^^^^^
66
|
77
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
88

99
error[E0658]: procedural macros cannot expand to macro definitions (see issue #54727)
10-
--> $DIR/more-gates.rs:10:1
10+
--> $DIR/more-gates.rs:12:1
1111
|
1212
LL | #[attr2mac2]
1313
| ^^^^^^^^^^^^
1414
|
1515
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
1616

1717
error[E0658]: procedural macros cannot expand to macro definitions (see issue #54727)
18-
--> $DIR/more-gates.rs:14:1
18+
--> $DIR/more-gates.rs:16:1
1919
|
2020
LL | mac2mac1!(); //~ ERROR: cannot expand to macro definitions
2121
| ^^^^^^^^^^^^
2222
|
2323
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
2424

2525
error[E0658]: procedural macros cannot expand to macro definitions (see issue #54727)
26-
--> $DIR/more-gates.rs:15:1
26+
--> $DIR/more-gates.rs:17:1
2727
|
2828
LL | mac2mac2!(); //~ ERROR: cannot expand to macro definitions
2929
| ^^^^^^^^^^^^
3030
|
3131
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
3232

3333
error[E0658]: procedural macros cannot expand to macro definitions (see issue #54727)
34-
--> $DIR/more-gates.rs:17:1
34+
--> $DIR/more-gates.rs:19:1
3535
|
3636
LL | tricky!();
3737
| ^^^^^^^^^^

‎src/test/ui/proc-macro/parent-source-spans.stderr

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@ LL | one!("hello", "world");
3535
| ----------------------- in this macro invocation
3636

3737
error: first grandparent: "hello"
38-
--> $DIR/parent-source-spans.rs:34:5
38+
--> $DIR/parent-source-spans.rs:37:5
3939
|
4040
LL | one!("hello", "world");
4141
| ^^^^^^^^^^^^^^^^^^^^^^^
4242

4343
error: second grandparent: "world"
44-
--> $DIR/parent-source-spans.rs:34:5
44+
--> $DIR/parent-source-spans.rs:37:5
4545
|
4646
LL | one!("hello", "world");
4747
| ^^^^^^^^^^^^^^^^^^^^^^^
4848

4949
error: first source: "hello"
50-
--> $DIR/parent-source-spans.rs:34:5
50+
--> $DIR/parent-source-spans.rs:37:5
5151
|
5252
LL | one!("hello", "world");
5353
| ^^^^^^^^^^^^^^^^^^^^^^^
5454

5555
error: second source: "world"
56-
--> $DIR/parent-source-spans.rs:34:5
56+
--> $DIR/parent-source-spans.rs:37:5
5757
|
5858
LL | one!("hello", "world");
5959
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -77,55 +77,55 @@ LL | two!("yay", "rust");
7777
| -------------------- in this macro invocation
7878

7979
error: first parent: "yay"
80-
--> $DIR/parent-source-spans.rs:40:5
80+
--> $DIR/parent-source-spans.rs:43:5
8181
|
8282
LL | two!("yay", "rust");
8383
| ^^^^^^^^^^^^^^^^^^^^
8484

8585
error: second parent: "rust"
86-
--> $DIR/parent-source-spans.rs:40:5
86+
--> $DIR/parent-source-spans.rs:43:5
8787
|
8888
LL | two!("yay", "rust");
8989
| ^^^^^^^^^^^^^^^^^^^^
9090

9191
error: first source: "yay"
92-
--> $DIR/parent-source-spans.rs:40:5
92+
--> $DIR/parent-source-spans.rs:43:5
9393
|
9494
LL | two!("yay", "rust");
9595
| ^^^^^^^^^^^^^^^^^^^^
9696

9797
error: second source: "rust"
98-
--> $DIR/parent-source-spans.rs:40:5
98+
--> $DIR/parent-source-spans.rs:43:5
9999
|
100100
LL | two!("yay", "rust");
101101
| ^^^^^^^^^^^^^^^^^^^^
102102

103103
error: first final: "hip"
104-
--> $DIR/parent-source-spans.rs:46:12
104+
--> $DIR/parent-source-spans.rs:49:12
105105
|
106106
LL | three!("hip", "hop");
107107
| ^^^^^
108108

109109
error: second final: "hop"
110-
--> $DIR/parent-source-spans.rs:46:19
110+
--> $DIR/parent-source-spans.rs:49:19
111111
|
112112
LL | three!("hip", "hop");
113113
| ^^^^^
114114

115115
error: first source: "hip"
116-
--> $DIR/parent-source-spans.rs:46:12
116+
--> $DIR/parent-source-spans.rs:49:12
117117
|
118118
LL | three!("hip", "hop");
119119
| ^^^^^
120120

121121
error: second source: "hop"
122-
--> $DIR/parent-source-spans.rs:46:19
122+
--> $DIR/parent-source-spans.rs:49:19
123123
|
124124
LL | three!("hip", "hop");
125125
| ^^^^^
126126

127127
error[E0425]: cannot find value `ok` in this scope
128-
--> $DIR/parent-source-spans.rs:40:5
128+
--> $DIR/parent-source-spans.rs:30:5
129129
|
130130
LL | parent_source_spans!($($tokens)*);
131131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `Ok`?
@@ -134,7 +134,7 @@ LL | one!("hello", "world");
134134
| ----------------------- in this macro invocation
135135

136136
error[E0425]: cannot find value `ok` in this scope
137-
--> $DIR/parent-source-spans.rs:40:5
137+
--> $DIR/parent-source-spans.rs:30:5
138138
|
139139
LL | parent_source_spans!($($tokens)*);
140140
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `Ok`?
@@ -143,7 +143,7 @@ LL | two!("yay", "rust");
143143
| -------------------- in this macro invocation
144144

145145
error[E0425]: cannot find value `ok` in this scope
146-
--> $DIR/parent-source-spans.rs:40:5
146+
--> $DIR/parent-source-spans.rs:30:5
147147
|
148148
LL | parent_source_spans!($($tokens)*);
149149
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `Ok`?

‎src/test/ui/proc-macro/proc-macro-attributes.stderr

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,75 +7,75 @@ LL | #[C] //~ ERROR attribute `C` is currently unknown to the compiler
77
= help: add #![feature(custom_attribute)] to the crate attributes to enable
88

99
error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
10-
--> $DIR/proc-macro-attributes.rs:16:3
10+
--> $DIR/proc-macro-attributes.rs:6:3
1111
|
1212
LL | #[B] //~ ERROR `B` is ambiguous
1313
| ^ ambiguous name
1414
|
1515
note: `B` could refer to the derive helper attribute defined here
16-
--> $DIR/proc-macro-attributes.rs:22:10
16+
--> $DIR/proc-macro-attributes.rs:12:10
1717
|
1818
LL | #[derive(B)]
1919
| ^
2020
note: `B` could also refer to the derive macro imported here
21-
--> $DIR/proc-macro-attributes.rs:13:1
21+
--> $DIR/proc-macro-attributes.rs:3:1
2222
|
2323
LL | #[macro_use]
2424
| ^^^^^^^^^^^^
2525

2626
error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
27-
--> $DIR/proc-macro-attributes.rs:18:3
27+
--> $DIR/proc-macro-attributes.rs:8:3
2828
|
2929
LL | #[B(D)] //~ ERROR `B` is ambiguous
3030
| ^ ambiguous name
3131
|
3232
note: `B` could refer to the derive helper attribute defined here
33-
--> $DIR/proc-macro-attributes.rs:22:10
33+
--> $DIR/proc-macro-attributes.rs:12:10
3434
|
3535
LL | #[derive(B)]
3636
| ^
3737
note: `B` could also refer to the derive macro imported here
38-
--> $DIR/proc-macro-attributes.rs:13:1
38+
--> $DIR/proc-macro-attributes.rs:3:1
3939
|
4040
LL | #[macro_use]
4141
| ^^^^^^^^^^^^
4242

4343
error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
44-
--> $DIR/proc-macro-attributes.rs:19:3
44+
--> $DIR/proc-macro-attributes.rs:9:3
4545
|
4646
LL | #[B(E = "foo")] //~ ERROR `B` is ambiguous
4747
| ^ ambiguous name
4848
|
4949
note: `B` could refer to the derive helper attribute defined here
50-
--> $DIR/proc-macro-attributes.rs:22:10
50+
--> $DIR/proc-macro-attributes.rs:12:10
5151
|
5252
LL | #[derive(B)]
5353
| ^
5454
note: `B` could also refer to the derive macro imported here
55-
--> $DIR/proc-macro-attributes.rs:13:1
55+
--> $DIR/proc-macro-attributes.rs:3:1
5656
|
5757
LL | #[macro_use]
5858
| ^^^^^^^^^^^^
5959

6060
error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
61-
--> $DIR/proc-macro-attributes.rs:20:3
61+
--> $DIR/proc-macro-attributes.rs:10:3
6262
|
6363
LL | #[B(arbitrary tokens)] //~ ERROR `B` is ambiguous
6464
| ^ ambiguous name
6565
|
6666
note: `B` could refer to the derive helper attribute defined here
67-
--> $DIR/proc-macro-attributes.rs:22:10
67+
--> $DIR/proc-macro-attributes.rs:12:10
6868
|
6969
LL | #[derive(B)]
7070
| ^
7171
note: `B` could also refer to the derive macro imported here
72-
--> $DIR/proc-macro-attributes.rs:13:1
72+
--> $DIR/proc-macro-attributes.rs:3:1
7373
|
7474
LL | #[macro_use]
7575
| ^^^^^^^^^^^^
7676

7777
error: expected one of `(`, `)`, `,`, `::`, or `=`, found `tokens`
78-
--> $DIR/proc-macro-attributes.rs:20:15
78+
--> $DIR/proc-macro-attributes.rs:10:15
7979
|
8080
LL | #[B(arbitrary tokens)] //~ ERROR `B` is ambiguous
8181
| ^^^^^^ expected one of `(`, `)`, `,`, `::`, or `=` here

‎src/test/ui/quote-with-interpolated.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ LL | foo!(bar);
88
| ---------- in this macro invocation
99

1010
error[E0433]: failed to resolve: maybe a missing `extern crate syntax;`?
11-
--> $DIR/quote-with-interpolated.rs:15:13
11+
--> $DIR/quote-with-interpolated.rs:5:13
1212
|
1313
LL | quote_expr!(cx, $bar)
1414
| ^^^^^^^^^^^^^^^^^^^^^ maybe a missing `extern crate syntax;`?
1515

1616
error[E0433]: failed to resolve: maybe a missing `extern crate syntax;`?
17-
--> $DIR/quote-with-interpolated.rs:15:29
17+
--> $DIR/quote-with-interpolated.rs:5:29
1818
|
1919
LL | quote_expr!(cx, $bar)
2020
| ^^^^ maybe a missing `extern crate syntax;`?
2121

2222
error[E0425]: cannot find value `cx` in this scope
23-
--> $DIR/quote-with-interpolated.rs:15:25
23+
--> $DIR/quote-with-interpolated.rs:5:25
2424
|
2525
LL | quote_expr!(cx, $bar)
2626
| ^^ not found in this scope
@@ -29,7 +29,7 @@ LL | foo!(bar);
2929
| ---------- in this macro invocation
3030

3131
error[E0425]: cannot find function `new_parser_from_tts` in this scope
32-
--> $DIR/quote-with-interpolated.rs:15:13
32+
--> $DIR/quote-with-interpolated.rs:5:13
3333
|
3434
LL | quote_expr!(cx, $bar)
3535
| ^^^^^^^^^^^^^^^^^^^^^ not found in this scope

‎src/test/ui/reserved/reserved-attr-on-macro.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | #[rustc_attribute_should_be_reserved]
77
= help: add #![feature(rustc_attrs)] to the crate attributes to enable
88

99
error: cannot determine resolution for the macro `foo`
10-
--> $DIR/reserved-attr-on-macro.rs:18:5
10+
--> $DIR/reserved-attr-on-macro.rs:8:5
1111
|
1212
LL | foo!(); //~ ERROR cannot determine resolution for the macro `foo`
1313
| ^^^

‎src/test/ui/self/self_type_keyword.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,43 @@ LL | struct Self;
55
| ^^^^ expected identifier, found keyword
66

77
error: expected identifier, found keyword `Self`
8-
--> $DIR/self_type_keyword.rs:15:13
8+
--> $DIR/self_type_keyword.rs:16:13
99
|
1010
LL | ref Self => (),
1111
| ^^^^ expected identifier, found keyword
1212

1313
error: expected identifier, found keyword `Self`
14-
--> $DIR/self_type_keyword.rs:17:13
14+
--> $DIR/self_type_keyword.rs:18:13
1515
|
1616
LL | mut Self => (),
1717
| ^^^^ expected identifier, found keyword
1818

1919
error: expected identifier, found keyword `Self`
20-
--> $DIR/self_type_keyword.rs:19:17
20+
--> $DIR/self_type_keyword.rs:20:17
2121
|
2222
LL | ref mut Self => (),
2323
| ^^^^ expected identifier, found keyword
2424

2525
error: expected identifier, found keyword `Self`
26-
--> $DIR/self_type_keyword.rs:23:15
26+
--> $DIR/self_type_keyword.rs:24:15
2727
|
2828
LL | Foo { Self } => (),
2929
| ^^^^ expected identifier, found keyword
3030

3131
error: expected identifier, found keyword `Self`
32-
--> $DIR/self_type_keyword.rs:29:26
32+
--> $DIR/self_type_keyword.rs:30:26
3333
|
3434
LL | extern crate core as Self;
3535
| ^^^^ expected identifier, found keyword
3636

3737
error: expected identifier, found keyword `Self`
38-
--> $DIR/self_type_keyword.rs:34:32
38+
--> $DIR/self_type_keyword.rs:35:32
3939
|
4040
LL | use std::option::Option as Self;
4141
| ^^^^ expected identifier, found keyword
4242

4343
error: expected identifier, found keyword `Self`
44-
--> $DIR/self_type_keyword.rs:39:11
44+
--> $DIR/self_type_keyword.rs:40:11
4545
|
4646
LL | trait Self {}
4747
| ^^^^ expected identifier, found keyword
@@ -53,13 +53,13 @@ LL | struct Bar<'Self>;
5353
| ^^^^^
5454

5555
error: cannot find macro `Self!` in this scope
56-
--> $DIR/self_type_keyword.rs:21:9
56+
--> $DIR/self_type_keyword.rs:22:9
5757
|
5858
LL | Self!() => (),
5959
| ^^^^
6060

6161
error[E0392]: parameter `'Self` is never used
62-
--> $DIR/self_type_keyword.rs:18:12
62+
--> $DIR/self_type_keyword.rs:8:12
6363
|
6464
LL | struct Bar<'Self>;
6565
| ^^^^^ unused type parameter
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
error: unexpected generic arguments in path
1+
error: generic arguments in macro path
22
--> $DIR/macro-ty-params.rs:10:8
33
|
44
LL | foo::<T>!(); //~ ERROR generic arguments in macro path
55
| ^^^^^
66

77
error: generic arguments in macro path
8-
--> $DIR/macro-ty-params.rs:10:15
8+
--> $DIR/macro-ty-params.rs:11:8
99
|
1010
LL | foo::<>!(); //~ ERROR generic arguments in macro path
1111
| ^^^^
1212

13-
error: generic arguments in macro path
14-
--> $DIR/macro-ty-params.rs:8:8
13+
error: unexpected generic arguments in path
14+
--> $DIR/macro-ty-params.rs:12:8
1515
|
1616
LL | m!(Default<>); //~ ERROR generic arguments in macro path
1717
| ^^^^^^^^^
1818

1919
error: generic arguments in macro path
20-
--> $DIR/macro-ty-params.rs:9:8
20+
--> $DIR/macro-ty-params.rs:12:15
2121
|
2222
LL | m!(Default<>); //~ ERROR generic arguments in macro path
2323
| ^^
2424

2525
error: aborting due to 4 previous errors
26+

‎src/test/ui/span/visibility-ty-params.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ LL | m!{ S<u8> } //~ ERROR unexpected generic arguments in path
55
| ^^^^^
66

77
error: unexpected generic arguments in path
8-
--> $DIR/visibility-ty-params.rs:9:9
8+
--> $DIR/visibility-ty-params.rs:10:9
99
|
1010
LL | m!{ m<> } //~ ERROR unexpected generic arguments in path
1111
| ^^^
1212

1313
error[E0577]: expected module, found struct `S`
14-
--> $DIR/visibility-ty-params.rs:16:5
14+
--> $DIR/visibility-ty-params.rs:6:5
1515
|
1616
LL | m!{ S<u8> } //~ ERROR unexpected generic arguments in path
1717
| -^^^^

‎src/test/ui/trace_macros-gate.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LL | trace_macros!(); //~ ERROR `trace_macros` is not stable
77
= help: add #![feature(trace_macros)] to the crate attributes to enable
88

99
error: trace_macros! accepts only `true` or `false`
10-
--> $DIR/trace_macros-gate.rs:14:5
10+
--> $DIR/trace_macros-gate.rs:4:5
1111
|
1212
LL | trace_macros!(); //~ ERROR `trace_macros` is not stable
1313
| ^^^^^^^^^^^^^^^^
@@ -29,7 +29,7 @@ LL | trace_macros!(false); //~ ERROR `trace_macros` is not stable
2929
= help: add #![feature(trace_macros)] to the crate attributes to enable
3030

3131
error[E0658]: `trace_macros` is not stable enough for use and is subject to change (see issue #29598)
32-
--> $DIR/trace_macros-gate.rs:20:26
32+
--> $DIR/trace_macros-gate.rs:10:26
3333
|
3434
LL | ($x: ident) => { trace_macros!($x) } //~ ERROR `trace_macros` is not stable
3535
| ^^^^^^^^^^^^^^^^^

‎src/test/ui/tuple/tuple-struct-fields/test2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | define_struct! { (foo) } //~ ERROR cannot find type `foo` in this scope
88
| ------------------------ in this macro invocation
99

1010
error[E0412]: cannot find type `foo` in this scope
11-
--> $DIR/test2.rs:21:23
11+
--> $DIR/test2.rs:11:23
1212
|
1313
LL | define_struct! { (foo) } //~ ERROR cannot find type `foo` in this scope
1414
| ^^^ not found in this scope

‎src/test/ui/tuple/tuple-struct-fields/test3.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | define_struct! { foo } //~ ERROR cannot find type `foo` in this scope
88
| ---------------------- in this macro invocation
99

1010
error[E0412]: cannot find type `foo` in this scope
11-
--> $DIR/test3.rs:21:22
11+
--> $DIR/test3.rs:11:22
1212
|
1313
LL | define_struct! { foo } //~ ERROR cannot find type `foo` in this scope
1414
| ^^^ not found in this scope

0 commit comments

Comments
 (0)
Please sign in to comment.