I’m not sure what you mean by this: “Writing code in Rust does not generate safe code.”
I mean philosophically you could say there is no safe code, but then what’s the point of any language improvement.
Perhaps you mean that Rust has unsafe, which allows you to write unsafe code in Rust. But technically that term is reserved for the developer to make a claim that though the compiler can’t determine the safety of this code, the developer is claiming it is safe.
Then there is safe Rust, if you write safe Rust, the guarantees that the program output is safe are pretty high. Given that no software is devoid of bugs, it’s obviously not 100%.
So do you have a specific argument your making about why Rust is not safe? Or is it a general comment about software?
Edit: I suppose you could be pedantic in that rustc doesn’t generate code, but technically it does, mir and then llvmir. That code then gets compiled to platform specific binaries.