Skip to content

Commit e5b1eaf

Browse files
committed
---
yaml --- r: 178557 b: refs/heads/try c: 2c2879b h: refs/heads/master i: 178555: 0174582 v: v3
1 parent d0571cb commit e5b1eaf

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 336c8d2e9c6b276b162bdb3edd43706372e6eddd
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 474b324eda10440d6568ef872a7307d38e7de95b
5-
refs/heads/try: ecaa68768cdc1fa82a750998634e9cc3202975f9
5+
refs/heads/try: 2c2879bbce4177552ce26c6445dcb7027a1245c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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)