Dylan DPC 400f435c2d
Rollup merge of #98420 - davidtwco:translation-lint-fixes-and-more-migration, r=compiler-errors
translation: lint fix + more migration

- Unfortunately, the diagnostic lints are very broken and trigger much more often than they should. This PR corrects the conditional which checks if the function call being made is to a diagnostic function so that it returns in every intended case.
- The `rustc_lint_diagnostics` attribute is used by the diagnostic translation/struct migration lints to identify calls where non-translatable diagnostics or diagnostics outwith impls are being created. Any function used in creating a diagnostic should be annotated with this attribute so this PR adds the attribute to many more functions.
- Port the diagnostics from the `rustc_privacy` crate and enable the lints for that crate.

r? ``@compiler-errors``
2022-06-28 15:30:04 +05:30
..
2022-06-19 09:44:32 +02:00
2022-01-15 01:16:55 +00:00
2022-06-19 00:00:36 +02:00
2022-03-11 13:31:24 +11:00
2022-04-23 09:53:45 +02:00
2022-03-11 13:31:24 +11:00
2021-09-30 17:39:54 +02:00
2021-07-08 17:14:28 +02:00