Skip to content

Commit c851ae9

Browse files
authored
Rollup merge of rust-lang#80761 - andjo403:generic_coverage, r=spastorino
handle generic trait methods in coverage-report tests also make the generic function pattern more specific and remove the extra $ that fails the matching. r? `@wesleywiser` as this was failing the test of rust-lang#76896
2 parents 901b9a2 + 4f6305b commit c851ae9

File tree

1 file changed

+1
-1
lines changed
  • src/test/run-make-fulldeps/coverage-reports

1 file changed

+1
-1
lines changed

src/test/run-make-fulldeps/coverage-reports/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ else
172172
# files are redundant, so there is no need to generate `expected_*.json` files or
173173
# compare actual JSON results.)
174174

175-
$(DIFF) --ignore-matching-lines='::<.*>.*:$$' \
175+
$(DIFF) --ignore-matching-lines='^ | .*::<.*>.*:$$' --ignore-matching-lines='^ | <.*>::.*:$$' \
176176
expected_show_coverage.$@.txt "$(TMPDIR)"/actual_show_coverage.$@.txt || \
177177
( grep -q '^\/\/ ignore-llvm-cov-show-diffs' $(SOURCEDIR)/$@.rs && \
178178
>&2 echo 'diff failed, but suppressed with `// ignore-llvm-cov-show-diffs` in $(SOURCEDIR)/$@.rs' \

0 commit comments

Comments
 (0)