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

Macro ambiguity on nightly: std::cfg_match vs crate::utils::macros::cfg_match #190

Closed
cdata opened this issue Oct 13, 2023 · 1 comment · Fixed by #191
Closed

Macro ambiguity on nightly: std::cfg_match vs crate::utils::macros::cfg_match #190

cdata opened this issue Oct 13, 2023 · 1 comment · Fixed by #191

Comments

@cdata
Copy link

cdata commented Oct 13, 2023

It is not currently possible to build safer_ffi on Rust nightly (rustc 1.75.0-nightly (e20cb7702 2023-10-12) at the time of me filing this issue).

The reason appears to be ambiguity between std::cfg_match (an unstable feature introduced in rust-lang/rust#115416) and safer_ffi::utils::macros::cfg_match.

According to the compiler, the ambiguity is introduced due to the wildcard use std::* here:

pub use ::std::{*,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants