rust/compiler/rustc_const_eval/src
Nicholas Nethercote e7724a2e31 Add level arg to into_diagnostic.
And make all hand-written `IntoDiagnostic` impls generic, by using
`DiagnosticBuilder::new(dcx, level, ...)` instead of e.g.
`dcx.struct_err(...)`.

This means the `create_*` functions are the source of the error level.
This change will let us remove `struct_diagnostic`.

Note: `#[rustc_lint_diagnostics]` is added to `DiagnosticBuilder::new`,
it's necessary to pass diagnostics tests now that it's used in
`into_diagnostic` functions.
2023-12-19 09:19:25 +11:00
..
const_eval Rename Session::span_diagnostic as Session::dcx. 2023-12-18 16:06:21 +11:00
interpret Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
transform Rename Session::span_diagnostic as Session::dcx. 2023-12-18 16:06:21 +11:00
util Revert "Don't print host effect param in pretty path_generic_args" 2023-12-10 10:17:28 +00:00
errors.rs Add level arg to into_diagnostic. 2023-12-19 09:19:25 +11:00
lib.rs Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00