Skip to content

Commit

Permalink
Auto merge of #99780 - Nilstrieb:mir-opt-test-line-no, r=oli-obk
Browse files Browse the repository at this point in the history
Use line numbers relative to the function in mir-opt tests

As shown in #99770, the line numbers can be a big source of needless and confusing diffs. This PR adds a new flag `-Zmir-pretty-relative-line-numbers` to make them relative to the function declaration, which avoids most needless diffs from attribute changes.

`@JakobDegen` told me that there has been a zulip conversation about disabling line numbers with mixed opinions, so I'd like to get some feedback here, for this hopefully better solution.

r? rust-lang/wg-mir-opt
  • Loading branch information
bors committed Jul 28, 2022
2 parents c06fbcc + 3e45c72 commit 8ad5cae
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 8ad5cae

Please sign in to comment.