Open Houtamelo opened 2 months ago
I do not believe this is related to vis
starting with [
(or any other token). I believe it is because $(...)?
can be empty, and so can vis
. There are two empty matches in a row. There needs to be something non-empty between them to disambiguate.
(I do not know why empty matchers work that way, I would expect an NFA to be able to handle that. It seems like it is being too greedy skipping over empty matches.)
I tried this code:
I expected to see this happen: It compiles
Instead, this happened:
rustc --version --verbose
:This also happens in stable Rust, playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b75389208cdb78680bab4ba33bb90efb