|
1 | 1 | warning: trait method `try_into` will become ambiguous in Rust 2021
|
2 |
| - --> $DIR/future-prelude-collision.rs:53:18 |
| 2 | + --> $DIR/future-prelude-collision.rs:54:18 |
3 | 3 | |
|
4 | 4 | LL | let _: u32 = 3u8.try_into().unwrap();
|
5 | 5 | | ^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(3u8)`
|
6 | 6 | |
|
7 |
| - = note: `#[warn(future_prelude_collision)]` on by default |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/future-prelude-collision.rs:4:9 |
| 9 | + | |
| 10 | +LL | #![warn(future_prelude_collision)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 13 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
8 | 14 |
|
9 | 15 | warning: trait-associated function `try_from` will become ambiguous in Rust 2021
|
10 |
| - --> $DIR/future-prelude-collision.rs:57:13 |
| 16 | + --> $DIR/future-prelude-collision.rs:59:13 |
11 | 17 | |
|
12 | 18 | LL | let _ = u32::try_from(3u8).unwrap();
|
13 | 19 | | ^^^^^^^^^^^^^ help: disambiguate the associated function: `<u32 as TryFromU8>::try_from`
|
| 20 | + | |
| 21 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 22 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
14 | 23 |
|
15 | 24 | warning: trait-associated function `from_iter` will become ambiguous in Rust 2021
|
16 |
| - --> $DIR/future-prelude-collision.rs:61:13 |
| 25 | + --> $DIR/future-prelude-collision.rs:64:13 |
17 | 26 | |
|
18 | 27 | LL | let _ = <Vec<u8>>::from_iter(vec![1u8, 2, 3, 4, 5, 6].into_iter());
|
19 | 28 | | ^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Vec<u8> as FromByteIterator>::from_iter`
|
| 29 | + | |
| 30 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 31 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
20 | 32 |
|
21 | 33 | warning: trait-associated function `try_from` will become ambiguous in Rust 2021
|
22 |
| - --> $DIR/future-prelude-collision.rs:68:18 |
| 34 | + --> $DIR/future-prelude-collision.rs:72:18 |
23 | 35 | |
|
24 | 36 | LL | let _: u32 = <_>::try_from(3u8).unwrap();
|
25 | 37 | | ^^^^^^^^^^^^^ help: disambiguate the associated function: `<_ as TryFromU8>::try_from`
|
| 38 | + | |
| 39 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 40 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
26 | 41 |
|
27 | 42 | warning: trait method `try_into` will become ambiguous in Rust 2021
|
28 |
| - --> $DIR/future-prelude-collision.rs:72:18 |
| 43 | + --> $DIR/future-prelude-collision.rs:77:18 |
29 | 44 | |
|
30 | 45 | LL | let _: u32 = (&3u8).try_into().unwrap();
|
31 | 46 | | ^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(*(&3u8))`
|
| 47 | + | |
| 48 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 49 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
32 | 50 |
|
33 | 51 | warning: trait method `try_into` will become ambiguous in Rust 2021
|
34 |
| - --> $DIR/future-prelude-collision.rs:76:18 |
| 52 | + --> $DIR/future-prelude-collision.rs:82:18 |
35 | 53 | |
|
36 | 54 | LL | let _: u32 = 3.0.try_into().unwrap();
|
37 | 55 | | ^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(&3.0)`
|
| 56 | + | |
| 57 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 58 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
38 | 59 |
|
39 | 60 | warning: trait method `try_into` will become ambiguous in Rust 2021
|
40 |
| - --> $DIR/future-prelude-collision.rs:81:18 |
| 61 | + --> $DIR/future-prelude-collision.rs:88:18 |
41 | 62 | |
|
42 | 63 | LL | let _: u32 = mut_ptr.try_into().unwrap();
|
43 | 64 | | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(mut_ptr as *const _)`
|
| 65 | + | |
| 66 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 67 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
44 | 68 |
|
45 | 69 | warning: trait-associated function `try_from` will become ambiguous in Rust 2021
|
46 |
| - --> $DIR/future-prelude-collision.rs:85:13 |
| 70 | + --> $DIR/future-prelude-collision.rs:93:13 |
47 | 71 | |
|
48 | 72 | LL | let _ = U32Alias::try_from(3u8).unwrap();
|
49 | 73 | | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<U32Alias as TryFromU8>::try_from`
|
| 74 | + | |
| 75 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! |
| 76 | + = note: for more information, see issue #85684 <https://github.com/rust-lang/rust/issues/85684> |
50 | 77 |
|
51 | 78 | warning: 8 warnings emitted
|
52 | 79 |
|
0 commit comments