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

clean macros with vis identifier #865

Merged
merged 1 commit into from
May 8, 2019

Conversation

vaffeine
Copy link
Contributor

@vaffeine vaffeine commented Feb 16, 2019

Hi,

This (hopefuly) closes #838. That issue is only about named! macro, but I also fixed the same issue in named_attr! and named_args! (by the way, 2 last variants in named_args! didn't support pub(crate)). I didn't touch macros in methods.rs as they are marked as deprecated.

I updated documentation a little bit to run doc-tests on different forms of named! and named_args! instead of just ignoring. Also I compiled and ran test in 2 crates that uses nom 4: der_parser and rusticata-macros. They work fine.

As a drawback - minimal rustc version grows up to 1.30, which makes pipeline jobs with rustc 1.24 fail. But I guess I could rebase this PR after the minimal rustc version for nom would be updated.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 87.615% when pulling 0774950 on vaffeine:vis_macro_cleanup into 16164fb on Geal:master.

@Geal Geal added this to the 5.0 milestone May 8, 2019
@Geal Geal merged commit 0774950 into rust-bakery:master May 8, 2019
@Geal
Copy link
Collaborator

Geal commented May 8, 2019

finally merged, thank you for this :)

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.

simplify named! macros with the :vis macro arg type
3 participants