Generate an intermediate temporary for Drop constants.

To limit the fallout from this, don't do this for the last (or only) operand in an rvalue.
This commit is contained in:
Oli Scherer 2022-03-09 17:10:48 +00:00
parent afcd33a6fc
commit db02e61038
8 changed files with 122 additions and 38 deletions

View file

@ -6,6 +6,7 @@
#![feature(box_patterns)]
#![feature(control_flow_enum)]
#![feature(crate_visibility_modifier)]
#![feature(if_let_guard)]
#![feature(let_chains)]
#![feature(let_else)]
#![feature(min_specialization)]