Don't generate auto trait impls for type aliases

This commit is contained in:
Aaron Hill 2018-02-16 22:35:36 -05:00
parent 298d703506
commit 0c6ad46bcb
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -69,7 +69,7 @@ pub fn try_inline(cx: &DocContext, def: Def, name: ast::Name)
}
Def::TyAlias(did) => {
record_extern_fqn(cx, did, clean::TypeKind::Typedef);
ret.extend(build_impls(cx, did, true));
ret.extend(build_impls(cx, did, false));
clean::TypedefItem(build_type_alias(cx, did), false)
}
Def::Enum(did) => {