Uh oh!
There was an error while loading. Please reload this page.
Cleanup librustc mir err codes - #65265
Conversation
rust-highfive
commented
Oct 10, 2019
Some changes occurred in diagnostic error codes |
rust-highfive
commented
Oct 10, 2019
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
Mark-Simulacrum
commented
Oct 10, 2019
Can you give rational for sorting the error codes? To be frank, it just seems like an excellent way to cause merge conflicts and is otherwise useless - unless I'm missing something. If we had only a couple error codes it might make more sense but I usually can't fit a single error code explanation on screen at a time, much less see two at once to know that they're sorted. |
GuillaumeGomez
commented
Oct 10, 2019
Doesn't have much interest in itself. It's just more "clean". However, if you go through missing error codes like I'm currently doing, it helps a lot because generally the error codes close to the one you're writing have pretty close examples that you can use. All depending on the point of view. :) |
Mark-Simulacrum
commented
Oct 10, 2019
r=me with the box syntax removed |
GuillaumeGomez
commented
Oct 10, 2019
I couldn't find out how to get the error without the box syntax (which is very strange). |
Mark-Simulacrum
commented
Oct 10, 2019
I guess you can technically get it via |
993d3df to
06a02b5CompareGuillaumeGomez
commented
Oct 10, 2019
Nicely found! Thanks a lot for the tip! @bors: r=Mark-Simulacrum |
bors
commented
Oct 10, 2019
📌 Commit 06a02b5 has been approved by |
…-err-codes, r=Mark-Simulacrum Cleanup librustc mir err codes Three things are done in this PR: * Sort error codes * Uncomment an error code long error explanation (they should **never** be commented) * Unify explanations
Rollup of 16 pull requests Successful merges: - rust-lang#64337 (libstd: Fix typos in doc) - rust-lang#64986 (Function pointers as const generic arguments) - rust-lang#65048 (Added doc about behavior of extend on HashMap) - rust-lang#65191 (Add some regression tests) - rust-lang#65200 (Add ?Sized bound to a supertrait listing in E0038 error documentation) - rust-lang#65205 (Add long error explanation for E0568) - rust-lang#65240 (self-profiling: Add events for metadata loading (plus a small dep-tracking optimization)) - rust-lang#65248 (Suggest `if let` on `let` refutable binding) - rust-lang#65252 (expand: Simplify expansion of derives) - rust-lang#65263 (Deduplicate is_{freeze,copy,sized}_raw) - rust-lang#65265 (Cleanup librustc mir err codes) - rust-lang#65266 (Mark Path::join as must_use) - rust-lang#65276 (Don't cc rust-lang/compiler for toolstate changes) - rust-lang#65277 (Query generator kind for error reporting) - rust-lang#65283 (stability: Do not use `buffer_lint` after lowering to HIR) - rust-lang#65289 (Fix suggested bound addition diagnostic) Failed merges: r? @ghost
Rollup of 16 pull requests Successful merges: - rust-lang#64337 (libstd: Fix typos in doc) - rust-lang#64986 (Function pointers as const generic arguments) - rust-lang#65048 (Added doc about behavior of extend on HashMap) - rust-lang#65191 (Add some regression tests) - rust-lang#65200 (Add ?Sized bound to a supertrait listing in E0038 error documentation) - rust-lang#65205 (Add long error explanation for E0568) - rust-lang#65240 (self-profiling: Add events for metadata loading (plus a small dep-tracking optimization)) - rust-lang#65248 (Suggest `if let` on `let` refutable binding) - rust-lang#65252 (expand: Simplify expansion of derives) - rust-lang#65263 (Deduplicate is_{freeze,copy,sized}_raw) - rust-lang#65265 (Cleanup librustc mir err codes) - rust-lang#65266 (Mark Path::join as must_use) - rust-lang#65276 (Don't cc rust-lang/compiler for toolstate changes) - rust-lang#65277 (Query generator kind for error reporting) - rust-lang#65283 (stability: Do not use `buffer_lint` after lowering to HIR) - rust-lang#65289 (Fix suggested bound addition diagnostic) Failed merges: r? @ghost
…-err-codes, r=Mark-Simulacrum Cleanup librustc mir err codes Three things are done in this PR: * Sort error codes * Uncomment an error code long error explanation (they should **never** be commented) * Unify explanations
Centril
commented
Oct 14, 2019
This seems to reproduce diffs under |
06a02b5 to
d4e3e6bCompareGuillaumeGomez
commented
Oct 15, 2019
Re-ran the tests so let's r+ it again. @bors: r=Mark-Simulacrum |
bors
commented
Oct 15, 2019
📌 Commit d4e3e6b has been approved by |
…-err-codes, r=Mark-Simulacrum Cleanup librustc mir err codes Three things are done in this PR: * Sort error codes * Uncomment an error code long error explanation (they should **never** be commented) * Unify explanations
Rollup of 14 pull requests Successful merges: - #64603 (Reducing spurious unused lifetime warnings.) - #64623 (Remove last uses of gensyms) - #65235 (don't assume we can *always* find a return type hint in async fn) - #65242 (Fix suggestion to constrain trait for method to be found) - #65265 (Cleanup librustc mir err codes) - #65293 (Optimize `try_expand_impl_trait_type`) - #65307 (Try fix incorrect "explicit lifetime name needed") - #65308 (Add long error explanation for E0574) - #65353 (save-analysis: Don't ICE when resolving qualified type paths in struct members) - #65389 (Return `false` from `needs_drop` for all zero-sized arrays.) - #65402 (Add troubleshooting section to PGO chapter in rustc book.) - #65425 (Optimize `BitIter`) - #65438 (Organize `never_type` tests) - #65444 (Implement AsRef<[T]> for List<T>) Failed merges: - #65390 (Add long error explanation for E0576) r? @ghost
Three things are done in this PR: