fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB43 linesraw
1warning: trait objects without an explicit `dyn` are deprecated
2  --> $DIR/lint-group-allowed-lint-group.rs:10:25
3   |
4LL | pub fn function(_x: Box<SomeTrait>) {}
5   |                         ^^^^^^^^^
6   |
7   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
8   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9   = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2018-idioms`
10   = help: to override `--force-warn rust-2018-idioms` add `#[allow(bare_trait_objects)]`
11help: use `dyn`
12   |
13LL | pub fn function(_x: Box<dyn SomeTrait>) {}
14   |                         +++
15
16warning: trait objects without an explicit `dyn` are deprecated
17  --> $DIR/lint-group-allowed-lint-group.rs:10:25
18   |
19LL | pub fn function(_x: Box<SomeTrait>) {}
20   |                         ^^^^^^^^^
21   |
22   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
23   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
24help: use `dyn`
25   |
26LL | pub fn function(_x: Box<dyn SomeTrait>) {}
27   |                         +++
28
29warning: trait objects without an explicit `dyn` are deprecated
30  --> $DIR/lint-group-allowed-lint-group.rs:10:25
31   |
32LL | pub fn function(_x: Box<SomeTrait>) {}
33   |                         ^^^^^^^^^
34   |
35   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
36   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
37help: use `dyn`
38   |
39LL | pub fn function(_x: Box<dyn SomeTrait>) {}
40   |                         +++
41
42warning: 3 warnings emitted
43