Practice diagnostic message convention
This commit is contained in:
parent
77f1e504a9
commit
3818981ca1
63 changed files with 167 additions and 168 deletions
|
@ -1339,7 +1339,7 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
|
|||
};
|
||||
|
||||
if module.is_trait() {
|
||||
self.r.session.span_err(import.span, "items in traits are not importable.");
|
||||
self.r.session.span_err(import.span, "items in traits are not importable");
|
||||
return;
|
||||
} else if ptr::eq(module, import.parent_scope.module) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue