ptal / oak

A typed parser generator embedded in Rust code for Parsing Expression Grammars
Apache License 2.0
142 stars 14 forks source link

Random error with generated identifiers #62

Closed ptal closed 9 years ago

ptal commented 9 years ago

It happens ~1/10 with the exact same compilation parameters and code. It is surely a problem due to identifiers that are the same.

src/test/testoak.rs:1:1: 1:1 error: cannot move out of captured outer variable in an `FnOnce` closure
src/test/testoak.rs:1 // Copyright 2014 Pierre Talbot (IRCAM)
                      ^
note: in expansion of closure expansion
src/test/ntcc.rs:18:1: 136:2 note: expansion site
note: in expansion of closure expansion
src/test/ntcc.rs:18:1: 136:2 note: expansion site
note: in expansion of closure expansion
src/test/ntcc.rs:18:1: 136:2 note: expansion site
note: in expansion of closure expansion
src/test/ntcc.rs:18:1: 136:2 note: expansion site
note: in expansion of closure expansion
src/test/ntcc.rs:18:1: 136:2 note: expansion site
src/test/testoak.rs:15:1: 317:1 note: in expansion of grammar!
src/test/ntcc.rs:18:1: 136:2 note: expansion site
error: aborting due to previous error
Could not compile `oak`.