You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@matthiaskrgr What you're describing is entirely in the opposite direction, <::std::macros::panic macros> is the old (and arguably bad) kind of Span that's impossible to get anymore.
I've hidden your comment to focus on the reported issue.
Activity
matthiaskrgr commentedon Mar 18, 2020
Centril commentedon Mar 18, 2020
cc @eddyb @petrochenkov
eddyb commentedon Mar 18, 2020
@matthiaskrgr What you're describing is entirely in the opposite direction,
<::std::macros::panic macros>is the old (and arguably bad) kind ofSpanthat's impossible to get anymore.I've hidden your comment to focus on the reported issue.
eddyb commentedon Mar 18, 2020
@ehuss That makes sense, we have a way to get the outermost invocation, that is used by
file!()/line!and#[track_caller]:We'd just need to use this in
rustdoc.Centril commentedon Mar 18, 2020
cc @GuillaumeGomez
Centril commentedon Mar 18, 2020
cc @rust-lang/rustdoc
spastorino commentedon Mar 18, 2020
Removed
T-compilerlabel, left nomination forT-rustdocto decide about this issue.GuillaumeGomez commentedon Mar 19, 2020
Well, using what @eddyb suggested seems like the best thing to do.
use outermost invocation span for doctest names
Auto merge of rust-lang#73842 - euclio:doctest-expn, r=GuillaumeGomez