diff options
| author | Takayuki Maeda <41065217+TaKO8Ki@users.noreply.github.com> | 2022-04-22 11:25:42 +0900 |
|---|---|---|
| committer | Takayuki Maeda <41065217+TaKO8Ki@users.noreply.github.com> | 2022-04-22 11:25:42 +0900 |
| commit | f5a8ee4dd84b4d3b6b53adedbd2b9ac3b0d09df8 (patch) | |
| tree | bfcb3abd8c75da0ca5acc687261e31dea106f081 | |
| parent | 547cb2722b3d7e5a437194bcd5f18f0c213ebdbd (diff) | |
| download | rust-f5a8ee4dd84b4d3b6b53adedbd2b9ac3b0d09df8.tar.gz rust-f5a8ee4dd84b4d3b6b53adedbd2b9ac3b0d09df8.zip | |
remove an error for type params
| -rw-r--r-- | compiler/rustc_typeck/src/coherence/orphan.rs | 1 |
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", }; |
