rust/tests/ui/lang-items
Matthias Krüger 7fa99bfb71
Rollup merge of #120556 - fmease:improve-unused-generic-param-diags, r=oli-obk
Improve the diagnostics for unused generic parameters

* Don't emit two errors (namely E0091 *and* E0392) for unused type parameters on *lazy* type aliases
* Fix the diagnostic help message of E0392 for *lazy* type aliases: Don't talk about the “fields” of lazy type aliases (use the term “body” instead) and don't suggest `PhantomData` for them, it doesn't make much sense
* Consolidate the diagnostics for E0091 (unused type parameters in type aliases) and E0392 (unused generic parameters due to bivariance) and make it translatable
  * Still keep the error codes distinct (for now)
  * Naturally leads to better diagnostics for E0091

r? ```@oli-obk``` (to ballast your review load :P) or compiler
2024-02-04 19:42:12 +01:00
..
duplicate.rs Add test for duplicate lang items 2024-01-29 20:37:06 +01:00
duplicate.stderr Add test for duplicate lang items 2024-01-29 20:37:06 +01:00
issue-19660.rs
issue-19660.stderr
issue-83471.rs
issue-83471.stderr Bless tests 2024-01-13 12:46:58 -05:00
issue-87573.rs
issue-87573.stderr
lang-item-generic-requirements.rs Avoid silencing relevant follow-up errors 2024-01-09 21:08:16 +00:00
lang-item-generic-requirements.stderr Improve the diagnostics for unused generic parameters 2024-02-01 16:18:03 +01:00
lang-item-missing.rs
lang-item-missing.stderr
missing-clone-for-suggestion.rs
missing-clone-for-suggestion.stderr
required-lang-item.rs Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00
required-lang-item.stderr Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00
start_lang_item_args.argc.stderr
start_lang_item_args.argv_inner_ptr.stderr
start_lang_item_args.argv.stderr
start_lang_item_args.main_args.stderr
start_lang_item_args.main_ret.stderr
start_lang_item_args.main_ty.stderr
start_lang_item_args.missing_all_args.stderr
start_lang_item_args.missing_ret.stderr
start_lang_item_args.missing_sigpipe_arg.stderr
start_lang_item_args.rs
start_lang_item_args.sigpipe.stderr
start_lang_item_args.start_ret.stderr
start_lang_item_args.too_many_args.stderr
start_lang_item_with_target_feature.rs
start_lang_item_with_target_feature.stderr