Skip to content

Commit de02dd9

Browse files
committed
Adhere to tidy script
1 parent 4a938b5 commit de02dd9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3619,7 +3619,8 @@ impl<'a> Parser<'a> {
36193619
let (iattrs, body) = self.parse_inner_attrs_and_block()?;
36203620
attrs.extend(iattrs);
36213621
if self.eat_keyword(keywords::Catch) {
3622-
let mut error = self.struct_span_err(self.prev_span, "`try {} catch` is not a valid syntax");
3622+
let mut error = self.struct_span_err(self.prev_span,
3623+
"`try {} catch` is not a valid syntax");
36233624
error.help("try using `match` on the result of the `try` block instead");
36243625
Err(error)
36253626
} else {

src/test/ui/try-block/try-block-catch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![feature(try_blocks)]
44

55
fn main() {
6-
let res: Option<bool> = try {
7-
true
8-
} catch { }; //~ ERROR `try {} catch` is not a valid syntax
6+
let res: Option<bool> = try {
7+
true
8+
} catch { }; //~ ERROR `try {} catch` is not a valid syntax
99
}

0 commit comments

Comments
 (0)