diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-11 17:03:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 17:03:32 +0200 |
| commit | 8b49731211154fdf7ba9446feb21d31c24210950 (patch) | |
| tree | 91c0c7bedf7415c687ec0ec644600211f4c6384a /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | f279afb455bac1dfd362846eb5ce45d7f8d6f6ee (diff) | |
| parent | daf3c45531815e8015e8a508f2650fcfa166cf29 (diff) | |
| download | rust-8b49731211154fdf7ba9446feb21d31c24210950.tar.gz rust-8b49731211154fdf7ba9446feb21d31c24210950.zip | |
Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errors
Improve diagnostic for generic params from outer items (E0401) Generalize the wording of E0401 to talk about *outer items* instead of *outer functions* since the current phrasing is outdated. The outer item can be a function, constant, trait, ADT or impl block (see the new UI test for the more exotic examples). Further, don't suggest introducing generic parameters to constant items unless the feature `generic_const_items` is enabled. Lastly, make E0401 translatable while we're at it. Fixes #115720.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
