rust/compiler/rustc_mir_build/src
Matthias Krüger 2663ea3051
Rollup merge of #141357 - dianne:unhardcode-unpretty-thir-tree-body-expr, r=compiler-errors
`unpretty=thir-tree`: don't require the final expr to be the body's value

Two motivations for this:
- I couldn't find a comment motivating this hard-coding. I can imagine it might be easier to read `unpretty=thir-flat` output if the final expression in the THIR is always the body's value, but if that's the reason, that should be the justification in the source. I can also imagine it's meant to check that all expressions will be visited by the pretty-printer, but the existing check doesn't quite do that either.
- Guard patterns (#129967) contain expressions, so lowering params containing guard patterns may add more expressions to the THIR. Currently a body's params are lowered after its expression, so guard expressions in params would end up last, breaking this. As an alternative, the params could be lowered first (#141356).
2025-05-21 22:15:01 +02:00
..
builder Rollup merge of #141357 - dianne:unhardcode-unpretty-thir-tree-body-expr, r=compiler-errors 2025-05-21 22:15:01 +02:00
thir Rollup merge of #141357 - dianne:unhardcode-unpretty-thir-tree-body-expr, r=compiler-errors 2025-05-21 22:15:01 +02:00
check_tail_calls.rs Rollup merge of #135973 - WaffleLapkin:tail-track-caller-fix, r=compiler-errors 2025-02-07 12:01:56 +01:00
check_unsafety.rs Invoke a query only when it doesn't return immediately anyway 2025-05-13 08:55:32 +00:00
errors.rs Move eager translation to a method on Diag 2025-04-16 21:38:59 -04:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00