upvote
LLMs outputting code that doesn't compile is the failure mode you want. Outputting wrong code that compiles is far worse.

Setting aside the problems of wrong but compiling code. Wrong and non-compiling code is also much easier to deal with. For training an LLM, you have an objective fitness function to detect compilation errors.

For using an LLM, you can embed the LLM itself in a larger system that checks it's output and either re-rolls on errors, or invokes something to fix the errors.

reply
If you use the stable version of Rust, it's stable. There's a very strong commitment from the Rust folks on that specific point.
reply
The only thing I see is the LLM not being aware of new features, so I have to specify the version rust.
reply