Use span_label
This commit is contained in:
parent
b94b7e7f1b
commit
ac54265b13
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user