]> git.lizzy.rs Git - rust.git/commit
macro_rules: proper FIRST/FOLLOW computations for checking macro_rules validity.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 12 Nov 2015 19:55:28 +0000 (20:55 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 7 Jan 2016 19:53:33 +0000 (20:53 +0100)
commit076e64475a54bacf7b0f0040e48800bca9b728dd
tree21ec03c2950249145a7862b3e3d15c57f67cb1b5
parent25d1f4bc21a2ab77e12ebcd8c5fb479b563d3bf7
macro_rules: proper FIRST/FOLLOW computations for checking macro_rules validity.

See RFC amendment 1384 and tracking issue 30450:
  https://github.com/rust-lang/rfcs/pull/1384
  https://github.com/rust-lang/rust/issues/30450

Moved old check_matcher code into check_matcher_old

combined the two checks to enable a warning cycle (where we will
continue to error if the two checks agree to reject, accept if the new
check says accept, and warn if the old check accepts but the new check
rejects).
src/libsyntax/ext/tt/macro_rules.rs