From: bors Date: Thu, 28 Jul 2022 16:22:19 +0000 (+0000) Subject: Auto merge of #99780 - Nilstrieb:mir-opt-test-line-no, r=oli-obk X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;ds=sidebyside;h=36f4f4aa38563d0c02bbdbbc03fb20145edef567;p=rust.git Auto merge of #99780 - Nilstrieb:mir-opt-test-line-no, r=oli-obk 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 --- 36f4f4aa38563d0c02bbdbbc03fb20145edef567