Use span_label
This commit is contained in:
parent
b94b7e7f1b
commit
ac54265b13
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ fn err_duplicate_option<'a>(p: &mut Parser<'a>, span: Span) {
|
||||||
} else {
|
} else {
|
||||||
p.sess.span_diagnostic.struct_span_err(span, "this option was already provided")
|
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();
|
err.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue