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

Add meta-variable checks in macro definitions #62008

Merged
merged 2 commits into from
Jul 20, 2019
Merged

Commits on Jul 19, 2019

  1. Remember the span of the Kleene operator in macros

    This is needed for having complete error messages where reporting macro variable
    errors. Here is what they would look like:
    
    error: meta-variable repeats with different kleene operator
      --> $DIR/issue-61053-different-kleene.rs:3:57
       |
    LL |     ( $( $i:ident = $($j:ident),+ );* ) => { $( $( $i = $j; )* )* };
       |                                 - expected repetition   ^^   - conflicting repetition
    ia0 committed Jul 19, 2019
    Configuration menu
    Copy the full SHA
    82abc0d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ec4584 View commit details
    Browse the repository at this point in the history