Skip to content

Commit

Permalink
Ignore crashes dir
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed May 27, 2022
1 parent 8f49e41 commit 6027255
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 38 deletions.
5 changes: 3 additions & 2 deletions tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ const RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS: &[&str] = &[
"cast_size_32bit.rs",
"char_lit_as_u8.rs",
"cmp_owned/without_suggestion.rs",
"crashes/ice-6250.rs",
"crashes/ice-6251.rs",
"dbg_macro.rs",
"deref_addrof_double_trigger.rs",
"doc/unbalanced_ticks.rs",
Expand Down Expand Up @@ -388,6 +386,9 @@ fn check_rustfix_coverage() {
assert!(RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS.iter().is_sorted_by_key(Path::new));

for rs_path in missing_coverage_contents.lines() {
if Path::new(rs_path).starts_with("tests/ui/crashes") {
continue;
}
let filename = Path::new(rs_path).strip_prefix("tests/ui/").unwrap();
assert!(
RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS
Expand Down
12 changes: 0 additions & 12 deletions tests/ui/crashes/ice-7169.fixed

This file was deleted.

3 changes: 0 additions & 3 deletions tests/ui/crashes/ice-7169.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// run-rustfix
#![allow(dead_code)]

#[derive(Default)]
struct A<T> {
a: Vec<A<T>>,
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/crashes/ice-7169.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: redundant pattern matching, consider using `is_ok()`
--> $DIR/ice-7169.rs:11:12
--> $DIR/ice-7169.rs:8:12
|
LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
| -------^^^^^-------------------------------------- help: try this: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
Expand Down
7 changes: 0 additions & 7 deletions tests/ui/crashes/ice-8250.fixed

This file was deleted.

1 change: 0 additions & 1 deletion tests/ui/crashes/ice-8250.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// run-rustfix
fn _f(s: &str) -> Option<()> {
let _ = s[1..].splitn(2, '.').next()?;
Some(())
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/crashes/ice-8250.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: unnecessary use of `splitn`
--> $DIR/ice-8250.rs:3:13
--> $DIR/ice-8250.rs:2:13
|
LL | let _ = s[1..].splitn(2, '.').next()?;
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s[1..].split('.')`
Expand Down
9 changes: 0 additions & 9 deletions tests/ui/crashes/ice-8821.fixed

This file was deleted.

1 change: 0 additions & 1 deletion tests/ui/crashes/ice-8821.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// run-rustfix
#![warn(clippy::let_unit_value)]

fn f() {}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/crashes/ice-8821.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: this let-binding has unit value
--> $DIR/ice-8821.rs:8:5
--> $DIR/ice-8821.rs:7:5
|
LL | let _: () = FN();
| ^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `FN();`
Expand Down

0 comments on commit 6027255

Please sign in to comment.