Closed
Description
In the interest of improving error/diagnostic quality for macros I'd like to try and get some of the proc_macro_span
feature stabilized.
While some of these APIs don't seem to have consensus on their effect on IDE/language server support, the source_text
API seems both well-tested and to have consensus that its result only being invalidated by edits to the contents of the macro makes it a non-issue for IDE support (as noted by niko in #54725).
API
impl Span {
pub fn source_text(&self) -> Option<String>;
}
@rustbot label +T-libs-api +A-macros +A-proc-macros