Skip to content

Commit

Permalink
auto merge of #9682 : skade/rust/clearer-error-message-for-external-t…
Browse files Browse the repository at this point in the history
…ype-and-trait, r=alexcrichton

The old error message implied that external traits could never
be implemented locally.
  • Loading branch information
bors committed Oct 6, 2013
2 parents c5c980a + 8154d23 commit a623fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/middle/typeck/coherence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit a623fd3

Please sign in to comment.