We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 822e806 commit 1f2028fCopy full SHA for 1f2028f
tests/ui-fulldeps/pprust-parenthesis-insertion.rs
@@ -166,7 +166,9 @@ fn main() -> ExitCode {
166
let psess = &ParseSess::new(vec![rustc_parse::DEFAULT_LOCALE_RESOURCE]);
167
168
for &source_code in EXPRS {
169
- let expr = parse_expr(psess, source_code).unwrap();
+ let Some(expr) = parse_expr(psess, source_code) else {
170
+ panic!("Failed to parse original test case: {source_code}");
171
+ };
172
173
// Check for FALSE POSITIVE: pretty-printer inserting parentheses where not needed.
174
// Pseudocode:
0 commit comments