diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-05 16:34:46 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-04-06 10:23:06 +1000 |
| commit | 238d9076fc6d868c6268918ead1a59941c6d6556 (patch) | |
| tree | 708647b972aad3f6bb55315e0580d6039a0023b1 /compiler/rustc_interface/src | |
| parent | 7300bd6a38376ead250f766a470594943fd9bb80 (diff) | |
| download | rust-238d9076fc6d868c6268918ead1a59941c6d6556.tar.gz rust-238d9076fc6d868c6268918ead1a59941c6d6556.zip | |
Call `compute_locs` once per rule.
Currently it's called in `parse_tt` every time a match rule is invoked. This commit moves it so it's called instead once per match rule, in `compile_declarative_macro. This is a performance win. The commit also moves `compute_locs` out of `TtParser`, because there's no longer any reason for it to be in there.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
