about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Gilcher <florian.gilcher@asquera.de>2013-10-02 16:15:07 +0200
committerFlorian Gilcher <florian.gilcher@asquera.de>2013-10-06 09:56:46 +0200
commit8154d23e44b6ea2c8c9464c3b396c2a5a45a50bf (patch)
tree6a7606e014d416852f887f61579529fb38ecc3a5
parentc5c980ac2a46292a49fb1b2321340e0aebc6e71e (diff)
downloadrust-8154d23e44b6ea2c8c9464c3b396c2a5a45a50bf.tar.gz
rust-8154d23e44b6ea2c8c9464c3b396c2a5a45a50bf.zip
Clearer error message for external trait and type
The old error message implied that external traits could never
be implemented locally.
-rw-r--r--src/librustc/middle/typeck/coherence.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/middle/typeck/coherence.rs b/src/librustc/middle/typeck/coherence.rs
index 9ad8377cdd1..6adbcbf89d7 100644
--- a/src/librustc/middle/typeck/coherence.rs
+++ b/src/librustc/middle/typeck/coherence.rs
@@ -216,8 +216,8 @@ impl visit::Visitor<()> for PrivilegedScopeVisitor {
                             if trait_def_id.crate != LOCAL_CRATE {
                                 let session = self.cc.crate_context.tcx.sess;
                                 session.span_err(item.span,
-                                                 "cannot provide an extension implementation \
-                                                  for a trait not defined in this crate");
+                                        "cannot provide an extension implementation \
+                                        where both trait and type are not defined in this crate");
                             }
                         }