]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/src/driver/jit.rs
Rollup merge of #105744 - Ezrashaw:e0158-clarity, r=GuillaumeGomez
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 16 Dec 2022 13:02:18 +0000 (14:02 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 13:02:18 +0000 (14:02 +0100)
commit3b9aea967f69fd96fce7a2861d953fe10004ef5f
tree030b4219bde312e6ab53f255c4d6b0093de90650
parent22797ef6b23d7e6ca88c7d1401de4cfb18747f80
parentfded03ee2d421359e49a69b6afa7d7f65ef9f597
Rollup merge of #105744 - Ezrashaw:e0158-clarity, r=GuillaumeGomez

Rewrite `E0158` error-code docs for clarity

Fixes #105585.

The `E0158` error-code docs are unclear. It doesn't explain all three different variants of the error and doesn't explain *why* the error occurs. This PR cleans it up a bit and brings it properly into line with [RFC1567](https://rust-lang.github.io/rfcs/1567-long-error-codes-explanation-normalization.html).

I'm a first time Rust contributor so I've probably not got it quite right. I also haven't run the whole build process because I assume that my minor docs changes shouldn't break everything.