Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future incompatability warnings #53

Open
murl-digital opened this issue Jul 18, 2024 · 1 comment
Open

Future incompatability warnings #53

murl-digital opened this issue Jul 18, 2024 · 1 comment

Comments

@murl-digital
Copy link

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)
@Madoshakalaka
Copy link

I get this too

andersk added a commit to andersk/rspack that referenced this issue Dec 15, 2024
anymap seems unmaintained and emits a future incompatibility warning
with newer Rust.

chris-morgan/anymap#53

Signed-off-by: Anders Kaseorg <[email protected]>
h-a-n-a pushed a commit to web-infra-dev/rspack that referenced this issue Dec 16, 2024
* chore(deps): Switch anymap to anymap3

anymap seems unmaintained and emits a future incompatibility warning
with newer Rust.

chris-morgan/anymap#53

Signed-off-by: Anders Kaseorg <[email protected]>

* chore(deps): Upgrade ctor 0.2.3 to 0.2.9

Fixes “warning: unexpected `cfg` condition value: `used_linker`” with
newer Rust.

mmastrac/rust-ctor#309

Signed-off-by: Anders Kaseorg <[email protected]>

* chore(deps): Replace unmaintained derivative with derive_more

derivative triggers unfixable Clippy lints with new Rust.

rust-lang/rust-clippy#13811

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: Fix clippy::empty_line_after_doc_comments

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: Fix clippy::extra_unused_lifetimes

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: Fix clippy::manual_c_str_literals

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: Fix clippy::needless_lifetimes

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: Fix clippy::needless_return

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: Fix clippy::unnecessary_map_or

Signed-off-by: Anders Kaseorg <[email protected]>

* chore: upgrade Rust to 1.83.0 nightly

Upgrade Rust to nightly-2024-11-27, which was built on the same day as
1.83.0 stable.

Signed-off-by: Anders Kaseorg <[email protected]>

---------

Signed-off-by: Anders Kaseorg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants