Skip to content

Commit a48094d

Browse files
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`.

src/test/ui-fulldeps/proc-macro/signature.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ error[E0308]: mismatched types
1212

1313
error: aborting due to previous error
1414

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

src/test/ui/anonymous-higher-ranked-lifetime.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ note: required by `h2`
154154

155155
error: aborting due to 11 previous errors
156156

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

src/test/ui/arbitrary-self-types-not-object-safe.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ error[E0038]: the trait `Foo` cannot be made into an object
1717

1818
error: aborting due to 2 previous errors
1919

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

src/test/ui/asm-out-assign-imm.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ error[E0384]: cannot assign twice to immutable variable `x`
99

1010
error: aborting due to previous error
1111

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

src/test/ui/associated-const-impl-wrong-lifetime.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ note: the lifetime 'a as defined on the impl at 17:1...
1515

1616
error: aborting due to previous error
1717

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

src/test/ui/associated-const-impl-wrong-type.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ error[E0326]: implemented const `BAR` has an incompatible type for trait
99

1010
error: aborting due to previous error
1111

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

src/test/ui/associated-type-projection-from-multiple-supertraits.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ error[E0221]: ambiguous associated type `Color` in bounds of `C`
4242

4343
error: aborting due to 4 previous errors
4444

45-
You've got a few errors: E0191, E0221
46-
If you want more information on an error, try using "rustc --explain E0191"
45+
Some errors occurred: E0191, E0221.
46+
For more information about an error, try `rustc --explain E0191`.

src/test/ui/associated-types-ICE-when-projecting-out-of-err.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ error[E0277]: the trait bound `(): Add<A>` is not satisfied
66

77
error: aborting due to previous error
88

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

0 commit comments

Comments
 (0)