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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
missing-clone-for-suggestion.rs
missing-clone-for-suggestion.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.argv_inner_ptr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.argv.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.main_args.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.main_ret.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.main_ty.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.missing_all_args.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.missing_ret.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.missing_sigpipe_arg.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.rs rustc_hir_analysis: add a helper to check function the signature mismatches 2023-09-19 18:15:23 +02:00
start_lang_item_args.sigpipe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.start_ret.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_args.too_many_args.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
start_lang_item_with_target_feature.rs Prevent using #[target_feature] on lang item functions 2023-09-18 20:11:01 +02:00
start_lang_item_with_target_feature.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00