Migrate rustc_passes diagnostics - #102110
Conversation
|
r? @eholk (rust-highfive has picked a reviewer for you, use r? to override) |
|
I was working on some files from the rustc_passes on this #101815. |
This comment was marked as resolved.
This comment was marked as resolved.
|
@diegooliveira Great! Should we merge those changes into this PR? Do you want to collaborate here? |
This comment was marked as outdated.
This comment was marked as outdated.
|
I rebased on |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
|
Rebased again to resolve new conflicts. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
There was a problem hiding this comment.
This was honestly a bit brutal, especially as I ended up doing the entire thing by myself.
A couple of the errors were massive bits of code that assembled a huge, complicated error and required tons of refactoring and large custom IntoDiagnostic implementations.
|
r? @davidtwco |
|
@davidtwco Ready for a re-review. |
|
@bors r+ |
…nostics, r=davidtwco Migrate rustc_passes diagnostics Picks up abandoned work from rust-lang#100870 I would like to do this collaboratively, as there is a lot of work! Here's the process: - Comment below that you are willing to help and I will add you as a collaborator to my `rust` fork (that gives you write access) - Indicate which file/task you would like to work on (so we don't duplicate work) from the list below - Do the work, push up a commit, comment that you're done with that file/task - Repeat until done 😄 ### Files to Migrate (in `compiler/rustc_passes/src/`) - [x] check_attr.rs `@CleanCut` - [x] check_const.rs `@CleanCut` - [x] dead.rs `@CleanCut` - [x] debugger_visualizer.rs `@CleanCut` - [x] diagnostic_items.rs `@CleanCut` - [x] entry.rs `@CleanCut` - [x] lang_items.rs `@CleanCut` - [x] layout_test.rs `@CleanCut` - [x] lib_features.rs `@CleanCut` - [x] ~liveness.rs~ `@CleanCut` Nothing to do - [x] loops.rs `@CleanCut` - [x] naked_functions.rs `@CleanCut` - [x] stability.rs `@CleanCut` - [x] weak_lang_items.rs `@CleanCut` ### Tasks - [x] Rebase on current `master` `@CleanCut` - [x] Review work from [the earlier PR](rust-lang#100870) and make sure it all looks good - [x] compiler/rustc_error_messages/locales/en-US/passes.ftl `@CleanCut` - [x] compiler/rustc_passes/src/check_attr.rs `@CleanCut` - [x] compiler/rustc_passes/src/errors.rs `@CleanCut` - [x] compiler/rustc_passes/src/lang_items.rs `@CleanCut` - [x] compiler/rustc_passes/src/lib.rs `@CleanCut` - [x] compiler/rustc_passes/src/weak_lang_items.rs `@CleanCut`
Rollup of 8 pull requests Successful merges: - rust-lang#102110 (Migrate rustc_passes diagnostics) - rust-lang#102187 (Use correct location for type tests in promoted constants) - rust-lang#102239 (Move style guide to rust-lang/rust) - rust-lang#102578 (Panic for invalid arguments of `{integer primitive}::ilog{,2,10}` in all modes) - rust-lang#102811 (Use memset to initialize readbuf) - rust-lang#102890 (Check representability in adt_sized_constraint) - rust-lang#102913 (unify `IsPattern` and `IsImport` enum in `show_candidates`) - rust-lang#102924 (rustdoc: remove unused classes from sidebar links) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Picks up abandoned work from #100870
I would like to do this collaboratively, as there is a lot of work! Here's the process:
rustfork (that gives you write access)Files to Migrate (in
compiler/rustc_passes/src/)liveness.rs@CleanCut Nothing to doTasks
master@CleanCut