about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2013-01-07 18:15:44 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2013-01-07 18:15:44 -0800
commit0e774de7661df81cf0e5537ef581823fc148fc2a (patch)
tree1ffee98d3e58591e2e4ab9a04c724e818e202e33
parent921393c56886468b8f7476fa3a3e6ddb3bea421d (diff)
downloadrust-0e774de7661df81cf0e5537ef581823fc148fc2a.tar.gz
rust-0e774de7661df81cf0e5537ef581823fc148fc2a.zip
Revert "Improve a typeck ICE message (slightly)"
This reverts commit c662a9aad7a158c797faa4bd805808f867a3e22e.
-rw-r--r--src/librustc/middle/typeck/check/method.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc/middle/typeck/check/method.rs b/src/librustc/middle/typeck/check/method.rs
index f903270e15c..1a788fd9574 100644
--- a/src/librustc/middle/typeck/check/method.rs
+++ b/src/librustc/middle/typeck/check/method.rs
@@ -282,9 +282,8 @@ impl LookupContext {
                 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);