mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Filter out false positive errors
This commit is contained in:
parent
be6f8e2648
commit
a2bf15eede
1 changed files with 5 additions and 2 deletions
|
@ -453,8 +453,11 @@ impl flags::AnalysisStats {
|
||||||
err_idx += 7;
|
err_idx += 7;
|
||||||
let err_code = &err[err_idx..err_idx + 4];
|
let err_code = &err[err_idx..err_idx + 4];
|
||||||
match err_code {
|
match err_code {
|
||||||
"0282" => continue, // Byproduct of testing method
|
"0282" | "0283" => continue, // Byproduct of testing method
|
||||||
"0277" if generated.contains(&todo) => continue, // See https://github.com/rust-lang/rust/issues/69882
|
"0277" | "0308" if generated.contains(&todo) => continue, // See https://github.com/rust-lang/rust/issues/69882
|
||||||
|
// FIXME: In some rare cases `AssocItem::container_or_implemented_trait` returns `None` for trait methods.
|
||||||
|
// Generated code is valid in case traits are imported
|
||||||
|
"0599" if err.contains("the following trait is implemented but not in scope") => continue,
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
bar.println(err);
|
bar.println(err);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue