about summary refs log tree commit diff
path: root/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-11-04 14:53:52 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-11-08 20:43:08 +1100
commit996bdabc2a31cd86086b6f9beba3a8c58c8ceb8a (patch)
tree3c44dd80474a573f397633692ab0241e474c716e /tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
parent3f9c54caf04f74529c178326fa594a8464071f0a (diff)
downloadrust-996bdabc2a31cd86086b6f9beba3a8c58c8ceb8a.tar.gz
rust-996bdabc2a31cd86086b6f9beba3a8c58c8ceb8a.zip
coverage: Remove unhelpful code for handling multiple files per function
Functions currently can't have mappings in multiple files, and if that ever
changes (e.g. to properly support expansion regions), this code will need to be
completely overhauled anyway.
Diffstat (limited to 'tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff')
-rw-r--r--tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff b/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
index a594c44c316..510aa07f32d 100644
--- a/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
+++ b/tests/mir-opt/coverage/instrument_coverage.main.InstrumentCoverage.diff
@@ -7,12 +7,13 @@
       let mut _2: bool;
       let mut _3: !;
   
++     coverage body span: $DIR/instrument_coverage.rs:10:11: 16:2 (#0)
 +     coverage ExpressionId(0) => Expression { lhs: Counter(0), op: Add, rhs: Counter(1) };
-+     coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:10:1 - 10:11;
-+     coverage Code(Expression(0)) => $DIR/instrument_coverage.rs:12:12 - 12:17;
-+     coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:13:13 - 13:18;
-+     coverage Code(Counter(1)) => $DIR/instrument_coverage.rs:14:10 - 14:11;
-+     coverage Code(Counter(0)) => $DIR/instrument_coverage.rs:16:1 - 16:2;
++     coverage Code(Counter(0)) => 10:1 - 10:11;
++     coverage Code(Expression(0)) => 12:12 - 12:17;
++     coverage Code(Counter(0)) => 13:13 - 13:18;
++     coverage Code(Counter(1)) => 14:10 - 14:11;
++     coverage Code(Counter(0)) => 16:1 - 16:2;
 + 
       bb0: {
 +         Coverage::CounterIncrement(0);