about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-03-14 16:02:59 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-03-14 16:02:59 -0700
commit45d0b5f0b9bbcf97bc985fd26d64564273b7547a (patch)
treeb17312be5a278bb498db034923c0f52383428f16
parent83ed4f4bc4c53b2f660ab8f174d25d7118f9dae0 (diff)
downloadrust-45d0b5f0b9bbcf97bc985fd26d64564273b7547a.tar.gz
rust-45d0b5f0b9bbcf97bc985fd26d64564273b7547a.zip
rustc: Reword field/method-not-found error message to mention the possibility that a field wasn't found
-rw-r--r--src/rustc/middle/typeck.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/middle/typeck.rs b/src/rustc/middle/typeck.rs
index c47a04ddb64..457fb644d46 100644
--- a/src/rustc/middle/typeck.rs
+++ b/src/rustc/middle/typeck.rs
@@ -2755,7 +2755,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
               none {
                 let t_err = resolve_type_vars_if_possible(fcx, expr_t);
                 let msg = #fmt["attempted access of field %s on type %s, but \
-                                no method implementation was found",
+                                no field or method with that name was found",
                                field, ty_to_str(tcx, t_err)];
                 tcx.sess.span_err(expr.span, msg);
                 // NB: Adding a bogus type to allow typechecking to continue