mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
7fa99bfb71
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 |
||
---|---|---|
.. | ||
duplicate.rs | ||
duplicate.stderr | ||
issue-19660.rs | ||
issue-19660.stderr | ||
issue-83471.rs | ||
issue-83471.stderr | ||
issue-87573.rs | ||
issue-87573.stderr | ||
lang-item-generic-requirements.rs | ||
lang-item-generic-requirements.stderr | ||
lang-item-missing.rs | ||
lang-item-missing.stderr | ||
missing-clone-for-suggestion.rs | ||
missing-clone-for-suggestion.stderr | ||
required-lang-item.rs | ||
required-lang-item.stderr | ||
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 |