Skip to content

Commit 3902ac2

Browse files
committed
transpile: Do not unwrap Paren in convert_expr
1 parent e5dbb16 commit 3902ac2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • c2rust-transpile/src/translator

c2rust-transpile/src/translator/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,12 +2933,12 @@ impl<'c> Translation<'c> {
29332933
let Located {
29342934
loc: src_loc,
29352935
kind: expr_kind,
2936-
} = &self.ast_context.index_unwrap_parens(expr_id);
2936+
} = &self.ast_context[expr_id];
29372937

29382938
trace!(
29392939
"Converting expr {:?}: {:?}",
29402940
expr_id,
2941-
self.ast_context.index_unwrap_parens(expr_id)
2941+
self.ast_context[expr_id]
29422942
);
29432943

29442944
if let Some(converted) = self.convert_const_macro_expansion(ctx, expr_id, override_ty)? {

0 commit comments

Comments
 (0)