Skip to content

Commit fe82c39

Browse files
Alter/Bless lots of tests of last CI failure.
1 parent 142f561 commit fe82c39

File tree

60 files changed

+1186
-194
lines changed

Some content is hidden

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

60 files changed

+1186
-194
lines changed

tests/ui/crate-loading/invalid-rlib.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
//@ rustc-env:RUSTC_LOG=error
55
//@ edition:2018
66
#![no_std]
7-
use ::foo; //~ ERROR invalid metadata files for crate `foo`
7+
use ::foo;
8+
//~^ ERROR invalid metadata files for crate `foo`
89
//~| NOTE failed to mmap file
9-
//~^^ ERROR invalid metadata files for crate `foo`
10+
//~| ERROR invalid metadata files for crate `foo`
1011
//~| NOTE failed to mmap file
12+
//~| ERROR invalid metadata files for crate `foo`
13+
//~| NOTE failed to mmap file
14+
//~| ERROR invalid metadata files for crate `foo`
15+
//~| NOTE failed to mmap file
16+
//~| NOTE duplicate diagnostic
17+
//~| NOTE duplicate diagnostic
1118
//~| NOTE duplicate diagnostic

tests/ui/crate-loading/invalid-rlib.stderr

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ LL | use ::foo;
1515
= note: failed to mmap file 'auxiliary/libfoo.rlib'
1616
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
1717

18-
error: aborting due to 2 previous errors
18+
error[E0786]: found invalid metadata files for crate `foo`
19+
--> $DIR/invalid-rlib.rs:7:7
20+
|
21+
LL | use ::foo;
22+
| ^^^
23+
|
24+
= note: failed to mmap file 'auxiliary/libfoo.rlib'
25+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
26+
27+
error[E0786]: found invalid metadata files for crate `foo`
28+
--> $DIR/invalid-rlib.rs:7:7
29+
|
30+
LL | use ::foo;
31+
| ^^^
32+
|
33+
= note: failed to mmap file 'auxiliary/libfoo.rlib'
34+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
35+
36+
error: aborting due to 4 previous errors
1937

2038
For more information about this error, try `rustc --explain E0786`.

tests/ui/error-codes/E0365.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ mod foo {
44

55
pub use foo as foo2;
66
//~^ ERROR `foo` is only public within the crate, and cannot be re-exported outside [E0365]
7+
//~| ERROR `foo` is only public within the crate, and cannot be re-exported outside [E0365]
78

89
fn main() {}

tests/ui/error-codes/E0365.stderr

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ LL | pub use foo as foo2;
66
|
77
= note: consider declaring type or module `foo` with `pub`
88

9-
error: aborting due to 1 previous error
9+
error[E0365]: `foo` is only public within the crate, and cannot be re-exported outside
10+
--> $DIR/E0365.rs:5:9
11+
|
12+
LL | pub use foo as foo2;
13+
| ^^^^^^^^^^^ re-export of crate public `foo`
14+
|
15+
= note: consider declaring type or module `foo` with `pub`
16+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
17+
18+
error: aborting due to 2 previous errors
1019

1120
For more information about this error, try `rustc --explain E0365`.

tests/ui/hygiene/privacy-early.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ mod foo {
77
macro f() {}
88

99
pub macro m() {
10-
use f as g; //~ ERROR `f` is private, and cannot be re-exported
10+
use f as g;
11+
//~^ ERROR `f` is private, and cannot be re-exported
12+
//~| ERROR `f` is private, and cannot be re-exported
1113
f!();
1214
}
1315
}

tests/ui/hygiene/privacy-early.stderr

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ LL | foo::m!();
1717
| --------- in this macro invocation
1818
= note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
1919

20-
error: aborting due to 1 previous error
20+
error[E0364]: `f` is private, and cannot be re-exported
21+
--> $DIR/privacy-early.rs:10:13
22+
|
23+
LL | use f as g;
24+
| ^^^^^^
25+
...
26+
LL | foo::m!();
27+
| --------- in this macro invocation
28+
|
29+
note: consider marking `f` as `pub` in the imported module
30+
--> $DIR/privacy-early.rs:10:13
31+
|
32+
LL | use f as g;
33+
| ^^^^^^
34+
...
35+
LL | foo::m!();
36+
| --------- in this macro invocation
37+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
38+
= note: this error originates in the macro `foo::m` (in Nightly builds, run with -Z macro-backtrace for more info)
39+
40+
error: aborting due to 2 previous errors
2141

2242
For more information about this error, try `rustc --explain E0364`.

tests/ui/imports/issue-109148.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ macro_rules! m {
1010

1111
m!();
1212

13-
use std::mem; //~ ERROR `std` is ambiguous [E0659]
14-
use ::std::mem as _; //~ ERROR `std` is ambiguous [E0659]
13+
use std::mem;
14+
//~^ ERROR `std` is ambiguous [E0659]
15+
//~| ERROR `std` is ambiguous [E0659]
16+
use ::std::mem as _;
17+
//~^ ERROR `std` is ambiguous [E0659]
18+
//~| ERROR `std` is ambiguous [E0659]
1519

1620
fn main() {}

tests/ui/imports/issue-109148.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ LL | m!();
2929
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
3030

3131
error[E0659]: `std` is ambiguous
32-
--> $DIR/issue-109148.rs:14:7
32+
--> $DIR/issue-109148.rs:16:7
3333
|
3434
LL | use ::std::mem as _;
3535
| ^^^ ambiguous name
@@ -67,7 +67,7 @@ LL | m!();
6767
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
6868

6969
error[E0659]: `std` is ambiguous
70-
--> $DIR/issue-109148.rs:14:7
70+
--> $DIR/issue-109148.rs:16:7
7171
|
7272
LL | use ::std::mem as _;
7373
| ^^^ ambiguous name

tests/ui/imports/issue-56125.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@
55
mod m1 {
66
use issue_56125::last_segment::*;
77
//~^ ERROR `issue_56125` is ambiguous [E0659]
8+
//~| ERROR `issue_56125` is ambiguous [E0659]
89
}
910

1011
mod m2 {
1112
use issue_56125::non_last_segment::non_last_segment::*;
1213
//~^ ERROR `issue_56125` is ambiguous [E0659]
14+
//~| ERROR `issue_56125` is ambiguous [E0659]
1315
}
1416

1517
mod m3 {
1618
mod empty {}
1719
use empty::issue_56125; //~ ERROR unresolved import `empty::issue_56125`
18-
use issue_56125::*; //~ ERROR `issue_56125` is ambiguous [E0659]
20+
use issue_56125::*;
21+
//~^ ERROR `issue_56125` is ambiguous [E0659]
22+
//~| ERROR `issue_56125` is ambiguous [E0659]
1923
}
2024

2125
fn main() {}

tests/ui/imports/issue-56125.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0432]: unresolved import `empty::issue_56125`
2-
--> $DIR/issue-56125.rs:17:9
2+
--> $DIR/issue-56125.rs:19:9
33
|
44
LL | use empty::issue_56125;
55
| ^^^^^^^^^^^^^^^^^^ no `issue_56125` in `m3::empty`
@@ -38,7 +38,7 @@ LL | use issue_56125::last_segment::*;
3838
= help: or use `self::issue_56125` to refer to this module unambiguously
3939

4040
error[E0659]: `issue_56125` is ambiguous
41-
--> $DIR/issue-56125.rs:11:9
41+
--> $DIR/issue-56125.rs:12:9
4242
|
4343
LL | use issue_56125::non_last_segment::non_last_segment::*;
4444
| ^^^^^^^^^^^ ambiguous name
@@ -47,7 +47,7 @@ LL | use issue_56125::non_last_segment::non_last_segment::*;
4747
= note: `issue_56125` could refer to a crate passed with `--extern`
4848
= help: use `::issue_56125` to refer to this crate unambiguously
4949
note: `issue_56125` could also refer to the module imported here
50-
--> $DIR/issue-56125.rs:11:9
50+
--> $DIR/issue-56125.rs:12:9
5151
|
5252
LL | use issue_56125::non_last_segment::non_last_segment::*;
5353
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -73,7 +73,7 @@ LL | use issue_56125::last_segment::*;
7373
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
7474

7575
error[E0659]: `issue_56125` is ambiguous
76-
--> $DIR/issue-56125.rs:11:9
76+
--> $DIR/issue-56125.rs:12:9
7777
|
7878
LL | use issue_56125::non_last_segment::non_last_segment::*;
7979
| ^^^^^^^^^^^ ambiguous name
@@ -82,7 +82,7 @@ LL | use issue_56125::non_last_segment::non_last_segment::*;
8282
= note: `issue_56125` could refer to a crate passed with `--extern`
8383
= help: use `::issue_56125` to refer to this crate unambiguously
8484
note: `issue_56125` could also refer to the module imported here
85-
--> $DIR/issue-56125.rs:11:9
85+
--> $DIR/issue-56125.rs:12:9
8686
|
8787
LL | use issue_56125::non_last_segment::non_last_segment::*;
8888
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -91,7 +91,7 @@ LL | use issue_56125::non_last_segment::non_last_segment::*;
9191
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
9292

9393
error[E0659]: `issue_56125` is ambiguous
94-
--> $DIR/issue-56125.rs:18:9
94+
--> $DIR/issue-56125.rs:20:9
9595
|
9696
LL | use issue_56125::*;
9797
| ^^^^^^^^^^^ ambiguous name
@@ -100,15 +100,15 @@ LL | use issue_56125::*;
100100
= note: `issue_56125` could refer to a crate passed with `--extern`
101101
= help: use `::issue_56125` to refer to this crate unambiguously
102102
note: `issue_56125` could also refer to the module imported here
103-
--> $DIR/issue-56125.rs:18:9
103+
--> $DIR/issue-56125.rs:20:9
104104
|
105105
LL | use issue_56125::*;
106106
| ^^^^^^^^^^^^^^
107107
= help: consider adding an explicit import of `issue_56125` to disambiguate
108108
= help: or use `self::issue_56125` to refer to this module unambiguously
109109

110110
error[E0659]: `issue_56125` is ambiguous
111-
--> $DIR/issue-56125.rs:18:9
111+
--> $DIR/issue-56125.rs:20:9
112112
|
113113
LL | use issue_56125::*;
114114
| ^^^^^^^^^^^ ambiguous name
@@ -117,7 +117,7 @@ LL | use issue_56125::*;
117117
= note: `issue_56125` could refer to a crate passed with `--extern`
118118
= help: use `::issue_56125` to refer to this crate unambiguously
119119
note: `issue_56125` could also refer to the module imported here
120-
--> $DIR/issue-56125.rs:18:9
120+
--> $DIR/issue-56125.rs:20:9
121121
|
122122
LL | use issue_56125::*;
123123
| ^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)