Skip to content

Commit a623fd3

Browse files
committed
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.
2 parents c5c980a + 8154d23 commit a623fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/typeck/coherence.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ impl visit::Visitor<()> for PrivilegedScopeVisitor {
216216
if trait_def_id.crate != LOCAL_CRATE {
217217
let session = self.cc.crate_context.tcx.sess;
218218
session.span_err(item.span,
219-
"cannot provide an extension implementation \
220-
for a trait not defined in this crate");
219+
"cannot provide an extension implementation \
220+
where both trait and type are not defined in this crate");
221221
}
222222
}
223223

0 commit comments

Comments
 (0)