about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2019-08-28 20:18:25 -0400
committerWesley Wiser <wwiser@gmail.com>2019-09-02 17:23:21 -0400
commit46877e289087c67d03572019fca9792d95e55e0c (patch)
tree3c982a8f58fe415b3c862bf89745ce25cce5ebdf /src/libsyntax/parse/parser
parentfdaf594bab31eec75fb6d582cd33e5a5b43de7f4 (diff)
downloadrust-46877e289087c67d03572019fca9792d95e55e0c.tar.gz
rust-46877e289087c67d03572019fca9792d95e55e0c.zip
Fix const eval bug breaking run-pass tests in Miri
PR #63580 broke miri's ability to run the run-pass test suite with MIR
optimizations enabled. The issue was that we weren't properly handling
the substs and DefId associated with a Promoted value. This didn't break
anything in rustc because in rustc this code runs before the Inliner
pass which is where the DefId and substs can diverge from their initial
values. It broke Miri though because it ran this code again after
running the optimization pass.
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions