@@ -11,7 +11,7 @@ note: the lint level is defined here
1111 |
1212LL | #[deny(bare_trait_objects)]
1313 | ^^^^^^^^^^^^^^^^^^
14- help: use `dyn`
14+ help: if this is an object-safe trait, use `dyn`
1515 |
1616LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
1717 | +++
@@ -24,7 +24,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
2424 |
2525 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
2626 = 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`
2828 |
2929LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
3030 | +++
@@ -37,7 +37,7 @@ LL | let _x: &SomeTrait = todo!();
3737 |
3838 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
3939 = 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`
4141 |
4242LL | let _x: &dyn SomeTrait = todo!();
4343 | +++
@@ -51,7 +51,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
5151 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
5252 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
5353 = 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`
5555 |
5656LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
5757 | +++
@@ -65,7 +65,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
6565 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
6666 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
6767 = 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`
6969 |
7070LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
7171 | +++
@@ -79,7 +79,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
7979 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
8080 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
8181 = 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`
8383 |
8484LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
8585 | +++
@@ -93,7 +93,7 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
9393 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
9494 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9595 = 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`
9797 |
9898LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
9999 | +++
0 commit comments