We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following two programs are translated, but don't compile for the same reason: they use variable and variant names that are keywords in Rust.
void foo(int box) { box++; } void bar() { foo(1); }
typedef enum { false, true } boolean; void foo(boolean bar) { } void bar() { foo(false); }
The text was updated successfully, but these errors were encountered:
It looks like as is also not renamed:
as
// example.c int main() { int as = 23; return 0; }
// example.rs fn main() { let ret = unsafe { _c_main() }; ::std::process::exit(ret); } #[no_mangle] pub unsafe extern fn _c_main() -> i32 { let mut as : i32 = 23i32; 0i32 }
The rust snippet will not compile, fails with:
expected identifier, found keyword `as`
Sorry, something went wrong.
Add rename rules for 'as', 'box', 'true', & 'false'
311663f
Fixes jameysharp#156 Signed-off-by: Jadon Fowler <[email protected]>
The patch I PR'd should work fine. I tested as_ and it was good to go, so I assume the rest of them would be too.
as_
No branches or pull requests
The following two programs are translated, but don't compile for the same reason: they use variable and variant names that are keywords in Rust.
The text was updated successfully, but these errors were encountered: