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. Part of issue #79417.
This commit is contained in:
parent
3d9ada686f
commit
830ceaa419
15 changed files with 596 additions and 56 deletions
|
@ -182,7 +182,7 @@ impl std::fmt::Display for FileName {
|
|||
use FileName::*;
|
||||
match *self {
|
||||
Real(RealFileName::Named(ref path)) => write!(fmt, "{}", path.display()),
|
||||
// FIXME: might be nice to display both compoments of Devirtualized.
|
||||
// FIXME: might be nice to display both components of Devirtualized.
|
||||
// But for now (to backport fix for issue #70924), best to not
|
||||
// perturb diagnostics so its obvious test suite still works.
|
||||
Real(RealFileName::Devirtualized { ref local_path, virtual_name: _ }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue