Re:Corrode: C to Rust translator written in Haskell
by moosingin3space on Friday July 08, 2016 @01:01PM
(#12056966)
I haven't used nightly much, what all does Clippy do?
Re:Corrode: C to Rust translator written in Haskell
by Manishearth on Friday July 08, 2016 @01:07PM
(#12057012)
It tells you about places where you can improve your code. Possible pitfalls, style issues, documentation issues, unidiomatic code, everything.
Its a developer tool so you can use rustup to switch to nightly to run clippy (and use stable otherwise) and not impose nightly on the rest of the people who use the project. We have plans for making clippy a tool that you can fetch via rustup without requiring nightly.
Re:Corrode: C to Rust translator written in Haskell
by shepmaster on Friday July 08, 2016 @02:24PM
(#12057639)
Check out Clippy online! Go do http://play.integer32.com/, paste in your code, click "Clippy".
But that actually could work! Clippy has a ton of lints that make your code more idiomatic, and rustfix basically takes diagnostic output and applies suggestions (still WIP).
Clippy is geared towards making human-written unidiomatic code better, so it might not catch some silly things in this tool's output but or certainly could be extended to do that.