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

Use local_inner_macros to resolve assert_matches! within $crate #9

Merged
merged 1 commit into from
Oct 17, 2020

Conversation

yvt
Copy link
Contributor

@yvt yvt commented Oct 12, 2020

This fixes errors when using debug_assert_matches! via Rust 2018 style macro imports like use assert_matches::debug_assert_matches;.

error: cannot find macro `assert_matches` in this scope
   --> redacted.rs:573:5
    |
573 | /     debug_assert_matches!(
574 | |         task.st.read(&*lock),
575 | |         (task::TaskSt::Running | task::TaskSt::Waiting)
576 | |     );
    | |______^
    |
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

Related issue: rust-lang-nursery/lazy-static.rs#107

@murarth murarth merged commit 7ae7795 into murarth:master Oct 17, 2020
@zertosh
Copy link

zertosh commented Feb 2, 2021

@murarth, can you please publish a release with this?

@murarth
Copy link
Owner

murarth commented Feb 5, 2021

Just published version 1.5.0

@yvt yvt deleted the feat-2018-imports branch October 21, 2021 03:51
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

Successfully merging this pull request may close these issues.

3 participants