rust/compiler/rustc_errors/src
bors 01903944d8 Auto merge of #115690 - ShE3py:Z-treat-err-as-bug, r=petrochenkov
Allow `-Z treat-err-as-bug=0`

Makes `-Z treat-err-as-bug=0` behave as if the option wasn't present instead of asking the value to be ⩾ 1. This enables a quick on/off of the option, as you only need to change one character instead of removing the whole `-Z`.

Also update some text, e.g.
```bash
$ rustc -Z help | grep treat-err-as-bug
    -Z                      treat-err-as-bug=val -- treat error number `val` that occurs as bug
```
where the value could be interpreted as an error code instead of an ordinal.
2023-09-22 13:01:30 +00:00
..
json Use a builder instead of boolean/option arguments 2023-07-25 13:51:15 +00:00
markdown Unite bless environment variables under RUSTC_BLESS 2023-07-26 16:54:02 -04:00
annotate_snippet_emitter_writer.rs implement -Z ignore-directory-in-diagnostics-source-blocks 2023-09-15 16:22:50 +02:00
diagnostic_builder.rs Remove a redundant field 2023-07-25 13:33:09 +00:00
diagnostic_impls.rs Prevent promotion of const fn calls in inline consts 2023-09-21 09:00:22 +00:00
diagnostic.rs give FutureIncompatibilityReason variants more explicit names 2023-09-22 08:51:18 +02:00
emitter.rs implement -Z ignore-directory-in-diagnostics-source-blocks 2023-09-15 16:22:50 +02:00
error.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00
json.rs implement -Z ignore-directory-in-diagnostics-source-blocks 2023-09-15 16:22:50 +02:00
lib.rs Allow -Z treat-err-as-bug=0 2023-09-22 13:33:55 +02:00
lock.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
registry.rs refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
snippet.rs Create AnnotationColumn struct to fix hard tab column numbers in errors 2023-03-28 09:18:55 -04:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs correct literals for dyn thread safe 2023-05-06 09:34:53 +08:00
translation.rs Restore behavior when primary bundle is missing 2023-02-23 01:14:10 +01:00