Add long error explanation for E0575#65334
Conversation
|
Some changes occurred in diagnostic error codes |
|
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
|
☔ The latest upstream changes (presumably #65454) made this pull request unmergeable. Please resolve the merge conflicts. |
6d49b11 to
585719d
Compare
|
r? @kinnison |
kinnison
left a comment
There was a problem hiding this comment.
Two possible language tweaks, otherwise good IMO.
src/librustc_resolve/error_codes.rs
Outdated
There was a problem hiding this comment.
I think 'other' rather than 'else' would be better:
Something other than a type or an associated type was given.
src/librustc_resolve/error_codes.rs
Outdated
There was a problem hiding this comment.
I feel the repetition of 'in both cases' is clumsy. Perhaps:
In both cases we're declaring a variable (called
_) and we're
stating what we believe to be a type. However, .......
?
585719d to
367cda4
Compare
|
Updated. |
|
@bors: r=kinnison |
|
📌 Commit 367cda4 has been approved by |
…-E0575, r=kinnison Add long error explanation for E0575 Part of rust-lang#61137.
|
☔ The latest upstream changes (presumably #65234) made this pull request unmergeable. Please resolve the merge conflicts. |
367cda4 to
21d9258
Compare
|
And here we go again! @bors: r=kinnison |
|
📌 Commit 21d9258 has been approved by |
…-E0575, r=kinnison Add long error explanation for E0575 Part of rust-lang#61137.
…-E0575, r=kinnison Add long error explanation for E0575 Part of rust-lang#61137.
…-E0575, r=kinnison Add long error explanation for E0575 Part of rust-lang#61137.
…-E0575, r=kinnison Add long error explanation for E0575 Part of rust-lang#61137.
Rollup of 19 pull requests Successful merges: - #65016 (Always inline `mem::{size_of,align_of}` in debug builds) - #65197 (Prepare `MutVisitor`s to handle interned projections) - #65201 (Disable Go and OCaml bindings when building LLVM) - #65334 (Add long error explanation for E0575) - #65364 (Collect occurrences of empty blocks for mismatched braces diagnostic) - #65455 (Avoid unnecessary `TokenTree` to `TokenStream` conversions) - #65472 (Use a sharded dep node to dep node index map) - #65480 (Speed up `LexicalResolve::expansion()`) - #65493 (Add long error explanation for E0584) - #65496 (properly document panics in div_euclid and rem_euclid) - #65498 (Plugins deprecation: don’t suggest simply removing the attribute) - #65508 (add option to ping llvm ice-breakers to triagebot) - #65511 (save-analysis: Nest tables when processing impl block definitions) - #65513 (reorder fmt docs for more clarity) - #65532 (doc: make BitSet intro more short) - #65535 (rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.) - #65540 (show up some extra info when t!() fails) - #65549 (Fix left/right shift typo in wrapping rotate docs) - #65552 (Clarify diagnostics when using `~` as a unary op) Failed merges: - #65390 (Add long error explanation for E0576) - #65434 (Add long error explanation for E0577) - #65471 (Add long error explanation for E0578) r? @ghost
Part of #61137.