I learned today that POSIX specifies a tool designed to assist you in reviewing & modifying LLM-generated code. In typical Unix fashion, they shortened "reviewing & modifying" to just two letters:
$ rm code.rs
It even has command-line options to [r]ecursively [f]ix whole directories of LLM-generated code:
$ rm -rf project/