rust/compiler/rustc_session/src
Nicholas Nethercote f5459201e0 Add EmitResult associated type to EmissionGuarantee.
This lets different error levels share the same return type from
`emit_*`.

- A lot of inconsistencies in the `DiagCtxt` API are removed.
- `Noted` is removed.
- `FatalAbort` is introduced for fatal errors (abort via `raise`),
  replacing the `EmissionGuarantee` impl for `!`.
- `Bug` is renamed `BugAbort` (to avoid clashing with `Level::Bug` and
  to mirror `FatalAbort`), and modified to work in the new way with bug
  errors (abort via panic).
- Various diagnostic creators and emitters updated to the new, better
  signatures. Note that `DiagCtxt::bug` no longer needs to call
  `panic_any`, because `emit` handles that.

Also shorten the obnoxiously long
`diagnostic_builder_emit_producing_guarantee` name.
2023-12-19 09:52:02 +11:00
..
config Change process spawning to inherit the parent's signal mask by default 2022-10-20 14:53:38 -07:00
code_stats.rs rustc_session: Address all rustc::potential_query_instability lints 2023-12-03 15:05:39 +01:00
config.rs Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
cstore.rs Move MetadataLoader{,Dyn} to rustc_metadata. 2023-11-30 17:05:54 +11:00
errors.rs Add level arg to into_diagnostic. 2023-12-19 09:19:25 +11:00
filesearch.rs Remove unused FileMatch. 2023-11-30 17:05:56 +11:00
lib.rs rustc_session: Address all rustc::potential_query_instability lints 2023-12-03 15:05:39 +01:00
options.rs Rename many EarlyDiagCtxt arguments. 2023-12-18 16:06:22 +11:00
output.rs Update a comment. 2023-11-30 17:05:56 +11:00
parse.rs Add EmitResult associated type to EmissionGuarantee. 2023-12-19 09:52:02 +11:00
search_paths.rs Rename many EarlyDiagCtxt arguments. 2023-12-18 16:06:22 +11:00
session.rs Add EmitResult associated type to EmissionGuarantee. 2023-12-19 09:52:02 +11:00
utils.rs Move is_ascii_ident to where it's used. 2023-11-30 17:05:56 +11:00
version.rs Simplify the current_rustc_version macro. 2023-11-10 10:54:21 +11:00