Skip to content

Commit 8ca16dd

Browse files
committed
panictry!(..) -> .unwrap()
1 parent 1a26fdf commit 8ca16dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::{ast, panictry};
1+
use crate::ast;
22
use crate::parse::{PResult, source_file_to_stream};
33
use crate::parse::new_parser_from_source_str;
44
use crate::parse::parser::Parser;
@@ -28,7 +28,7 @@ crate fn with_error_checking_parse<'a, T, F>(s: String, ps: &'a ParseSess, f: F)
2828
F: FnOnce(&mut Parser<'a>) -> PResult<'a, T>,
2929
{
3030
let mut p = string_to_parser(&ps, s);
31-
let x = panictry!(f(&mut p));
31+
let x = f(&mut p).unwrap();
3232
p.sess.span_diagnostic.abort_if_errors();
3333
x
3434
}

0 commit comments

Comments
 (0)