← Back to context

Comment by david-gpu

11 days ago

Let us not conflate a bug in an implementation (rustc) with a defect in the language (Rust).

AFAIK there isn't a language spec. Rustc is the language for now.

Which clause of the language specification is being violated?

  • Lifetimes can be effectively erased via covariant assignment. It's in the title. Even a beginner could understand these assignments are not in spec? Are you just being contrary to be contrary?

    • If that's the definition you're using, then C is also a safe programming language. In fact, C is even safer, because it actually does have a specification that lists all the invariants that the programmer has to uphold themselves because the compiler doesn't check them.

      1 reply →