rust/compiler/rustc_codegen_llvm/src/back
Nicholas Nethercote 0e388f2192 Change how force-warn lint diagnostics are recorded.
`is_force_warn` is only possible for diagnostics with `Level::Warning`,
but it is currently stored in `Diagnostic::code`, which every diagnostic
has.

This commit:
- removes the boolean `DiagnosticId::Lint::is_force_warn` field;
- adds a `ForceWarning` variant to `Level`.

Benefits:
- The common `Level::Warning` case now has no arguments, replacing
  lots of `Warning(None)` occurrences.
- `rustc_session::lint::Level` and `rustc_errors::Level` are more
  similar, both having `ForceWarning` and `Warning`.
2024-01-11 07:56:17 +11:00
..
archive.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lto.rs Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
owned_target_machine.rs Add emulated TLS support 2023-12-07 00:21:32 +08:00
profiling.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
write.rs Change how force-warn lint diagnostics are recorded. 2024-01-11 07:56:17 +11:00