about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-31 10:08:58 +0200
committerGitHub <noreply@github.com>2024-08-31 10:08:58 +0200
commita59c1a429188c8e15ad8d6c6692520b575736869 (patch)
tree367cce3d430647f85562c5f1a6aeb3449dda666a /compiler/rustc_interface/src
parent6c8b07f71a55c097b41b8063fc96de7d5eb3c369 (diff)
parentde34a9135069a559e3a2249b481fe551a5c1a8dd (diff)
downloadrust-a59c1a429188c8e15ad8d6c6692520b575736869.tar.gz
rust-a59c1a429188c8e15ad8d6c6692520b575736869.zip
Rollup merge of #129751 - RalfJung:interpret-visit-field-order, r=compiler-errors
interpret/visitor: make memory order iteration slightly more efficient

Finally I know enough about RPIT to write this iterator signature correctly. :D

This means memory-order iteration now needs an allocation, but it avoids quadratic complexity (where it has to do a linear scan n times to find the n-th field in memory order), so that seems like a win overall. The changed code only affects Miri; the rustc changes are NOPs.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions