]> git.lizzy.rs Git - rust.git/commit
Replace the `String` in `ParseResult::Failure` with `Token`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 21 Oct 2016 01:01:06 +0000 (12:01 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Fri, 21 Oct 2016 09:27:15 +0000 (20:27 +1100)
commitb817cf8b5730912c558aff811cd34fc3d3fa8637
tree7e2c92dd5380a26890c139afccad36450ee9d1a2
parente382267cfb9133ef12d59b66a2935ee45b546a61
Replace the `String` in `ParseResult::Failure` with `Token`.

This lets us delay creation of failure messages until they are needed,
which avoids ~1.6M allocations in html5ever.
src/libsyntax/ext/tt/macro_parser.rs
src/libsyntax/ext/tt/macro_rules.rs
src/test/run-pass-fulldeps/auxiliary/procedural_mbe_matching.rs