]> git.lizzy.rs Git - rust.git/commitdiff
Merge #3429
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Wed, 4 Mar 2020 00:05:10 +0000 (00:05 +0000)
committerGitHub <noreply@github.com>
Wed, 4 Mar 2020 00:05:10 +0000 (00:05 +0000)
3429: Fix panic on eager expansion r=matklad a=edwin0cheng

When lazy expanding inside an eager macro, its *parent* file of that lazy macro call must be already exists such that a panic is occurred because that parent file is the eager macro we are processing.

This PR fix this bug by store the argument syntax node as another eager macro id for that purpose.

Personally I don't know if it is a good answer for this bug.

Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>

Trivial merge