Skip to content

Commit d1fec23

Browse files
committed
make diagnostic message clearer when called from cargo
rust-lang/cargo#1554
1 parent 222cd73 commit d1fec23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/diagnostic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ fn emit(dst: &mut EmitterWriter, cm: &codemap::CodeMap, rsp: RenderSpan,
506506
match dst.registry.as_ref().and_then(|registry| registry.find_description(code)) {
507507
Some(_) => {
508508
try!(print_diagnostic(dst, &ss[..], Help,
509-
&format!("pass `--explain {}` to see a detailed \
509+
&format!("Run `rustc --explain {}` to see a detailed \
510510
explanation", code), None));
511511
}
512512
None => ()

0 commit comments

Comments
 (0)