Skip to content

Commit 6027255

Browse files
committed
Ignore crashes dir
1 parent 8f49e41 commit 6027255

10 files changed

+6
-38
lines changed

tests/compile-test.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ const RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS: &[&str] = &[
345345
"cast_size_32bit.rs",
346346
"char_lit_as_u8.rs",
347347
"cmp_owned/without_suggestion.rs",
348-
"crashes/ice-6250.rs",
349-
"crashes/ice-6251.rs",
350348
"dbg_macro.rs",
351349
"deref_addrof_double_trigger.rs",
352350
"doc/unbalanced_ticks.rs",
@@ -388,6 +386,9 @@ fn check_rustfix_coverage() {
388386
assert!(RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS.iter().is_sorted_by_key(Path::new));
389387

390388
for rs_path in missing_coverage_contents.lines() {
389+
if Path::new(rs_path).starts_with("tests/ui/crashes") {
390+
continue;
391+
}
391392
let filename = Path::new(rs_path).strip_prefix("tests/ui/").unwrap();
392393
assert!(
393394
RUSTFIX_COVERAGE_KNOWN_EXCEPTIONS

tests/ui/crashes/ice-7169.fixed

-12
This file was deleted.

tests/ui/crashes/ice-7169.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// run-rustfix
2-
#![allow(dead_code)]
3-
41
#[derive(Default)]
52
struct A<T> {
63
a: Vec<A<T>>,

tests/ui/crashes/ice-7169.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: redundant pattern matching, consider using `is_ok()`
2-
--> $DIR/ice-7169.rs:11:12
2+
--> $DIR/ice-7169.rs:8:12
33
|
44
LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
55
| -------^^^^^-------------------------------------- help: try this: `if Ok::<_, ()>(A::<String>::default()).is_ok()`

tests/ui/crashes/ice-8250.fixed

-7
This file was deleted.

tests/ui/crashes/ice-8250.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// run-rustfix
21
fn _f(s: &str) -> Option<()> {
32
let _ = s[1..].splitn(2, '.').next()?;
43
Some(())

tests/ui/crashes/ice-8250.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: unnecessary use of `splitn`
2-
--> $DIR/ice-8250.rs:3:13
2+
--> $DIR/ice-8250.rs:2:13
33
|
44
LL | let _ = s[1..].splitn(2, '.').next()?;
55
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s[1..].split('.')`

tests/ui/crashes/ice-8821.fixed

-9
This file was deleted.

tests/ui/crashes/ice-8821.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// run-rustfix
21
#![warn(clippy::let_unit_value)]
32

43
fn f() {}

tests/ui/crashes/ice-8821.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this let-binding has unit value
2-
--> $DIR/ice-8821.rs:8:5
2+
--> $DIR/ice-8821.rs:7:5
33
|
44
LL | let _: () = FN();
55
| ^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `FN();`

0 commit comments

Comments
 (0)