rust/compiler/rustc_monomorphize/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
..
collector.rs Rename Session::span_diagnostic as Session::dcx. 2023-12-18 16:06:21 +11: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
partitioning.rs Auto merge of #118770 - saethlin:fix-inline-never-uses, r=nnethercote 2023-12-15 04:54:14 +00:00
polymorphize.rs merge DefKind::Coroutine into DefKind::Closure 2023-11-26 21:05:08 +08:00
util.rs subst -> instantiate 2023-09-26 09:37:55 +02:00