mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: refactor NoSuchField diagnostic
This commit is contained in:
parent
d3621eeb02
commit
7166e8549b
5 changed files with 300 additions and 314 deletions
|
@ -1077,7 +1077,7 @@ impl Function {
|
|||
match d {
|
||||
hir_ty::InferenceDiagnostic::NoSuchField { expr } => {
|
||||
let field = source_map.field_syntax(*expr);
|
||||
sink.push(NoSuchField { file: field.file_id, field: field.value })
|
||||
acc.push(NoSuchField { field }.into())
|
||||
}
|
||||
hir_ty::InferenceDiagnostic::BreakOutsideOfLoop { expr } => {
|
||||
let ptr = source_map
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue