We have a type called MirSource that is needed for debug logging during the MIR transform pipeline. We always know the source when building a Body, but for some reason we drop it on the floor. It then gets recomputed in rustc_mir and passed around as a separate parameter. This is unergonomic and increases function signature complexity. We should store a MirSource as part of the Body instead.
cc @rust-lang/wg-mir-opt
We have a type called
MirSourcethat 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_mirand passed around as a separate parameter. This is unergonomic and increases function signature complexity. We should store aMirSourceas part of theBodyinstead.cc @rust-lang/wg-mir-opt