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:
authorAleksey Kladov <aleksey.kladov@gmail.com>2021-12-19 17:36:23 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2021-12-25 22:02:26 +0300
commitd0d05075ed52aa22dfec36b5a7b23e6a1a554496 (patch)
tree93dde405a9ff7c4fa48fd10219b53a52538e863a /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent2f63558dc5523005fd84dc272864a37bb3c1fa90 (diff)
downloadrust-d0d05075ed52aa22dfec36b5a7b23e6a1a554496.tar.gz
rust-d0d05075ed52aa22dfec36b5a7b23e6a1a554496.zip
internal: replace TreeSink with a data structure
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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions