188 lines
6.4 KiB
Text
188 lines
6.4 KiB
Text
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:25:9
|
|
|
|
|
LL | let Foo(mut x) = &Foo(0);
|
|
| -^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
note: the lint level is defined here
|
|
--> $DIR/migration_lint.rs:7:9
|
|
|
|
|
LL | #![deny(rust_2024_incompatible_pat)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:30:9
|
|
|
|
|
LL | let Foo(mut x) = &mut Foo(0);
|
|
| -^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&mut`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:35:9
|
|
|
|
|
LL | let Foo(ref x) = &Foo(0);
|
|
| -^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:40:9
|
|
|
|
|
LL | let Foo(ref x) = &mut Foo(0);
|
|
| -^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&mut`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:57:9
|
|
|
|
|
LL | let Foo(&x) = &Foo(&0);
|
|
| -^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:62:9
|
|
|
|
|
LL | let Foo(&mut x) = &Foo(&mut 0);
|
|
| -^^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:67:9
|
|
|
|
|
LL | let Foo(&x) = &mut Foo(&0);
|
|
| -^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&mut`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:72:9
|
|
|
|
|
LL | let Foo(&mut x) = &mut Foo(&mut 0);
|
|
| -^^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&mut`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:81:12
|
|
|
|
|
LL | if let Some(&x) = &&&&&Some(&0u8) {
|
|
| -^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&&&&&`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:87:12
|
|
|
|
|
LL | if let Some(&mut x) = &&&&&Some(&mut 0u8) {
|
|
| -^^^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&&&&&`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:93:12
|
|
|
|
|
LL | if let Some(&x) = &&&&&mut Some(&0u8) {
|
|
| -^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&&&&&mut`
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:99:12
|
|
|
|
|
LL | if let Some(&mut Some(Some(x))) = &mut Some(&mut Some(&mut Some(0u8))) {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
help: desugar the match ergonomics
|
|
|
|
|
LL | if let &mut Some(&mut Some(&mut Some(ref mut x))) = &mut Some(&mut Some(&mut Some(0u8))) {
|
|
| ++++ ++++ +++++++
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:111:9
|
|
|
|
|
LL | let Struct { a, mut b, c } = &Struct { a: 0, b: 0, c: 0 };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
help: desugar the match ergonomics
|
|
|
|
|
LL | let &Struct { ref a, mut b, ref c } = &Struct { a: 0, b: 0, c: 0 };
|
|
| + +++ +++
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:117:9
|
|
|
|
|
LL | let Struct { a: &a, b, ref c } = &Struct { a: &0, b: &0, c: &0 };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
help: desugar the match ergonomics
|
|
|
|
|
LL | let &Struct { a: &a, ref b, ref c } = &Struct { a: &0, b: &0, c: &0 };
|
|
| + +++
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:124:12
|
|
|
|
|
LL | if let Struct { a: &Some(a), b: Some(&b), c: Some(c) } =
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
= note: for more information, see 123076
|
|
help: desugar the match ergonomics
|
|
|
|
|
LL | if let &Struct { a: &Some(a), b: &Some(&b), c: &Some(ref c) } =
|
|
| + + + +++
|
|
|
|
error: patterns are not allowed to reset the default binding mode in edition 2024
|
|
--> $DIR/migration_lint.rs:137:9
|
|
|
|
|
LL | (Some(mut x), migration_lint_macros::mixed_edition_pat!(y)) => {
|
|
| -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| help: desugar the match ergonomics: `&`
|
|
|
|
error: aborting due to 16 previous errors
|
|
|