c2rust
c2rust copied to clipboard
Use raw identifier for reserved keywords
Resolves #279
Unfortunately, we cannot use a raw identifier for all keywords see the comment here.
Signed-off-by: David McNeil [email protected]
@davidMcneil I've fixed the problem that caused Azure pipelines to fail. Can you rebase your PR on top of master?
@thedataking I rebased, but it is still failing. It looks like there is a problem reading this token?
Correct, David that the github actions fails because of the secret token. I turned off actions on forked PRs for that reason so we can ignore that failure. If Azure Pipelines testing succeeds and Andrei is happy, we can can merge this PR.
Should be this PR rebased and updated? @davidMcneil
If I'm reading the code correctly (which I might not be, it is late in the evening) this will not handle the case I ran into where a C file had a name starting with a number:
error: expected identifier, found `3DSP`
--> c2rust-lib.rs:40:9
|
40 | pub mod 3DSP;
| ^^^^ expected identifier
I'm not sure if that would be a separate PR or should be handled here.