make diagnostic message clearer when called from cargo
This commit is contained in:
parent
222cd73b8a
commit
5f932e8ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ fn emit(dst: &mut EmitterWriter, cm: &codemap::CodeMap, rsp: RenderSpan,
|
|||
match dst.registry.as_ref().and_then(|registry| registry.find_description(code)) {
|
||||
Some(_) => {
|
||||
try!(print_diagnostic(dst, &ss[..], Help,
|
||||
&format!("pass `--explain {}` to see a detailed \
|
||||
&format!("run `rustc --explain {}` to see a detailed \
|
||||
explanation", code), None));
|
||||
}
|
||||
None => ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue