rust/compiler/rustc_mir_build/src
bors b1719530f4 Auto merge of #108692 - nnethercote:dont-call-temporary_scope-twice, r=cjgillot
Don't call `temporary_scope` twice.

`mirror_expr_inner` calls `temporary_scope`. It then calls `make_mirror_unadjusted` which makes an identical call to `temporary_scope`.

This commit changes the `mirror_expr_inner` to get the `temp_lifetime` out of the expression produced by `make_mirror_unadjusted`, similar to how it currently gets the type.

r? `@cjgillot`
2023-03-04 15:10:04 +00:00
..
build Match end user facing unmatched backticks in compiler/ 2023-03-03 08:39:36 +01:00
thir Auto merge of #108692 - nnethercote:dont-call-temporary_scope-twice, r=cjgillot 2023-03-04 15:10:04 +00:00
check_unsafety.rs Don't trim path for unsafe_op_in_unsafe_fn lints 2023-01-03 00:28:54 +01:00
errors.rs Restrict #[rustc_box] to Box::new calls 2023-03-02 02:42:19 +00:00
lib.rs Move THIR printing to rustc_mir_build. 2023-02-26 14:31:15 +00:00
lints.rs Stop using BREAK & CONTINUE in compiler 2023-01-17 23:17:51 -08:00