Skip to content

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

@cdata

Description

@cdata

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::{*,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions