type_alias_bounds lint: If the type alias uses an associated type without "as", suggest to use the "as" form instead.

This is necessary to get rid of the type bound, and hence silence the warning.
This commit is contained in:
Ralf Jung
2018-03-10 13:32:11 +01:00
parent 562b44d8c3
commit 0e6d40a3fb
5 changed files with 151 additions and 30 deletions

View File

@@ -109,7 +109,6 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
UnusedImportBraces,
AnonymousParameters,
UnusedDocComment,
TypeAliasBounds,
);
add_early_builtin_with_new!(sess,
@@ -139,6 +138,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
MutableTransmutes,
UnionsWithDropFields,
UnreachablePub,
TypeAliasBounds,
);
add_builtin_with_new!(sess,