Skip to content

Commit 0e774de

Browse files
committed
Revert "Improve a typeck ICE message (slightly)"
This reverts commit c662a9a.
1 parent 921393c commit 0e774de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc/middle/typeck/check/method.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,8 @@ impl LookupContext {
282282
ty_self => {
283283
// Call is of the form "self.foo()" and appears in one
284284
// of a trait's default method implementations.
285-
let self_did = self.fcx.self_info.expect(
286-
~"self_impl_def_id is undefined (`self` may not \
287-
be in scope here").def_id;
285+
let self_did = self.fcx.self_impl_def_id.expect(
286+
~"unexpected `none` for self_impl_def_id");
288287
let substs = {self_r: None, self_ty: None, tps: ~[]};
289288
self.push_inherent_candidates_from_self(
290289
self_ty, self_did, &substs);

0 commit comments

Comments
 (0)