We should use a () constant instead of Rvalue::Aggregate(box AggregateKind::Tuple, vec![])
.
#70886
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This should be changed to return a
()
Operand::Const
(notRvalue::Use
of that operand):rust/src/librustc_mir_build/build/misc.rs
Lines 35 to 37 in 39b6253
These two other places should switch to a
()
Rvalue::Use(Operand::Const(...))
:rust/src/librustc_mir_build/build/cfg.rs
Line 66 in 39b6253
rust/src/librustc_mir/transform/promote_consts.rs
Line 838 in 39b6253
This issue has been assigned to @lcnr via this comment.
The text was updated successfully, but these errors were encountered: