Fix unconfigured diagnostic being attached to the wrong file for modules

This commit is contained in:
Lukas Wirth 2024-08-07 15:07:09 +02:00
parent ffd28e6ee9
commit e3e31ce199
2 changed files with 26 additions and 2 deletions

View file

@ -2003,7 +2003,7 @@ impl ModCollector<'_, '_> {
Err(cfg) => {
self.emit_unconfigured_diagnostic(
self.tree_id,
AttrOwner::TopLevel,
AttrOwner::ModItem(module_id.into()),
&cfg,
);
}