Rename ignored_generic_bounds -> type_alias_bounds

First of all, the lint is specific for type aliases.  Second, it turns out the
bounds are not entirely ignored but actually used when accessing associated
types.  So change the wording of the lint, and adapt its name to reality.

The lint has never been on stable or beta, so renaming is safe.
This commit is contained in:
Ralf Jung
2018-03-10 11:43:51 +01:00
parent 81130ed4b1
commit 562b44d8c3
6 changed files with 68 additions and 33 deletions

View File

@@ -109,7 +109,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
UnusedImportBraces,
AnonymousParameters,
UnusedDocComment,
IgnoredGenericBounds,
TypeAliasBounds,
);
add_early_builtin_with_new!(sess,