Revert "Improve a typeck ICE message (slightly)"
This reverts commit c662a9aad7
.
This commit is contained in:
parent
921393c568
commit
0e774de766
@ -282,9 +282,8 @@ fn push_inherent_candidates(&self, self_ty: ty::t) {
|
||||
ty_self => {
|
||||
// Call is of the form "self.foo()" and appears in one
|
||||
// of a trait's default method implementations.
|
||||
let self_did = self.fcx.self_info.expect(
|
||||
~"self_impl_def_id is undefined (`self` may not \
|
||||
be in scope here").def_id;
|
||||
let self_did = self.fcx.self_impl_def_id.expect(
|
||||
~"unexpected `none` for self_impl_def_id");
|
||||
let substs = {self_r: None, self_ty: None, tps: ~[]};
|
||||
self.push_inherent_candidates_from_self(
|
||||
self_ty, self_did, &substs);
|
||||
|
Loading…
Reference in New Issue
Block a user