The compiler sets bad krate span for plugins #23964
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-plugins
Area: compiler plugins, doc.rust-lang.org/nightly/unstable-book/language-features/plugin.html
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The
krate_span
field of the registry should be pointing to the place that introduces the plugin, i.e. the#[plugin(...)]
but it is instead pointing to the whole file (at least, from the start of the first token to the end of the last).The text was updated successfully, but these errors were encountered: