MIR dump prints the location of each statement as a comment #70400
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-mir-opt
Area: MIR optimizations
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
originally mentioned in #69916 (comment)
Basically all the lines look like
which is a lot of noise if used with
mir-opt
tests anddiff
mode, because mir optimizations that don't even touch the current statement may still cause diff fallout because they touch the comments.Should we just stop emitting the location? Or maybe just specifically for mir-opt tests by creating a new
-Z
flag?cc @nikomatsakis @pnkfelix @matthewjasper @eddyb
The text was updated successfully, but these errors were encountered: