-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit 9bd8d17
don't uppercase error messages
a more general version of #146080.
after a bit of hacking in [`fluent.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_fluent_macro/src/fluent.rs), i discovered that i'm not the only one that is bad at following guidelines 😅. this pr lowercases the first letter of all the error messages in the codebase.
(i did not change things that are traditionally uppercased such as _MIR_, _ABI_ or _C_)
i think it's reasonable to run a `@bors try` so all the test suite is checked, as i cannot run some of the tests on my machine. i double checked (and replaced manually) all the old error messages, but better be safe than sorry.
in the future i will try to add a check in `x test tidy` that errors if an error message starts with an uppercase letter.1 parent 154037f commit 9bd8d17
File tree
53 files changed
+248
-249
lines changed- compiler
- rustc_attr_parsing
- rustc_codegen_ssa
- rustc_const_eval
- rustc_driver_impl
- rustc_parse
- rustc_query_system
- src/doc/rustc/src/command-line-arguments
- tests
- run-make/separate-link-fail
- ui
- codegen
- const-generics/min_const_generics
- const-ptr
- consts
- const-eval
- heap
- const-mut-refs
- miri_unleashed
- linkage-attr/raw-dylib/windows
- pattern
- statics
- type/pattern_types
- unstable-feature-bound
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
53 files changed
+248
-249
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 | - | ||
154 | + | ||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
|
Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 | - | ||
43 | + | ||
44 | 44 |
| |
45 | 45 |
| |
46 | - | ||
46 | + | ||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 | - | ||
51 | + | ||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 | - | ||
267 | + | ||
268 | 268 |
| |
269 | - | ||
269 | + | ||
270 | 270 |
| |
271 | 271 |
| |
272 | 272 |
| |
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 | - | ||
367 | + | ||
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
373 | - | ||
373 | + | ||
374 | 374 |
| |
375 | 375 |
| |
376 | 376 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
457 | 457 |
| |
458 | 458 |
| |
459 | 459 |
| |
460 | - | ||
460 | + | ||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | - | ||
17 | + | ||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | - | ||
27 | + | ||
28 | 28 |
| |
29 | 29 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | - | ||
61 | + | ||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | - | ||
22 | - | ||
21 | + | ||
22 | + | ||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 | - | ||
187 | + | ||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | - | ||
14 | + | ||
15 | 15 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
18 | + |
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | - | ||
17 | + | ||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 | - | ||
28 | + | ||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
0 commit comments