Skip to content

Commit

Permalink
Categorize new parse failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 14, 2023
1 parent fca8c7b commit 6032918
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions tests/repo/mod.rs
Expand Up @@ -14,16 +14,10 @@ const REVISION: &str = "22f247c6f3ed388cb702d01c2ff27da658a8b353";

#[rustfmt::skip]
static EXCLUDE_FILES: &[&str] = &[
// TODO
"src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0132_box_expr.rs",
"src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0132_box_expr.rs",
// TODO: `x.0. await`
"src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0137_await_expr.rs",
"src/tools/rustfmt/tests/source/issue-4689/one.rs",
"src/tools/rustfmt/tests/source/issue-4689/two.rs",
"src/tools/rustfmt/tests/source/issue_1306.rs",
"src/tools/rustfmt/tests/target/issue-4689/one.rs",
"src/tools/rustfmt/tests/target/issue-4689/two.rs",
"src/tools/rustfmt/tests/target/issue_1306.rs",

// TODO: `const move || {}`
"tests/ui/rfc-2632-const-trait-impl/const-closure-parse-not-item.rs",

// Compile-fail expr parameter in const generic position: f::<1 + 2>()
Expand Down Expand Up @@ -67,6 +61,8 @@ static EXCLUDE_FILES: &[&str] = &[
"src/tools/rustfmt/tests/source/existential_type.rs",
"src/tools/rustfmt/tests/source/fn-simple.rs",
"src/tools/rustfmt/tests/source/fn_args_layout-vertical.rs",
"src/tools/rustfmt/tests/source/issue-4689/one.rs",
"src/tools/rustfmt/tests/source/issue-4689/two.rs",
"src/tools/rustfmt/tests/source/paths.rs",
"src/tools/rustfmt/tests/source/structs.rs",
"src/tools/rustfmt/tests/target/attrib.rs",
Expand All @@ -75,6 +71,8 @@ static EXCLUDE_FILES: &[&str] = &[
"src/tools/rustfmt/tests/target/fn-simple.rs",
"src/tools/rustfmt/tests/target/fn.rs",
"src/tools/rustfmt/tests/target/fn_args_layout-vertical.rs",
"src/tools/rustfmt/tests/target/issue-4689/one.rs",
"src/tools/rustfmt/tests/target/issue-4689/two.rs",
"src/tools/rustfmt/tests/target/paths.rs",
"src/tools/rustfmt/tests/target/structs.rs",
"tests/codegen-units/item-collection/non-generic-closures.rs",
Expand All @@ -94,6 +92,9 @@ static EXCLUDE_FILES: &[&str] = &[
"src/tools/rustfmt/tests/source/type-ascription.rs",
"src/tools/rustfmt/tests/target/type-ascription.rs",

// Obsolete box syntax
"src/tools/rust-analyzer/crates/parser/test_data/parser/inline/ok/0132_box_expr.rs",

// Invalid unparenthesized range pattern inside slice pattern: `[1..]`
"tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs",

Expand Down Expand Up @@ -131,10 +132,12 @@ static EXCLUDE_FILES: &[&str] = &[
"src/tools/rustfmt/tests/source/configs/indent_style/block_call.rs",
"src/tools/rustfmt/tests/source/configs/use_try_shorthand/false.rs",
"src/tools/rustfmt/tests/source/configs/use_try_shorthand/true.rs",
"src/tools/rustfmt/tests/source/issue_1306.rs",
"src/tools/rustfmt/tests/source/try-conversion.rs",
"src/tools/rustfmt/tests/target/configs/indent_style/block_call.rs",
"src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs",
"src/tools/rustfmt/tests/target/issue-1681.rs",
"src/tools/rustfmt/tests/target/issue_1306.rs",
"tests/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs",
"tests/ui/editions/edition-keywords-2015-2015.rs",
"tests/ui/editions/edition-keywords-2015-2018.rs",
Expand Down

0 comments on commit 6032918

Please sign in to comment.