mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 19:17:12 +00:00
Move child_by_source from hir-def to hir
This commit is contained in:
parent
8244f30eff
commit
70348faf2b
9 changed files with 88 additions and 90 deletions
|
|
@ -382,7 +382,7 @@ pub fn semantic_diagnostics(
|
|||
// A bunch of parse errors in a file indicate some bigger structural parse changes in the
|
||||
// file, so we skip semantic diagnostics so we can show these faster.
|
||||
Some(m) => {
|
||||
if !db.parse_errors(file_id).as_deref().is_some_and(|es| es.len() >= 16) {
|
||||
if db.parse_errors(file_id).as_deref().is_none_or(|es| es.len() < 16) {
|
||||
m.diagnostics(db, &mut diags, config.style_lints);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue