rust/tests/ui/cast/ptr-to-trait-obj-add-auto.stderr

44 lines
2.0 KiB
Plaintext
Raw Normal View History

2024-06-23 12:55:17 -05:00
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 _
2024-06-23 12:55:17 -05:00
| ^^^^^^
|
2024-06-23 12:55:17 -05:00
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2024-07-04 10:52:01 -05:00
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
2024-06-23 12:55:17 -05:00
= note: `#[warn(ptr_cast_add_auto_to_object)]` on by default
2024-07-04 11:38:18 -05:00
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!
2024-07-04 10:52:01 -05:00
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
warning: 2 warnings emitted
2024-06-23 12:55:17 -05:00
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!
2024-07-04 10:52:01 -05:00
= note: for more information, see issue #127323 <https://github.com/rust-lang/rust/issues/127323>
2024-06-23 12:55:17 -05:00
= note: `#[warn(ptr_cast_add_auto_to_object)]` on by default
Future breakage diagnostic:
2024-07-04 11:38:18 -05:00
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!
2024-07-04 10:52:01 -05:00
= 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