auto merge of #9682 : skade/rust/clearer-error-message-for-external-type-and-trait, r=alexcrichton

The old error message implied that external traits could never
be implemented locally.
This commit is contained in:
bors 2013-10-06 02:06:32 -07:00
commit a623fd339b

View File

@ -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");
}
}