Skip to content

Commit 686682d

Browse files
committed
Add emit call to error message
1 parent f76eaec commit 686682d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_passes/ast_validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
274274
if defaultness == Defaultness::Default {
275275
self.err_handler()
276276
.struct_span_err(item.span, "inherent impls cannot be default")
277-
.help("maybe a missing `for` keyword?");
277+
.help("maybe a missing `for` keyword?").emit();
278278
}
279279
}
280280
ItemKind::ForeignMod(..) => {

0 commit comments

Comments
 (0)