diff --git a/src/librustc_passes/ast_validation.rs b/src/librustc_passes/ast_validation.rs index 1c73ced806e..3386d41bc63 100644 --- a/src/librustc_passes/ast_validation.rs +++ b/src/librustc_passes/ast_validation.rs @@ -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(..) => {