Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a48094d

Browse files
committedFeb 27, 2018
Update rustc --explain sentence
1 parent bedbad6 commit a48094d

File tree

1,039 files changed

+1162
-1164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,039 files changed

+1162
-1164
lines changed
 

‎src/librustc_errors/emitter.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,16 @@ impl Drop for EmitterWriter {
124124
if error_codes.len() > 1 {
125125
let limit = if error_codes.len() > 9 { 9 } else { error_codes.len() };
126126
writeln!(self.dst,
127-
"You've got a few errors: {}{}",
127+
"Some errors occurred: {}{}",
128128
error_codes[..limit].join(", "),
129-
if error_codes.len() > 9 { "..." } else { "" }
129+
if error_codes.len() > 9 { "..." } else { "." }
130130
).expect("failed to give tips...");
131131
writeln!(self.dst,
132-
"If you want more information on an error, try using \
133-
\"rustc --explain {}\"",
132+
"For more information about an error, try `rustc --explain {}`.",
134133
&error_codes[0]).expect("failed to give tips...");
135134
} else {
136135
writeln!(self.dst,
137-
"If you want more information on this error, try using \
138-
\"rustc --explain {}\"",
136+
"For more information about this error, try `rustc --explain {}`.",
139137
&error_codes[0]).expect("failed to give tips...");
140138
}
141139
self.dst.flush().expect("failed to emit errors");

‎src/test/ui-fulldeps/lint-plugin-forbid-attrs.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ error[E0453]: allow(test_lint) overruled by outer forbid(test_lint)
2121

2222
error: aborting due to 2 previous errors
2323

24-
If you want more information on this error, try using "rustc --explain E0453"
24+
For more information about this error, try `rustc --explain E0453`.

0 commit comments

Comments
 (0)
Please sign in to comment.