diff options
| author | bors <bors@rust-lang.org> | 2022-08-22 14:59:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-22 14:59:21 +0000 |
| commit | e0dc8d78019ca924203fe153ff0af7f64f68cb5d (patch) | |
| tree | b23cb7ef4b6ce43fa21873e78c078c7fe9b1d6ee /src/test/mir-opt/inline/inline_specialization.main.Inline.diff | |
| parent | a8a33cf27166d3eabaffc58ed3799e054af3b0c6 (diff) | |
| parent | 5d7ce21b6ba31e93d7d9af71dd330ecc71387a2d (diff) | |
| download | rust-e0dc8d78019ca924203fe153ff0af7f64f68cb5d.tar.gz rust-e0dc8d78019ca924203fe153ff0af7f64f68cb5d.zip | |
Auto merge of #99908 - Nilstrieb:mir-opt-span, r=oli-obk
Show absolute line numbers if span is outside relative span In the MIR pretty printing, it can sometimes happen that the span of the statement is outside the span of the body (for example through inlining). In this case, don't display a relative span but an absolute span. This will make the mir-opt-tests a little more prone to diffs again, but the impact should be small. Fixes #99854 r? `@oli-obk`
Diffstat (limited to 'src/test/mir-opt/inline/inline_specialization.main.Inline.diff')
| -rw-r--r-- | src/test/mir-opt/inline/inline_specialization.main.Inline.diff | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/mir-opt/inline/inline_specialization.main.Inline.diff b/src/test/mir-opt/inline/inline_specialization.main.Inline.diff index 106291b36e3..fdf2a1e1ff9 100644 --- a/src/test/mir-opt/inline/inline_specialization.main.Inline.diff +++ b/src/test/mir-opt/inline/inline_specialization.main.Inline.diff @@ -19,7 +19,7 @@ - } - - bb1: { -+ _1 = const 123_u32; // scope 2 at $DIR/inline-specialization.rs:+10:31: +10:34 ++ _1 = const 123_u32; // scope 2 at $DIR/inline-specialization.rs:14:31: 14:34 _0 = const (); // scope 0 at $DIR/inline-specialization.rs:+0:11: +2:2 StorageDead(_1); // scope 0 at $DIR/inline-specialization.rs:+2:1: +2:2 return; // scope 0 at $DIR/inline-specialization.rs:+2:2: +2:2 |
