about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-25 19:13:56 +0000
committerGitHub <noreply@github.com>2021-12-25 19:13:56 +0000
commitc456b217d808058d2515dd909bc4f68206de340e (patch)
treeec765ea710e0ce32b341429c709f2a78a57b05f5 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent2f63558dc5523005fd84dc272864a37bb3c1fa90 (diff)
parentf692fafee8bf90d603c36668f43b151e5e111ec3 (diff)
downloadrust-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