Skip to content

Commit

Permalink
Show which test case was found to be meaningless
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 22, 2024
1 parent 822e806 commit 1f2028f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ui-fulldeps/pprust-parenthesis-insertion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ fn main() -> ExitCode {
let psess = &ParseSess::new(vec![rustc_parse::DEFAULT_LOCALE_RESOURCE]);

for &source_code in EXPRS {
let expr = parse_expr(psess, source_code).unwrap();
let Some(expr) = parse_expr(psess, source_code) else {
panic!("Failed to parse original test case: {source_code}");
};

// Check for FALSE POSITIVE: pretty-printer inserting parentheses where not needed.
// Pseudocode:
Expand Down

0 comments on commit 1f2028f

Please sign in to comment.