Skip to content

Commit 7b39336

Browse files
committed
---
yaml --- r: 177995 b: refs/heads/tmp c: 2c2879b h: refs/heads/master i: 177993: 3aa8a1f 177991: b4c8591 v: v3
1 parent 94d3ee7 commit 7b39336

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: ecaa68768cdc1fa82a750998634e9cc3202975f9
37+
refs/heads/tmp: 2c2879bbce4177552ce26c6445dcb7027a1245c7

branches/tmp/src/librustc_typeck/coherence/orphan.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,12 @@ impl<'cx, 'tcx,'v> visit::Visitor<'v> for OrphanChecker<'cx, 'tcx> {
7777
Ok(()) => { }
7878
Err(traits::OrphanCheckErr::NoLocalInputType) => {
7979
if !ty::has_attr(self.tcx, trait_def_id, "old_orphan_check") {
80-
let self_ty = ty::lookup_item_type(self.tcx, def_id).ty;
8180
span_err!(
8281
self.tcx.sess, item.span, E0117,
83-
"the type `{}` does not reference any \
82+
"the impl does not reference any \
8483
types defined in this crate; \
8584
only traits defined in the current crate can be \
86-
implemented for arbitrary types",
87-
self_ty.user_string(self.tcx));
85+
implemented for arbitrary types");
8886
}
8987
}
9088
Err(traits::OrphanCheckErr::UncoveredTy(param_ty)) => {

0 commit comments

Comments
 (0)