Skip to content

Commit a2bf15e

Browse files
committed
Filter out false positive errors
1 parent be6f8e2 commit a2bf15e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

crates/rust-analyzer/src/cli/analysis_stats.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,11 @@ impl flags::AnalysisStats {
453453
err_idx += 7;
454454
let err_code = &err[err_idx..err_idx + 4];
455455
match err_code {
456-
"0282" => continue, // Byproduct of testing method
457-
"0277" if generated.contains(&todo) => continue, // See https://github.com/rust-lang/rust/issues/69882
456+
"0282" | "0283" => continue, // Byproduct of testing method
457+
"0277" | "0308" if generated.contains(&todo) => continue, // See https://github.com/rust-lang/rust/issues/69882
458+
// FIXME: In some rare cases `AssocItem::container_or_implemented_trait` returns `None` for trait methods.
459+
// Generated code is valid in case traits are imported
460+
"0599" if err.contains("the following trait is implemented but not in scope") => continue,
458461
_ => (),
459462
}
460463
bar.println(err);

0 commit comments

Comments
 (0)