Commit c82c805
authored
Rollup merge of #151558 - mejrs:port_on_unimplemented, r=jdonszelmann,jonathanbrouwer
Port diagnostic attributes
*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/151558)*
Ports all the diagnostic attributes: on_const, on_unimplemented and rustc_on_unimplemented.
I thought about migrating them one by one but that would leave a lot of code duplicated. So this PR looks big but it's mostly a lot of moving code around with slight modifications.
r? @JonathanBrouwer
cc @jdonszelmann feel free to review if you want, not sure which of you wants it.51 files changed
Lines changed: 1632 additions & 2068 deletions
File tree
- compiler
- rustc_attr_parsing
- src
- attributes
- diagnostic
- rustc_error_codes/src/error_codes
- rustc_hir_analysis/src/check
- rustc_hir_typeck/src/method
- rustc_hir/src
- attrs
- rustc_lint_defs/src
- rustc_lint/src
- early
- rustc_passes/src
- rustc_span/src
- rustc_trait_selection
- src
- error_reporting/traits
- tests
- incremental
- ui
- attributes
- diagnostic_namespace
- on_const
- auxiliary
- on_unimplemented
- on-unimplemented
- unpretty
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3548 | 3548 | | |
3549 | 3549 | | |
3550 | 3550 | | |
| 3551 | + | |
3551 | 3552 | | |
3552 | 3553 | | |
3553 | 3554 | | |
| |||
4682 | 4683 | | |
4683 | 4684 | | |
4684 | 4685 | | |
4685 | | - | |
4686 | 4686 | | |
4687 | 4687 | | |
4688 | 4688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments