about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2022-05-22 19:39:09 -0400
committerRalf Jung <post@ralfj.de>2022-08-18 15:01:03 -0400
commit14e72e7ffaef3880279e9f3d2fef7dcf8fc5cb5b (patch)
treef8b816743270ea69f1f4653ae6219d5f859b2f6d /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff
parent46da7485023e2b09b76039071d4969334aabbe91 (diff)
downloadrust-14e72e7ffaef3880279e9f3d2fef7dcf8fc5cb5b.tar.gz
rust-14e72e7ffaef3880279e9f3d2fef7dcf8fc5cb5b.zip
Improve information sharing across SB diagnostics
Previous Stacked Borrows diagnostics were missing a lot of information
about the state of the interpreter, and it was difficult to add
additional state because it was threaded through all the intervening
function signatures.

This change factors a lot of the arguments which used to be passed
individually to many stacked borrows functions into a single
`DiagnosticCx`, which is built in `Stacks::for_each`, and since it
wraps a handle to `AllocHistory`, we can now handle more nuanced
things like heterogeneous borrow of `!Freeze` types.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions