mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: Diagnose everything in nested items, not just def diagnostics
This commit is contained in:
parent
723d799ec1
commit
498f39eae2
4 changed files with 22 additions and 33 deletions
|
@ -1536,9 +1536,7 @@ impl DefWithBody {
|
|||
let (body, source_map) = db.body_with_source_map(self.into());
|
||||
|
||||
for (_, def_map) in body.blocks(db.upcast()) {
|
||||
for diag in def_map.diagnostics() {
|
||||
emit_def_diagnostic(db, acc, diag);
|
||||
}
|
||||
Module { id: def_map.module_id(DefMap::ROOT) }.diagnostics(db, acc);
|
||||
}
|
||||
|
||||
for diag in source_map.diagnostics() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue