about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-28 09:01:11 +0000
committerbors <bors@rust-lang.org>2021-07-28 09:01:11 +0000
commiteba3228b2a9875d268ff3990903d04e19f6cdb0c (patch)
treedff9e4c1c59e7d7dde4e79bd203eb34d83807f1c /compiler/rustc_interface/src
parentaea2e446f09b923d513013743b37b43fca7282dc (diff)
parent51df26eb5637ddd0012929fb21c3e51385434dd5 (diff)
downloadrust-eba3228b2a9875d268ff3990903d04e19f6cdb0c.tar.gz
rust-eba3228b2a9875d268ff3990903d04e19f6cdb0c.zip
Auto merge of #86251 - Smittyvb:thir-tree-again, r=oli-obk
Support -Z unpretty=thir-tree again

Currently `-Z unpretty=thir-tree` is broken after some THIR refactorings. This re-implements it, making it easier to debug THIR-related issues.

We have to do analyzes before getting the THIR, since trying to create THIR from invalid HIR can ICE. But doing those analyzes requires the THIR to be built and stolen. We work around this by creating a separate query to construct the THIR tree string representation.

Closes https://github.com/rust-lang/project-thir-unsafeck/issues/8, fixes #85552.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions