Every Body
should remember its MirSource
#77427
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.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We have a type called
MirSource
that is needed for debug logging during the MIR transform pipeline. We always know the source when building aBody
, but for some reason we drop it on the floor. It then gets recomputed inrustc_mir
and passed around as a separate parameter. This is unergonomic and increases function signature complexity. We should store aMirSource
as part of theBody
instead.cc @rust-lang/wg-mir-opt
The text was updated successfully, but these errors were encountered: