Closed
Description
Doctest test names have changed due to #66364. Doc comments that pass through a macro defined in another crate now seem to report a different span.
lazy_static::lazy_static! {
/// Comments
/// ```
/// assert!(true);
/// ```
static ref FOO: bool = true;
}
running with cargo test --doc
previously looked like this:
test <::lazy_static::__lazy_static_internal macros> - FOO (line 26) ... ok
Now the test names look like this:
test /Users/eric/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs - FOO (line 159) ... ok
Frankly, neither are particularly great. It would be nice if the test name used the span from where the macro was invoked, not where it was defined.
rustc 1.43.0-nightly (c20d7eecb 2020-03-11)