remove an error for type params

This commit is contained in:
Takayuki Maeda 2022-04-22 11:25:42 +09:00
parent 547cb2722b
commit f5a8ee4dd8

View File

@ -211,7 +211,6 @@ fn emit_orphan_check_error<'tcx>(
traits::OrphanCheckErr::NonLocalInputType(tys) => { traits::OrphanCheckErr::NonLocalInputType(tys) => {
let msg = match self_ty.kind() { let msg = match self_ty.kind() {
ty::Adt(..) => "can be implemented for types defined outside of the crate", ty::Adt(..) => "can be implemented for types defined outside of the crate",
ty::Param(_) => "can have blanket implementations defined in this trait",
_ if self_ty.is_primitive() => "can be implemented for primitive types", _ if self_ty.is_primitive() => "can be implemented for primitive types",
_ => "can be implemented for arbitrary types", _ => "can be implemented for arbitrary types",
}; };