Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1d66e66
add `body` to `ClosureDef`
b-naber May 20, 2025
8604e58
add doc comment and a test with a generic closure
b-naber Jun 2, 2025
46326e1
Use non-2015 edition paths in tests that do not test for their resolu…
Veykril Jun 5, 2025
1d7c1b1
Add more missing 2015 edition directives
Veykril Jun 5, 2025
2549962
Add missing `dyn` keywords to tests that do not test for them
Veykril Jun 5, 2025
4882ea4
rustc_resolve: Improve `resolve_const_param_in_non_trivial_anon_const…
Enselic Jun 7, 2025
e9eae28
transmutability: shift abstraction boundary
jswrenn Jun 4, 2025
2c82574
use correct edition when warning for unsafe attributes
folkertdev Jun 9, 2025
f461997
Rename `build` to `host_target`
Kobzol Jun 10, 2025
20e8325
Improve documentation of the `Rustc` step and rename `compiler` to `b…
Kobzol Jun 10, 2025
208f2e4
Remove useless and wrong std crates special casing when un-remap sysroot
Urgau Jun 10, 2025
b88c006
compiler: Change c_int_width to be an integer type
workingjubilee Jun 11, 2025
87feee9
compiler: Update all targets to the new c_int_width type
workingjubilee Jun 11, 2025
0994063
cleaned up some tests
Kivooeo Jun 8, 2025
c6c55cc
cleaned up some tests
Kivooeo Jun 8, 2025
9f6e81c
Rollup merge of #141307 - b-naber:closure-body, r=celinval
matthiaskrgr Jun 12, 2025
bdf7b74
Rollup merge of #142040 - jswrenn:transmute-ty-region-generic, r=comp…
matthiaskrgr Jun 12, 2025
b3ddf3c
Rollup merge of #142066 - ferrocene:lw/edition-2015-tests, r=compiler…
matthiaskrgr Jun 12, 2025
2d9513b
Rollup merge of #142157 - Enselic:trivial-anon-const-use-cases, r=com…
matthiaskrgr Jun 12, 2025
c557695
Rollup merge of #142217 - Kivooeo:tf10, r=jieyouxu
matthiaskrgr Jun 12, 2025
e2e201f
Rollup merge of #142219 - Kivooeo:tf11, r=wesleywiser
matthiaskrgr Jun 12, 2025
75c186b
Rollup merge of #142261 - folkertdev:unstable-attr-correct-edition, r…
matthiaskrgr Jun 12, 2025
bb9dda1
Rollup merge of #142303 - Kobzol:bootstrap-cleanup-1, r=jieyouxu
matthiaskrgr Jun 12, 2025
78d8395
Rollup merge of #142318 - Urgau:cleanup-rust-src-remap, r=jieyouxu
matthiaskrgr Jun 12, 2025
2407761
Rollup merge of #142352 - workingjubilee:c-int-width-is-an-integer, r…
matthiaskrgr Jun 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add more missing 2015 edition directives
  • Loading branch information
Veykril committed Jun 5, 2025
commit 1d7c1b1b4f038219e434db5d38d08cc31b3dd186
1 change: 1 addition & 0 deletions tests/ui/resolve/extern-prelude-fail.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ compile-flags:--extern extern_prelude
//@ aux-build:extern-prelude.rs

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/resolve/extern-prelude-fail.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0432]: unresolved import `extern_prelude`
--> $DIR/extern-prelude-fail.rs:7:9
--> $DIR/extern-prelude-fail.rs:8:9
|
LL | use extern_prelude::S;
| ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `extern_prelude`
Expand All @@ -10,7 +10,7 @@ LL + extern crate extern_prelude;
|

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `extern_prelude`
--> $DIR/extern-prelude-fail.rs:8:15
--> $DIR/extern-prelude-fail.rs:9:15
|
LL | let s = ::extern_prelude::S;
| ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `extern_prelude`
Expand Down
1 change: 1 addition & 0 deletions tests/ui/resolve/resolve-bad-visibility.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
enum E {}
trait Tr {}

Expand Down
10 changes: 5 additions & 5 deletions tests/ui/resolve/resolve-bad-visibility.stderr
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
error[E0577]: expected module, found enum `E`
--> $DIR/resolve-bad-visibility.rs:4:8
--> $DIR/resolve-bad-visibility.rs:5:8
|
LL | pub(in E) struct S;
| ^ not a module

error[E0577]: expected module, found trait `Tr`
--> $DIR/resolve-bad-visibility.rs:5:8
--> $DIR/resolve-bad-visibility.rs:6:8
|
LL | pub(in Tr) struct Z;
| ^^ not a module

error[E0742]: visibilities can only be restricted to ancestor modules
--> $DIR/resolve-bad-visibility.rs:6:8
--> $DIR/resolve-bad-visibility.rs:7:8
|
LL | pub(in std::vec) struct F;
| ^^^^^^^^

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `nonexistent`
--> $DIR/resolve-bad-visibility.rs:7:8
--> $DIR/resolve-bad-visibility.rs:8:8
|
LL | pub(in nonexistent) struct G;
| ^^^^^^^^^^^ use of unresolved module or unlinked crate `nonexistent`
Expand All @@ -28,7 +28,7 @@ LL + extern crate nonexistent;
|

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `too_soon`
--> $DIR/resolve-bad-visibility.rs:8:8
--> $DIR/resolve-bad-visibility.rs:9:8
|
LL | pub(in too_soon) struct H;
| ^^^^^^^^ use of unresolved module or unlinked crate `too_soon`
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/resolve/suggest-builder-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Bar {
}

mod SomeMod {
use Bar;
use crate::Bar;

impl Bar {
// Public method. Should be suggested
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/resolve/unresolved-segments-visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate alloc as b;

mod foo {
mod bar {
pub(in b::string::String::newy) extern crate alloc as e;
pub(in crate::b::string::String::newy) extern crate alloc as e;
//~^ ERROR failed to resolve: `String` is a struct, not a module [E0433]
}
}
6 changes: 3 additions & 3 deletions tests/ui/resolve/unresolved-segments-visibility.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
error[E0433]: failed to resolve: `String` is a struct, not a module
--> $DIR/unresolved-segments-visibility.rs:8:27
--> $DIR/unresolved-segments-visibility.rs:8:34
|
LL | pub(in b::string::String::newy) extern crate alloc as e;
| ^^^^^^ `String` is a struct, not a module
LL | pub(in crate::b::string::String::newy) extern crate alloc as e;
| ^^^^^^ `String` is a struct, not a module

error: aborting due to 1 previous error

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix

#![deny(absolute_paths_not_starting_with_crate)]
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-fully-qualified-paths.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix

#![deny(absolute_paths_not_starting_with_crate)]
Expand Down
8 changes: 4 additions & 4 deletions tests/ui/rust-2018/edition-lint-fully-qualified-paths.stderr
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-fully-qualified-paths.rs:18:25
--> $DIR/edition-lint-fully-qualified-paths.rs:19:25
|
LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
| ^^^^^^^^^^ help: use `crate`: `crate::foo::Foo`
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
note: the lint level is defined here
--> $DIR/edition-lint-fully-qualified-paths.rs:3:9
--> $DIR/edition-lint-fully-qualified-paths.rs:4:9
|
LL | #![deny(absolute_paths_not_starting_with_crate)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-fully-qualified-paths.rs:18:25
--> $DIR/edition-lint-fully-qualified-paths.rs:19:25
|
LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
| ^^^^^^^^^^ help: use `crate`: `crate::foo::Foo`
Expand All @@ -23,7 +23,7 @@ LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-fully-qualified-paths.rs:24:13
--> $DIR/edition-lint-fully-qualified-paths.rs:25:13
|
LL | let _: <::foo::Baz as foo::Foo>::Bar = ();
| ^^^^^^^^^^ help: use `crate`: `crate::foo::Baz`
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-nested-empty-paths.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix

#![deny(absolute_paths_not_starting_with_crate)]
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-nested-empty-paths.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix

#![deny(absolute_paths_not_starting_with_crate)]
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/rust-2018/edition-lint-nested-empty-paths.stderr
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-empty-paths.rs:16:5
--> $DIR/edition-lint-nested-empty-paths.rs:17:5
|
LL | use foo::{bar::{baz::{}}};
| ^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{baz::{}}}`
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
note: the lint level is defined here
--> $DIR/edition-lint-nested-empty-paths.rs:3:9
--> $DIR/edition-lint-nested-empty-paths.rs:4:9
|
LL | #![deny(absolute_paths_not_starting_with_crate)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-empty-paths.rs:20:5
--> $DIR/edition-lint-nested-empty-paths.rs:21:5
|
LL | use foo::{bar::{XX, baz::{}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{XX, baz::{}}}`
Expand All @@ -22,7 +22,7 @@ LL | use foo::{bar::{XX, baz::{}}};
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-empty-paths.rs:20:5
--> $DIR/edition-lint-nested-empty-paths.rs:21:5
|
LL | use foo::{bar::{XX, baz::{}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{XX, baz::{}}}`
Expand All @@ -32,7 +32,7 @@ LL | use foo::{bar::{XX, baz::{}}};
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-empty-paths.rs:26:5
--> $DIR/edition-lint-nested-empty-paths.rs:27:5
|
LL | use foo::{bar::{baz::{}, baz1::{}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{baz::{}, baz1::{}}}`
Expand All @@ -41,7 +41,7 @@ LL | use foo::{bar::{baz::{}, baz1::{}}};
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-empty-paths.rs:26:5
--> $DIR/edition-lint-nested-empty-paths.rs:27:5
|
LL | use foo::{bar::{baz::{}, baz1::{}}};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{baz::{}, baz1::{}}}`
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-nested-paths.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix

#![deny(absolute_paths_not_starting_with_crate)]
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-nested-paths.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix

#![deny(absolute_paths_not_starting_with_crate)]
Expand Down
10 changes: 5 additions & 5 deletions tests/ui/rust-2018/edition-lint-nested-paths.stderr
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-paths.rs:5:5
--> $DIR/edition-lint-nested-paths.rs:6:5
|
LL | use foo::{a, b};
| ^^^^^^^^^^^ help: use `crate`: `crate::foo::{a, b}`
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
note: the lint level is defined here
--> $DIR/edition-lint-nested-paths.rs:3:9
--> $DIR/edition-lint-nested-paths.rs:4:9
|
LL | #![deny(absolute_paths_not_starting_with_crate)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-paths.rs:5:5
--> $DIR/edition-lint-nested-paths.rs:6:5
|
LL | use foo::{a, b};
| ^^^^^^^^^^^ help: use `crate`: `crate::foo::{a, b}`
Expand All @@ -23,7 +23,7 @@ LL | use foo::{a, b};
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-paths.rs:22:13
--> $DIR/edition-lint-nested-paths.rs:23:13
|
LL | use foo::{self as x, c};
| ^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{self as x, c}`
Expand All @@ -32,7 +32,7 @@ LL | use foo::{self as x, c};
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-nested-paths.rs:22:13
--> $DIR/edition-lint-nested-paths.rs:23:13
|
LL | use foo::{self as x, c};
| ^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{self as x, c}`
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-paths.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix

Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/edition-lint-paths.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix

Expand Down
20 changes: 10 additions & 10 deletions tests/ui/rust-2018/edition-lint-paths.stderr
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:11:9
--> $DIR/edition-lint-paths.rs:12:9
|
LL | use bar::Bar;
| ^^^^^^^^ help: use `crate`: `crate::bar::Bar`
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
note: the lint level is defined here
--> $DIR/edition-lint-paths.rs:4:9
--> $DIR/edition-lint-paths.rs:5:9
|
LL | #![deny(absolute_paths_not_starting_with_crate)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:18:9
--> $DIR/edition-lint-paths.rs:19:9
|
LL | use bar;
| ^^^ help: use `crate`: `crate::bar`
Expand All @@ -22,7 +22,7 @@ LL | use bar;
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:24:9
--> $DIR/edition-lint-paths.rs:25:9
|
LL | use {main, Bar as SomethingElse};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::{main, Bar as SomethingElse}`
Expand All @@ -31,7 +31,7 @@ LL | use {main, Bar as SomethingElse};
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:24:9
--> $DIR/edition-lint-paths.rs:25:9
|
LL | use {main, Bar as SomethingElse};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::{main, Bar as SomethingElse}`
Expand All @@ -41,7 +41,7 @@ LL | use {main, Bar as SomethingElse};
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:24:9
--> $DIR/edition-lint-paths.rs:25:9
|
LL | use {main, Bar as SomethingElse};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::{main, Bar as SomethingElse}`
Expand All @@ -51,7 +51,7 @@ LL | use {main, Bar as SomethingElse};
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:39:5
--> $DIR/edition-lint-paths.rs:40:5
|
LL | use bar::Bar;
| ^^^^^^^^ help: use `crate`: `crate::bar::Bar`
Expand All @@ -60,7 +60,7 @@ LL | use bar::Bar;
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:51:9
--> $DIR/edition-lint-paths.rs:52:9
|
LL | use *;
| ^ help: use `crate`: `crate::*`
Expand All @@ -69,7 +69,7 @@ LL | use *;
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:56:6
--> $DIR/edition-lint-paths.rs:57:6
|
LL | impl ::foo::SomeTrait for u32 {}
| ^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::SomeTrait`
Expand All @@ -78,7 +78,7 @@ LL | impl ::foo::SomeTrait for u32 {}
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>

error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/edition-lint-paths.rs:61:13
--> $DIR/edition-lint-paths.rs:62:13
|
LL | let x = ::bar::Bar;
| ^^^^^^^^^^ help: use `crate`: `crate::bar::Bar`
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/extern-crate-rename.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix

Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/extern-crate-rename.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/rust-2018/extern-crate-rename.stderr
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/extern-crate-rename.rs:11:5
--> $DIR/extern-crate-rename.rs:12:5
|
LL | use my_crate::foo;
| ^^^^^^^^^^^^^ help: use `crate`: `crate::my_crate::foo`
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
note: the lint level is defined here
--> $DIR/extern-crate-rename.rs:7:9
--> $DIR/extern-crate-rename.rs:8:9
|
LL | #![deny(absolute_paths_not_starting_with_crate)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/extern-crate-submod.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix

Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/extern-crate-submod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ aux-build:edition-lint-paths.rs
//@ run-rustfix

Expand Down
4 changes: 2 additions & 2 deletions tests/ui/rust-2018/extern-crate-submod.stderr
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
--> $DIR/extern-crate-submod.rs:18:5
--> $DIR/extern-crate-submod.rs:19:5
|
LL | use m::edition_lint_paths::foo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::m::edition_lint_paths::foo`
|
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
= note: for more information, see issue #53130 <https://github.com/rust-lang/rust/issues/53130>
note: the lint level is defined here
--> $DIR/extern-crate-submod.rs:8:9
--> $DIR/extern-crate-submod.rs:9:9
|
LL | #![deny(absolute_paths_not_starting_with_crate)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
1 change: 1 addition & 0 deletions tests/ui/rust-2018/try-ident.fixed
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ edition: 2015
//@ run-rustfix
//@ check-pass

Expand Down
Loading