rust/compiler/rustc_passes/src
Dylan DPC 32471a7035
Rollup merge of #102110 - CleanCut:migrate_rustc_passes_diagnostics, r=davidtwco
Migrate rustc_passes diagnostics

Picks up abandoned work from https://github.com/rust-lang/rust/pull/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](https://github.com/rust-lang/rust/pull/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``
2022-10-12 11:11:23 +05:30
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Rollup merge of #102110 - CleanCut:migrate_rustc_passes_diagnostics, r=davidtwco 2022-10-12 11:11:23 +05:30
check_const.rs Remove code that was removed in master, and the corresponding diagnostic 2022-10-07 13:19:28 -06:00
dead.rs migrate dead.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
debugger_visualizer.rs migrate debugger_visualizer.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
diagnostic_items.rs make up your mind, rustfmt 2022-10-10 10:06:52 -06:00
entry.rs migrate entry.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
errors.rs avoid string dispatch in fluent 2022-10-07 14:39:09 -06:00
hir_id_validator.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
hir_stats.rs Rename AssocItemKind::TyAlias to AssocItemKind::Type 2022-10-10 02:31:37 +00:00
lang_items.rs avoid string dispatch in fluent 2022-10-07 13:19:28 -06:00
layout_test.rs First batch of review feedback changes from #102110 2022-10-07 13:19:28 -06:00
lib.rs Add lint for diagnostic migration 2022-10-07 13:19:26 -06:00
lib_features.rs migrate lib_features.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
liveness.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
loops.rs migrate loops.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
naked_functions.rs migrate naked_functions.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
reachable.rs ImplItemKind::TyAlias => ImplItemKind::Type 2022-10-09 07:09:57 +00:00
stability.rs migrate stability.rs to translateable diagnostics 2022-10-07 13:19:27 -06:00
upvars.rs Rename local_did to def_id 2022-07-29 18:26:10 -04:00
weak_lang_items.rs use cherry-picked commit from #100754 to emit note without error 2022-10-07 13:19:27 -06:00