44 lines
2.0 KiB
Plaintext
44 lines
2.0 KiB
Plaintext
warning: adding an auto trait `Send` to a trait object in a pointer cast may cause UB later on
|
|
--> $DIR/ptr-to-trait-obj-add-auto.rs:6:5
|
|
|
|
|
LL | x as _
|
|
| ^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
|
|
= note: `#[warn(ptr_cast_add_auto_to_object)]` on by default
|
|
|
|
warning: adding auto traits `Send`, `Sync`, and `Unpin` to a trait object in a pointer cast may cause UB later on
|
|
--> $DIR/ptr-to-trait-obj-add-auto.rs:13:5
|
|
|
|
|
LL | x as _
|
|
| ^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
|
|
|
|
warning: 2 warnings emitted
|
|
|
|
Future incompatibility report: Future breakage diagnostic:
|
|
warning: adding an auto trait `Send` to a trait object in a pointer cast may cause UB later on
|
|
--> $DIR/ptr-to-trait-obj-add-auto.rs:6:5
|
|
|
|
|
LL | x as _
|
|
| ^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
|
|
= note: `#[warn(ptr_cast_add_auto_to_object)]` on by default
|
|
|
|
Future breakage diagnostic:
|
|
warning: adding auto traits `Send`, `Sync`, and `Unpin` to a trait object in a pointer cast may cause UB later on
|
|
--> $DIR/ptr-to-trait-obj-add-auto.rs:13:5
|
|
|
|
|
LL | x as _
|
|
| ^^^^^^
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
|
|
= note: `#[warn(ptr_cast_add_auto_to_object)]` on by default
|
|
|