-
-
Notifications
You must be signed in to change notification settings - Fork 50
Future incompatability warnings #53
Copy link
Copy link
Open
Description
building anymap on nightly rust now triggers a future incompatibility warning, here's a copypasted terminal output
The package `anymap v1.0.0-beta.2` currently triggers the following future incompatibility lints:
> warning: adding an auto trait `Send` to a trait object in a pointer cast may cause UB later on
> --> /home/draconium/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anymap-1.0.0-beta.2/src/any.rs:37:40
> |
> 37 | unsafe { Box::from_raw(raw as *mut $t) }
> | ^^^^^^^^^^^^^^
> ...
> 144 | impl_clone!(dyn CloneAny + Send);
> | -------------------------------- in this macro invocation
> |
> = 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: this warning originates in the macro `impl_clone` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: adding auto traits `Send` and `Sync` to a trait object in a pointer cast may cause UB later on
> --> /home/draconium/.cargo/registry/src/index.crates.io-6f17d22bba15001f/anymap-1.0.0-beta.2/src/any.rs:37:40
> |
> 37 | unsafe { Box::from_raw(raw as *mut $t) }
> | ^^^^^^^^^^^^^^
> ...
> 145 | impl_clone!(dyn CloneAny + Send + Sync);
> | --------------------------------------- in this macro invocation
> |
> = 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: this warning originates in the macro `impl_clone` (in Nightly builds, run with -Z macro-backtrace for more info)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels