]> git.lizzy.rs Git - rust.git/commitdiff
Use `span_label`
authorCamelid <camelidcamel@gmail.com>
Mon, 15 Jun 2020 18:57:49 +0000 (11:57 -0700)
committerCamelid <camelidcamel@gmail.com>
Sat, 20 Jun 2020 18:12:43 +0000 (11:12 -0700)
src/librustc_builtin_macros/asm.rs

index 922a06bae93e497e83e1fd3bc8d2f7803fdfdc5b..474c54c998d99ca443f089d8479143228e5872f1 100644 (file)
@@ -297,7 +297,7 @@ fn err_duplicate_option<'a>(p: &mut Parser<'a>, span: Span) {
     } else {
         p.sess.span_diagnostic.struct_span_err(span, "this option was already provided")
     };
-    err.span_help(span, "remove this option");
+    err.span_label(span, "remove this option");
     err.emit();
 }