mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Fix unconfigured diagnostic being attached to the wrong file for modules
This commit is contained in:
parent
ffd28e6ee9
commit
e3e31ce199
2 changed files with 26 additions and 2 deletions
|
@ -2003,7 +2003,7 @@ impl ModCollector<'_, '_> {
|
|||
Err(cfg) => {
|
||||
self.emit_unconfigured_diagnostic(
|
||||
self.tree_id,
|
||||
AttrOwner::TopLevel,
|
||||
AttrOwner::ModItem(module_id.into()),
|
||||
&cfg,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue