rust/tests/ui-fulldeps
Nicholas Nethercote fd91925bce Add ErrorGuaranteed to Recovered::Yes and use it more.
The starting point for this was identical comments on two different
fields, in `ast::VariantData::Struct` and `hir::VariantData::Struct`:
```
    // FIXME: investigate making this a `Option<ErrorGuaranteed>`
    recovered: bool
```
I tried that, and then found that I needed to add an `ErrorGuaranteed`
to `Recovered::Yes`. Then I ended up using `Recovered` instead of
`Option<ErrorGuaranteed>` for these two places and elsewhere, which
required moving `ErrorGuaranteed` from `rustc_parse` to `rustc_ast`.

This makes things more consistent, because `Recovered` is used in more
places, and there are fewer uses of `bool` and
`Option<ErrorGuaranteed>`. And safer, because it's difficult/impossible
to set `recovered` to `Recovered::Yes` without having emitted an error.
2024-05-09 20:12:07 +10:00
..
auxiliary
fluent-messages Rename SubdiagnosticMessage as SubdiagMessage. 2024-03-05 12:14:49 +11:00
internal-lints Pass translation closure to add_to_diag_with() as reference 2024-04-21 07:45:03 +00:00
mod_dir_simple
session-diagnostic Allow nesting subdiagnostics 2024-04-21 07:45:03 +00:00
stable-mir Use generic NonZero. 2024-05-08 21:37:55 +02:00
compiler-calls.rs
deriving-global.rs
deriving-hygiene.rs
dropck_tarena_sound_drop.rs
dropck-tarena-cycle-checked.rs
dropck-tarena-cycle-checked.stderr
dropck-tarena-unsound-drop.rs
dropck-tarena-unsound-drop.stderr
empty-struct-braces-derive.rs
hash-stable-is-unstable.rs Run some ui-fulldeps tests on stage 1 again 2024-03-03 18:41:25 +01:00
hash-stable-is-unstable.stderr Run some ui-fulldeps tests on stage 1 again 2024-03-03 18:41:25 +01:00
lint-pass-macros.rs
missing-rustc-driver-error.rs
missing-rustc-driver-error.stderr
mod_dir_path_canonicalized.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00
pathless-extern-unstable.rs Run some ui-fulldeps tests on stage 1 again 2024-03-03 18:41:25 +01:00
pathless-extern-unstable.stderr Run some ui-fulldeps tests on stage 1 again 2024-03-03 18:41:25 +01:00
pprust-expr-roundtrip.rs Add ErrorGuaranteed to Recovered::Yes and use it more. 2024-05-09 20:12:07 +10:00
regions-mock-tcx.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
rustc_encodable_hygiene.rs