diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-25 19:13:56 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 19:13:56 +0000 |
| commit | c456b217d808058d2515dd909bc4f68206de340e (patch) | |
| tree | ec765ea710e0ce32b341429c709f2a78a57b05f5 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 2f63558dc5523005fd84dc272864a37bb3c1fa90 (diff) | |
| parent | f692fafee8bf90d603c36668f43b151e5e111ec3 (diff) | |
| download | rust-c456b217d808058d2515dd909bc4f68206de340e.tar.gz rust-c456b217d808058d2515dd909bc4f68206de340e.zip | |
Merge #11117
11117: internal: replace TreeSink with a data structure r=matklad a=matklad The general theme of this is to make parser a better independent library. The specific thing we do here is replacing callback based TreeSink with a data structure. That is, rather than calling user-provided tree construction methods, the parser now spits out a very bare-bones tree, effectively a log of a DFS traversal. This makes the parser usable without any *specifc* tree sink, and allows us to, eg, move tests into this crate. Now, it's also true that this is a distinction without a difference, as the old and the new interface are equivalent in expressiveness. Still, this new thing seems somewhat simpler. But yeah, I admit I don't have a suuper strong motivation here, just a hunch that this is better. cc #10765 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
