mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Decouple more
This commit is contained in:
parent
35f57f35ec
commit
d569869f7a
5 changed files with 41 additions and 40 deletions
|
@ -647,7 +647,7 @@ impl Function {
|
|||
|
||||
pub fn diagnostics(self, db: &impl HirDatabase, sink: &mut DiagnosticSink) {
|
||||
let infer = self.infer(db);
|
||||
infer.add_diagnostics(db, self, sink);
|
||||
infer.add_diagnostics(db, self.id, sink);
|
||||
let mut validator = ExprValidator::new(self, infer, sink);
|
||||
validator.validate_body(db);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue