@@ -11,7 +11,7 @@ note: the lint level is defined here
11
11
|
12
12
LL | #[deny(bare_trait_objects)]
13
13
| ^^^^^^^^^^^^^^^^^^
14
- help: use `dyn`
14
+ help: if this is an object-safe trait, use `dyn`
15
15
|
16
16
LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
17
17
| +++
@@ -24,7 +24,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
24
24
|
25
25
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
26
26
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
27
- help: use `dyn`
27
+ help: if this is an object-safe trait, use `dyn`
28
28
|
29
29
LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
30
30
| +++
@@ -37,7 +37,7 @@ LL | let _x: &SomeTrait = todo!();
37
37
|
38
38
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
39
39
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
40
- help: use `dyn`
40
+ help: if this is an object-safe trait, use `dyn`
41
41
|
42
42
LL | let _x: &dyn SomeTrait = todo!();
43
43
| +++
@@ -51,7 +51,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
51
51
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
52
52
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
53
53
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
54
- help: use `dyn`
54
+ help: if this is an object-safe trait, use `dyn`
55
55
|
56
56
LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
57
57
| +++
@@ -65,7 +65,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
65
65
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
66
66
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
67
67
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
68
- help: use `dyn`
68
+ help: if this is an object-safe trait, use `dyn`
69
69
|
70
70
LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
71
71
| +++
@@ -79,7 +79,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
79
79
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
80
80
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
81
81
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
82
- help: use `dyn`
82
+ help: if this is an object-safe trait, use `dyn`
83
83
|
84
84
LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
85
85
| +++
@@ -93,7 +93,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
93
93
= warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
94
94
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
95
95
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
96
- help: use `dyn`
96
+ help: if this is an object-safe trait, use `dyn`
97
97
|
98
98
LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
99
99
| +++
0 commit comments