From 686682deb33d9003958889834fed92ced98828d0 Mon Sep 17 00:00:00 2001 From: Phlosioneer Date: Tue, 27 Mar 2018 16:01:02 -0400 Subject: [PATCH] Add emit call to error message --- src/librustc_passes/ast_validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(..) => {