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

pruning of 'input from nonterminal type sometimes overly aggressive #17

Closed
nikomatsakis opened this issue Sep 15, 2015 · 1 comment
Closed

Comments

@nikomatsakis
Copy link
Collaborator

Attempting to do another snapshot, I encountered a bug where the 'input lifetime parameter is incorrectly pruned from the Nonterminal type for lrgrammar.lalrpop. Attempting to isolate into a smaller test case now.

@nikomatsakis
Copy link
Collaborator Author

This test case reproduces it:

grammar<'input>;

use lifetime_tok_lib::LtTok;

extern {
    enum LtTok<'input> {
        Other => LtTok::Other(<&'input str>),
    }
}

pub Expr: Vec<LtTok<'input>> = Other*;

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

No branches or pull requests

1 participant