about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-12 09:02:27 +0000
committerbors <bors@rust-lang.org>2023-09-12 09:02:27 +0000
commitcc7a9d69729c9710c01cb70b864e664659626674 (patch)
tree1d987a672d6305a67f8b1ad9591286f859362af1 /compiler/rustc_resolve/src
parentdeb708af12ea5dfa10539f2d1592d289f7a92dc9 (diff)
parent6984030f80facdda72dd81c209fa19d1e830988e (diff)
downloadrust-cc7a9d69729c9710c01cb70b864e664659626674.tar.gz
rust-cc7a9d69729c9710c01cb70b864e664659626674.zip
Auto merge of #115705 - cjgillot:const-prop-aggregate, r=oli-obk
Read from non-scalar constants and statics in dataflow const-prop

DataflowConstProp is designed to handle scalar values. When MIR features an assignment from a non-scalar constant, we need to manually decompose it into the custom state space.

This PR tweaks interpreter callbacks to allow reusing `eval_mir_constant` without having a stack frame to get a span from.

r? `@oli-obk`
cc `@jachris`
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions