Add emit call to error message

This commit is contained in:
Phlosioneer 2018-03-27 16:01:02 -04:00
parent f76eaece4e
commit 686682deb3

View File

@ -274,7 +274,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
if defaultness == Defaultness::Default {
self.err_handler()
.struct_span_err(item.span, "inherent impls cannot be default")
.help("maybe a missing `for` keyword?");
.help("maybe a missing `for` keyword?").emit();
}
}
ItemKind::ForeignMod(..) => {