Skip to content

Commit 676d3d1

Browse files
committed
fix: Generate parantheses around test thread cancellation panic message
1 parent 58dd344 commit 676d3d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mutest-emit/src/codegen/cancellation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn mk_test_thread_cancel_expr(sp: Span) -> Box<ast::Expr> {
1818
path: path::panic(sp),
1919
args: Box::new(ast::DelimArgs {
2020
dspan: ast::tokenstream::DelimSpan::from_single(sp),
21-
delim: ast::token::Delimiter::Brace,
21+
delim: ast::token::Delimiter::Parenthesis,
2222
tokens: ast::mk::token_stream(vec![
2323
ast::mk::tt_token_alone(sp, ast::TokenKind::lit(ast::token::LitKind::Str, Symbol::intern(panic_message), None)),
2424
]),

0 commit comments

Comments
 (0)