Skip to content

Commit 376bd12

Browse files
authored
transpile: remove invalid Punct::new(' ') in fn convert_asm and update proc-macro2 (#1244)
`' '` is not a valid punctuation, and newer versions of `proc_macro2` don't allow it. However, we don't seem to need the space here at all, as `zstd` (from `c2rust-testsuite`) still transpiles and compiles successfully without it. This also updates to `proc-macro` `1.0.95` (from `1.0.86`) to test this. #1243 should be able to be merged after this.
2 parents 0757fe4 + c1a4a63 commit 376bd12

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

c2rust-transpile/src/translator/assembly.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,6 @@ impl<'c> Translation<'c> {
966966
tokens.push(TokenTree::Punct(Punct::new(',', Alone)));
967967
let result = mk().call_expr(mk().ident_expr("out"), vec![mk().lit_expr(clobber)]);
968968
push_expr(&mut tokens, result);
969-
tokens.push(TokenTree::Punct(Punct::new(' ', Alone)));
970969
push_expr(&mut tokens, mk().ident_expr("_"));
971970
}
972971

0 commit comments

Comments
 (0)