Skip to content

regression: cfg_match resolution ambiguity #117057

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

In:

[INFO] [stdout] error[E0658]: use of unstable library feature 'cfg_match'
[INFO] [stdout]   --> src/maybe_dangling.rs:65:1
[INFO] [stdout]    |
[INFO] [stdout] 65 | crate::cfg_match! {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: see issue #115585 <https://github.com/rust-lang/rust/issues/115585> for more information
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: no rules expected the token `feature`
[INFO] [stdout]   --> src/maybe_dangling.rs:66:5
[INFO] [stdout]    |
[INFO] [stdout] 66 |     feature = "nightly-dropck_eyepatch" => {
[INFO] [stdout]    |     ^^^^^^^ no rules expected this token in macro call
[INFO] [stdout]    |
[INFO] [stdout] note: while trying to match `cfg`
[INFO] [stdout]   --> /rustc/489647f984b2b3a5ee6b2a0d46a527c8d926ceae/library/core/src/macros/mod.rs:358:11
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0659]: `cfg_match` is ambiguous
[INFO] [stdout]   --> src/lib.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 42 | use cfg_match;
[INFO] [stdout]    |     ^^^^^^^^^ ambiguous name
[INFO] [stdout]    |
[INFO] [stdout]    = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
[INFO] [stdout]    = note: `cfg_match` could refer to a macro from prelude

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions