about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTakayuki Maeda <41065217+TaKO8Ki@users.noreply.github.com>2022-04-22 11:25:42 +0900
committerTakayuki Maeda <41065217+TaKO8Ki@users.noreply.github.com>2022-04-22 11:25:42 +0900
commitf5a8ee4dd84b4d3b6b53adedbd2b9ac3b0d09df8 (patch)
treebfcb3abd8c75da0ca5acc687261e31dea106f081
parent547cb2722b3d7e5a437194bcd5f18f0c213ebdbd (diff)
downloadrust-f5a8ee4dd84b4d3b6b53adedbd2b9ac3b0d09df8.tar.gz
rust-f5a8ee4dd84b4d3b6b53adedbd2b9ac3b0d09df8.zip
remove an error for type params
-rw-r--r--compiler/rustc_typeck/src/coherence/orphan.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_typeck/src/coherence/orphan.rs b/compiler/rustc_typeck/src/coherence/orphan.rs
index 2fc425a6fc4..19e68f0b14f 100644
--- a/compiler/rustc_typeck/src/coherence/orphan.rs
+++ b/compiler/rustc_typeck/src/coherence/orphan.rs
@@ -211,7 +211,6 @@ fn emit_orphan_check_error<'tcx>(
         traits::OrphanCheckErr::NonLocalInputType(tys) => {
             let msg = match self_ty.kind() {
                 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",
                 _ => "can be implemented for arbitrary types",
             };