rust/compiler/rustc_hir_analysis/src/check
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
..
compare_impl_item Deeply normalize when processing registered region obligations 2024-01-30 00:06:53 +00:00
check.rs Improve the diagnostics for unused generic parameters 2024-02-01 16:18:03 +01:00
compare_impl_item.rs Deeply normalize when processing registered region obligations 2024-01-30 00:06:53 +00:00
dropck.rs Apply suggestions from review 2024-01-30 00:09:58 +00:00
entry.rs Merge check_for_entry_fn fully into check_mod_type_wf 2024-01-02 14:17:56 +00:00
errs.rs Rename TyCtxt::emit_spanned_lint as TyCtxt::emit_node_span_lint. 2024-01-23 08:09:05 +11:00
intrinsic.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
intrinsicck.rs Rename TyCtxt::struct_span_lint_hir as TyCtxt::node_span_lint. 2024-01-23 08:09:01 +11:00
mod.rs hir: Remove hir::Map::{owner,expect_owner} 2024-01-30 15:00:52 +03:00
region.rs Add PatKind::Err 2024-01-17 03:14:16 +01:00
wfcheck.rs Rollup merge of #120556 - fmease:improve-unused-generic-param-diags, r=oli-obk 2024-02-04 19:42:12 +01:00