mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-18 16:20:18 +00:00
Add diagnostic for filter_map followed by next
This commit is contained in:
parent
eab5db20ed
commit
1316422a7c
5 changed files with 150 additions and 15 deletions
|
@ -5,5 +5,14 @@ pub use hir_expand::diagnostics::{
|
|||
};
|
||||
pub use hir_ty::diagnostics::{
|
||||
IncorrectCase, MismatchedArgCount, MissingFields, MissingMatchArms, MissingOkOrSomeInTailExpr,
|
||||
NoSuchField, RemoveThisSemicolon,
|
||||
NoSuchField, RemoveThisSemicolon, ReplaceFilterMapNextWithFindMap,
|
||||
};
|
||||
|
||||
// PHIL:
|
||||
// hir/src/diagnostics.rs - just pub uses the type from hir_ty::diagnostics (DONE)
|
||||
// hir_ty/src/diagnostics.rs - defines the type (DONE)
|
||||
// hir_ty/src/diagnostics.rs - plus a test (DONE) <--- one example found, need to copy the not-applicable tests from the assist version
|
||||
// ide/src/diagnostics.rs - define handler for when this diagnostic is raised (DONE)
|
||||
|
||||
// ide/src/diagnostics/fixes.rs - pulls in type from hir, and impls DiagnosticWithFix (TODO)
|
||||
// hir_ty/src/diagnostics/expr.rs - do the real work (TODO)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue