bless the tests
This commit is contained in:
parent
1eabe65151
commit
1ef1ec13d8
30 changed files with 126 additions and 89 deletions
|
|
@ -3400,6 +3400,7 @@ declare_lint! {
|
|||
"detects closures affected by Rust 2021 changes",
|
||||
@future_incompatible = FutureIncompatibleInfo {
|
||||
reason: fcw!(EditionSemanticsChange 2021 "disjoint-capture-in-closures"),
|
||||
explain_reason: false,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ pub enum FutureIncompatibilityReason {
|
|||
|
||||
/// Using the declare_lint macro a reason always needs to be specified.
|
||||
/// So, this case can't actually be reached but a variant needs to exist for it.
|
||||
/// Any code panics on seeing this varaint. Do not use.
|
||||
/// Any code panics on seeing this variant. Do not use.
|
||||
Unreachable,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn foo(i32);
|
|||
| ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/anon-params-deprecated.rs:1:9
|
||||
|
|
||||
|
|
@ -19,7 +19,7 @@ LL | fn bar_with_default_impl(String, String) {}
|
|||
| ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: String`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
|
||||
warning: anonymous parameters are deprecated and will be removed in the next edition
|
||||
--> $DIR/anon-params-deprecated.rs:13:38
|
||||
|
|
@ -28,7 +28,7 @@ LL | fn bar_with_default_impl(String, String) {}
|
|||
| ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: String`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
|
||||
warning: 3 warnings emitted
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | pub mod await {
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/2015-edition-error-various-positions.rs:3:9
|
||||
|
|
||||
|
|
@ -20,7 +20,7 @@ LL | pub struct await;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:12:16
|
||||
|
|
@ -29,7 +29,7 @@ LL | use outer_mod::await::await;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:12:23
|
||||
|
|
@ -38,7 +38,7 @@ LL | use outer_mod::await::await;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:17:14
|
||||
|
|
@ -47,7 +47,7 @@ LL | struct Foo { await: () }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:21:15
|
||||
|
|
@ -56,7 +56,7 @@ LL | impl Foo { fn await() {} }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:25:14
|
||||
|
|
@ -65,7 +65,7 @@ LL | macro_rules! await {
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:32:5
|
||||
|
|
@ -74,7 +74,7 @@ LL | await!();
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:35:11
|
||||
|
|
@ -83,7 +83,7 @@ LL | match await { await => {} }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-error-various-positions.rs:35:19
|
||||
|
|
@ -92,7 +92,7 @@ LL | match await { await => {} }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: aborting due to 10 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | pub mod await {
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/2015-edition-warning.rs:5:9
|
||||
|
|
||||
|
|
@ -20,7 +20,7 @@ LL | pub struct await;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-warning.rs:16:16
|
||||
|
|
@ -29,7 +29,7 @@ LL | use outer_mod::await::await;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-warning.rs:16:23
|
||||
|
|
@ -38,7 +38,7 @@ LL | use outer_mod::await::await;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-warning.rs:23:11
|
||||
|
|
@ -47,7 +47,7 @@ LL | match await { await => {} }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `await` is a keyword in the 2018 edition
|
||||
--> $DIR/2015-edition-warning.rs:23:19
|
||||
|
|
@ -56,7 +56,7 @@ LL | match await { await => {} }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: aborting due to 6 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ LL | extern "C" fn read_dword(Self::Assoc<'_>) -> u16;
|
|||
| ^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::Assoc<'_>`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
error[E0185]: method `read_dword` has a `&self` declaration in the impl, but not in the trait
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | extern "C" fn read_dword(Self::Assoc<'_>) -> u16;
|
|||
| ^^^^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Self::Assoc<'_>`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
error[E0185]: method `read_dword` has a `&self` declaration in the impl, but not in the trait
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!({ "foo" });
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | pub mod dyn {
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:11:9
|
||||
|
|
||||
|
|
@ -20,7 +20,7 @@ LL | pub struct dyn;
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22:16
|
||||
|
|
@ -29,7 +29,7 @@ LL | use outer_mod::dyn::dyn;
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:22:21
|
||||
|
|
@ -38,7 +38,7 @@ LL | use outer_mod::dyn::dyn;
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29:11
|
||||
|
|
@ -47,7 +47,7 @@ LL | match dyn { dyn => {} }
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:29:17
|
||||
|
|
@ -56,7 +56,7 @@ LL | match dyn { dyn => {} }
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:34:17
|
||||
|
|
@ -65,7 +65,7 @@ LL | macro_defn::dyn();
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:44:18
|
||||
|
|
@ -74,7 +74,7 @@ LL | macro_rules! dyn {
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:12
|
||||
|
|
@ -83,7 +83,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:34
|
||||
|
|
@ -92,7 +92,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:52:39
|
||||
|
|
@ -101,7 +101,7 @@ LL | pub fn dyn() -> ::outer_mod::dyn::dyn {
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59:22
|
||||
|
|
@ -110,7 +110,7 @@ LL | ::outer_mod::dyn::dyn
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:59:27
|
||||
|
|
@ -119,7 +119,7 @@ LL | ::outer_mod::dyn::dyn
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `dyn` is a keyword in the 2018 edition
|
||||
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:68:23
|
||||
|
|
@ -128,7 +128,7 @@ LL | pub fn boxed() -> dyn!(
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: aborting due to 14 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | let _ = y.is_null();
|
|||
| ^^^^^^^
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/tyvar-behind-raw-pointer.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/edition-raw-pointer-method-2015.rs:5:8
|
||||
|
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ LL | | )) {}
|
|||
| |_____^
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
help: try naming the parameter or explicitly ignoring it
|
||||
|
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ LL | fn fold<T>(&self, _: T, &self._) {}
|
|||
| ^ help: try naming the parameter or explicitly ignoring it: `_: _`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
error[E0121]: the placeholder `_` is not allowed within types on item signatures for methods
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | if data.is_null() {}
|
|||
| ^^^^^^^
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/tyvar-behind-raw-pointer.html>
|
||||
= note: `#[warn(tyvar_behind_raw_pointer)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ LL | fn call(export_name);
|
|||
| ^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: export_name`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
error[E0718]: `fn` lang item must be applied to a trait with 1 generic argument
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn f(u8) {}
|
|||
| ^^ help: try naming the parameter or explicitly ignoring it: `_: u8`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/trait-fn-parameters.html>
|
||||
= note: `#[warn(anonymous_parameters)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
error: ambiguous associated item
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | pub fn try() {}
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#try`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
= note: `-W keyword-idents-2018` implied by `-W rust-2018-compatibility`
|
||||
= help: to override `-W rust-2018-compatibility` add `#[allow(keyword_idents_2018)]`
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | ($e:expr) => {
|
|||
| ^^^^
|
||||
|
|
||||
= warning: this changes meaning in Rust 2024
|
||||
= note: for more information, see Migration Guide <https://doc.rust-lang.org/edition-guide/rust-2024/macro-fragment-specifiers.html>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/macro-fragment-specifiers.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/expr_2021_cargo_fix_edition.rs:4:9
|
||||
|
|
||||
|
|
@ -23,7 +23,7 @@ LL | ($($i:expr)*) => { };
|
|||
| ^^^^
|
||||
|
|
||||
= warning: this changes meaning in Rust 2024
|
||||
= note: for more information, see Migration Guide <https://doc.rust-lang.org/edition-guide/rust-2024/macro-fragment-specifiers.html>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/macro-fragment-specifiers.html>
|
||||
help: to keep the existing behavior, use the `expr_2021` fragment specifier
|
||||
|
|
||||
LL | ($($i:expr_2021)*) => { };
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ warning: panic message contains a brace
|
|||
LL | panic!("here's a brace: {");
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string, but will be in Rust 2021
|
||||
= note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
|
||||
help: add a "{}" format string to use the message literally
|
||||
|
|
@ -17,6 +18,7 @@ warning: panic message contains a brace
|
|||
LL | unreachable!("here's a brace: {");
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string, but will be in Rust 2021
|
||||
help: add a "{}" format string to use the message literally
|
||||
|
|
||||
|
|
@ -29,6 +31,7 @@ warning: panic message contains a brace
|
|||
LL | std::panic!("another one: }");
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string, but will be in Rust 2021
|
||||
help: add a "{}" format string to use the message literally
|
||||
|
|
||||
|
|
@ -41,6 +44,7 @@ warning: panic message contains an unused formatting placeholder
|
|||
LL | core::panic!("Hello {}");
|
||||
| ^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string when given without arguments, but will be in Rust 2021
|
||||
help: add the missing argument
|
||||
|
|
||||
|
|
@ -57,6 +61,7 @@ warning: panic message contains unused formatting placeholders
|
|||
LL | assert!(false, "{:03x} {test} bla");
|
||||
| ^^^^^^ ^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string when given without arguments, but will be in Rust 2021
|
||||
help: add the missing arguments
|
||||
|
|
||||
|
|
@ -73,6 +78,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, S);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -86,6 +92,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, 123);
|
||||
| ^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -99,6 +106,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, Some(123));
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{:?}" format string to use the `Debug` implementation of `Option<i32>`
|
||||
|
|
@ -112,6 +120,7 @@ warning: panic message contains braces
|
|||
LL | debug_assert!(false, "{{}} bla");
|
||||
| ^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string, but will be in Rust 2021
|
||||
help: add a "{}" format string to use the message literally
|
||||
|
|
||||
|
|
@ -124,6 +133,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(C);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -137,6 +147,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(S);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -150,6 +161,7 @@ warning: panic message is not a string literal
|
|||
LL | unreachable!(S);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -163,6 +175,7 @@ warning: panic message is not a string literal
|
|||
LL | unreachable!(S);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -176,6 +189,7 @@ warning: panic message is not a string literal
|
|||
LL | std::panic!(123);
|
||||
| ^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `std::panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -194,6 +208,7 @@ warning: panic message is not a string literal
|
|||
LL | core::panic!(&*"abc");
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `core::panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -207,6 +222,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(Some(123));
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{:?}" format string to use the `Debug` implementation of `Option<i32>`
|
||||
|
|
@ -225,6 +241,7 @@ warning: panic message contains an unused formatting placeholder
|
|||
LL | panic!(concat!("{", "}"));
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string when given without arguments, but will be in Rust 2021
|
||||
help: add the missing argument
|
||||
|
|
||||
|
|
@ -241,6 +258,7 @@ warning: panic message contains braces
|
|||
LL | panic!(concat!("{", "{"));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string, but will be in Rust 2021
|
||||
help: add a "{}" format string to use the message literally
|
||||
|
|
||||
|
|
@ -253,6 +271,7 @@ warning: panic message contains an unused formatting placeholder
|
|||
LL | fancy_panic::fancy_panic!("test {} 123");
|
||||
| ^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this message is not used as a format string when given without arguments, but will be in Rust 2021
|
||||
|
||||
warning: panic message is not a string literal
|
||||
|
|
@ -261,6 +280,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(a!());
|
||||
| ^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -279,6 +299,7 @@ warning: panic message is not a string literal
|
|||
LL | unreachable!(a!());
|
||||
| ^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -292,6 +313,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(format!("{}", 1));
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here
|
||||
|
|
@ -307,6 +329,7 @@ warning: panic message is not a string literal
|
|||
LL | unreachable!(format!("{}", 1));
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `unreachable!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: the `unreachable!()` macro supports formatting, so there's no need for the `format!()` macro here
|
||||
|
|
@ -322,6 +345,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, format!("{}", 1));
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here
|
||||
|
|
@ -337,6 +361,7 @@ warning: panic message is not a string literal
|
|||
LL | debug_assert!(false, format!("{}", 1));
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `debug_assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: the `debug_assert!()` macro supports formatting, so there's no need for the `format!()` macro here
|
||||
|
|
@ -352,6 +377,7 @@ warning: panic message is not a string literal
|
|||
LL | panic![123];
|
||||
| ^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -370,6 +396,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!{123};
|
||||
| ^^^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -390,6 +417,7 @@ LL | panic!(v);
|
|||
| |
|
||||
| help: use std::panic::panic_any instead: `std::panic::panic_any`
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
|
||||
|
|
@ -399,6 +427,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
|
||||
|
|
@ -408,6 +437,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{:?}" format string to use the `Debug` implementation of `T`
|
||||
|
|
@ -426,6 +456,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{:?}" format string to use the `Debug` implementation of `T`
|
||||
|
|
@ -439,6 +470,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -457,6 +489,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -470,6 +503,7 @@ warning: panic message is not a string literal
|
|||
LL | panic!(v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
@ -488,6 +522,7 @@ warning: panic message is not a string literal
|
|||
LL | assert!(false, v);
|
||||
| ^
|
||||
|
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
= note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
|
||||
help: add a "{}" format string to `Display` the message
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | let async = 3;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/async-ident-allowed.rs:3:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | fn async() {}
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/async-ident.rs:2:9
|
||||
|
|
||||
|
|
@ -20,7 +20,7 @@ LL | ($async:expr, async) => {};
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:17:6
|
||||
|
|
@ -29,7 +29,7 @@ LL | foo!(async);
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:26:11
|
||||
|
|
@ -38,7 +38,7 @@ LL | trait async {}
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:30:10
|
||||
|
|
@ -47,7 +47,7 @@ LL | impl async for MyStruct {}
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:36:12
|
||||
|
|
@ -56,7 +56,7 @@ LL | static async: u32 = 0;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:42:11
|
||||
|
|
@ -65,7 +65,7 @@ LL | const async: u32 = 0;
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:48:15
|
||||
|
|
@ -74,7 +74,7 @@ LL | impl Foo { fn async() {} }
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:53:12
|
||||
|
|
@ -83,7 +83,7 @@ LL | struct async {}
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:56:9
|
||||
|
|
@ -92,7 +92,7 @@ LL | let async: async = async {};
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:56:16
|
||||
|
|
@ -101,7 +101,7 @@ LL | let async: async = async {};
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:56:24
|
||||
|
|
@ -110,7 +110,7 @@ LL | let async: async = async {};
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:67:19
|
||||
|
|
@ -119,7 +119,7 @@ LL | () => (pub fn async() {})
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: `async` is a keyword in the 2018 edition
|
||||
--> $DIR/async-ident.rs:74:6
|
||||
|
|
@ -128,7 +128,7 @@ LL | (async) => (1)
|
|||
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
error: aborting due to 14 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | let dyn = ();
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/dyn-keyword.rs:5:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/edition-lint-fully-qualified-paths.rs:4:9
|
||||
|
|
||||
|
|
@ -19,7 +19,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= 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
|
||||
|
|
@ -29,7 +29,7 @@ LL | let _: <::foo::Baz as foo::Foo>::Bar = ();
|
|||
| ^^^^^^^^^^ help: use `crate`: `crate::foo::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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/edition-lint-nested-empty-paths.rs:4:9
|
||||
|
|
||||
|
|
@ -19,7 +19,7 @@ LL | use foo::{bar::{XX, baz::{}}};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{XX, 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
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:21:5
|
||||
|
|
@ -28,7 +28,7 @@ LL | use foo::{bar::{XX, baz::{}}};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{XX, 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= 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
|
||||
|
|
@ -38,7 +38,7 @@ LL | use foo::{bar::{baz::{}, baz1::{}}};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{baz::{}, baz1::{}}}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
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:27:5
|
||||
|
|
@ -47,7 +47,7 @@ LL | use foo::{bar::{baz::{}, baz1::{}}};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{bar::{baz::{}, baz1::{}}}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/edition-lint-nested-paths.rs:4:9
|
||||
|
|
||||
|
|
@ -19,7 +19,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= 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
|
||||
|
|
@ -29,7 +29,7 @@ LL | use foo::{self as x, c};
|
|||
| ^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{self as x, c}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||||
--> $DIR/edition-lint-nested-paths.rs:23:13
|
||||
|
|
@ -38,7 +38,7 @@ LL | use foo::{self as x, c};
|
|||
| ^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::{self as x, c}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/edition-lint-paths.rs:5:9
|
||||
|
|
||||
|
|
@ -19,7 +19,7 @@ LL | use bar;
|
|||
| ^^^ help: use `crate`: `crate::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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||||
--> $DIR/edition-lint-paths.rs:25:9
|
||||
|
|
@ -28,7 +28,7 @@ LL | use {main, Bar as SomethingElse};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::{main, Bar as SomethingElse}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||||
--> $DIR/edition-lint-paths.rs:25:9
|
||||
|
|
@ -37,7 +37,7 @@ LL | use {main, Bar as SomethingElse};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::{main, Bar as SomethingElse}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= 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
|
||||
|
|
@ -47,7 +47,7 @@ LL | use {main, Bar as SomethingElse};
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `crate`: `crate::{main, Bar as SomethingElse}`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
= 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
|
||||
|
|
@ -57,7 +57,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||||
--> $DIR/edition-lint-paths.rs:52:9
|
||||
|
|
@ -66,7 +66,7 @@ LL | use *;
|
|||
| ^ help: use `crate`: `crate::*`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||||
--> $DIR/edition-lint-paths.rs:57:6
|
||||
|
|
@ -75,7 +75,7 @@ LL | impl ::foo::SomeTrait for u32 {}
|
|||
| ^^^^^^^^^^^^^^^^ help: use `crate`: `crate::foo::SomeTrait`
|
||||
|
|
||||
= 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: absolute paths must start with `self`, `super`, `crate`, or an external crate name in the 2018 edition
|
||||
--> $DIR/edition-lint-paths.rs:62:13
|
||||
|
|
@ -84,7 +84,7 @@ LL | let x = ::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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
|
||||
error: aborting due to 9 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/extern-crate-rename.rs:8:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ 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: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/path-changes.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/extern-crate-submod.rs:9:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | try();
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#try`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/try-ident.rs:5:9
|
||||
|
|
||||
|
|
@ -20,7 +20,7 @@ LL | fn try() {
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#try`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
|
||||
warning: 2 warnings emitted
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ LL | try!(x);
|
|||
| ^^^ help: you can use a raw identifier to stay compatible: `r#try`
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/new-keywords.html>
|
||||
note: the lint level is defined here
|
||||
--> $DIR/try-macro.rs:7:9
|
||||
|
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ LL | std::ptr::from_ref(num).cast_mut().as_deref();
|
|||
| ^^^^^^^^
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/tyvar-behind-raw-pointer.html>
|
||||
= note: `#[warn(tyvar_behind_raw_pointer)]` (part of `#[warn(rust_2018_compatibility)]`) on by default
|
||||
|
||||
warning: type annotations needed
|
||||
|
|
@ -21,7 +21,7 @@ LL | std::ptr::from_ref(num).cast_mut().as_deref();
|
|||
| ^^^^^^^^
|
||||
|
|
||||
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018!
|
||||
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
|
||||
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2018/tyvar-behind-raw-pointer.html>
|
||||
|
||||
error[E0599]: no method named `as_deref` found for raw pointer `*mut _` in the current scope
|
||||
--> $DIR/ice-unwrap-probe-many-result-125876.rs:5:40
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue