Skip to content
This repository was archived by the owner on Jan 21, 2023. It is now read-only.
This repository was archived by the owner on Jan 21, 2023. It is now read-only.

Please consider re-exporting matches and assert_matches from std #22

@joshtriplett

Description

@joshtriplett

In addition to having matches! in stable, std now has assert_matches! in the latest nightly.

This results in compile-time errors for users of the matches crate if they have a wildcard use matches::*;.

Would you consider making new versions of matches re-export these macros from std if they're available? (While assert_matches is on nightly, this would require some level of compile-time detection; if you don't want to do that, and you don't mind bumping MSRV, this could wait until assert_matches is stable.)

I've confirmed that re-exporting a macro from the prelude eliminates this breakage: rustc doesn't consider two names to conflict if they're the same underlying item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions