Skip to content

Commit 71b10cd

Browse files
bless tests
1 parent 9aa347e commit 71b10cd

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

tests/ui/feature-gates/feature-gate-import-trait-associated-functions.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ LL | use A::{DEFAULT, new};
1818
= help: add `#![feature(import_trait_associated_functions)]` to the crate attributes to enable
1919
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2020

21-
error[E0658]: `use` associated items of traits is unstable
22-
--> $DIR/feature-gate-import-trait-associated-functions.rs:7:5
23-
|
24-
LL | use Default::default;
25-
| ^^^^^^^^^^^^^^^^
26-
|
27-
= note: see issue #134691 <https://github.com/rust-lang/rust/issues/134691> for more information
28-
= help: add `#![feature(import_trait_associated_functions)]` to the crate attributes to enable
29-
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
30-
3121
error[E0658]: `use` associated items of traits is unstable
3222
--> $DIR/feature-gate-import-trait-associated-functions.rs:27:26
3323
|
@@ -58,6 +48,16 @@ LL | use Glob::*;
5848
= help: add `#![feature(import_trait_associated_functions)]` to the crate attributes to enable
5949
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
6050

51+
error[E0658]: `use` associated items of traits is unstable
52+
--> $DIR/feature-gate-import-trait-associated-functions.rs:7:5
53+
|
54+
LL | use Default::default;
55+
| ^^^^^^^^^^^^^^^^
56+
|
57+
= note: see issue #134691 <https://github.com/rust-lang/rust/issues/134691> for more information
58+
= help: add `#![feature(import_trait_associated_functions)]` to the crate attributes to enable
59+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
60+
6161
error: aborting due to 6 previous errors
6262

6363
For more information about this error, try `rustc --explain E0658`.

tests/ui/imports/reexports.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@ LL | pub use super::foo;
1111
| ^^^^^^^^^^
1212

1313
error[E0603]: module import `foo` is private
14-
--> $DIR/reexports.rs:36:22
14+
--> $DIR/reexports.rs:37:22
1515
|
16-
LL | use crate::b::a::foo::S;
16+
LL | use crate::b::b::foo::S as T;
1717
| ^^^ private module import
1818
|
1919
note: the module import `foo` is defined here...
20-
--> $DIR/reexports.rs:24:17
20+
--> $DIR/reexports.rs:29:17
2121
|
22-
LL | pub use super::foo; // This is OK since the value `foo` is visible enough.
23-
| ^^^^^^^^^^
22+
LL | pub use super::*; // This is also OK since the value `foo` is visible enough.
23+
| ^^^^^^^^
2424
note: ...and refers to the module `foo` which is defined here
2525
--> $DIR/reexports.rs:19:5
2626
|
2727
LL | mod foo {
2828
| ^^^^^^^
2929

3030
error[E0603]: module import `foo` is private
31-
--> $DIR/reexports.rs:37:22
31+
--> $DIR/reexports.rs:36:22
3232
|
33-
LL | use crate::b::b::foo::S as T;
33+
LL | use crate::b::a::foo::S;
3434
| ^^^ private module import
3535
|
3636
note: the module import `foo` is defined here...
37-
--> $DIR/reexports.rs:29:17
37+
--> $DIR/reexports.rs:24:17
3838
|
39-
LL | pub use super::*; // This is also OK since the value `foo` is visible enough.
40-
| ^^^^^^^^
39+
LL | pub use super::foo; // This is OK since the value `foo` is visible enough.
40+
| ^^^^^^^^^^
4141
note: ...and refers to the module `foo` which is defined here
4242
--> $DIR/reexports.rs:19:5
4343
|

tests/ui/shadowed/shadowed-use-visibility.stderr

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
error[E0603]: module import `bar` is private
2-
--> $DIR/shadowed-use-visibility.rs:9:21
1+
error[E0603]: module import `f` is private
2+
--> $DIR/shadowed-use-visibility.rs:15:10
33
|
4-
LL | use crate::foo::bar::f as g;
5-
| ^^^ private module import
4+
LL | use bar::f::f;
5+
| ^ private module import
66
|
7-
note: the module import `bar` is defined here...
8-
--> $DIR/shadowed-use-visibility.rs:4:9
7+
note: the module import `f` is defined here...
8+
--> $DIR/shadowed-use-visibility.rs:11:9
99
|
10-
LL | use crate::foo as bar;
11-
| ^^^^^^^^^^^^^^^^^
10+
LL | use crate::foo as f;
11+
| ^^^^^^^^^^^^^^^
1212
note: ...and refers to the module `foo` which is defined here
1313
--> $DIR/shadowed-use-visibility.rs:1:1
1414
|
1515
LL | mod foo {
1616
| ^^^^^^^
1717

18-
error[E0603]: module import `f` is private
19-
--> $DIR/shadowed-use-visibility.rs:15:10
18+
error[E0603]: module import `bar` is private
19+
--> $DIR/shadowed-use-visibility.rs:9:21
2020
|
21-
LL | use bar::f::f;
22-
| ^ private module import
21+
LL | use crate::foo::bar::f as g;
22+
| ^^^ private module import
2323
|
24-
note: the module import `f` is defined here...
25-
--> $DIR/shadowed-use-visibility.rs:11:9
24+
note: the module import `bar` is defined here...
25+
--> $DIR/shadowed-use-visibility.rs:4:9
2626
|
27-
LL | use crate::foo as f;
28-
| ^^^^^^^^^^^^^^^
27+
LL | use crate::foo as bar;
28+
| ^^^^^^^^^^^^^^^^^
2929
note: ...and refers to the module `foo` which is defined here
3030
--> $DIR/shadowed-use-visibility.rs:1:1
3131
|

0 commit comments

Comments
 (0)