]> git.lizzy.rs Git - rust.git/commit
Auto merge of #79762 - Swatinem:remap-doctest-coverage, r=Swatinem
authorbors <bors@rust-lang.org>
Fri, 25 Dec 2020 02:37:08 +0000 (02:37 +0000)
committerbors <bors@rust-lang.org>
Fri, 25 Dec 2020 02:37:08 +0000 (02:37 +0000)
commitcae1f4ddf24afe1a7508250ae0de79ba6f1b9755
treec63e8df87bff66f10f9bb6e52bff4faefe8ab444
parent2c308b9a2a9b9d531cafa3f11cb1000ee5362e63
parent087101e285895b8bce94a16a90f7e7a3d938c3da
Auto merge of #79762 - Swatinem:remap-doctest-coverage, r=Swatinem

Remap instrument-coverage line numbers in doctests

This uses the `SourceMap::doctest_offset_line` method to re-map line
numbers from doctests. Remapping columns is not yet done, and rustdoc
still does not output the correct filename when running doctests in a
workspace.

Part of #79417 although I dont consider that fixed until both filenames
and columns are mapped correctly.

r? `@richkadel`

I might jump on zulip the comming days. Still need to figure out how to properly write tests for this, and deal with other doctest issues in the meantime.
src/librustdoc/html/markdown.rs