rust/compiler/rustc_macros/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
..
diagnostics Add level arg to into_diagnostic. 2023-12-19 09:19:25 +11:00
symbols
current_version.rs Simplify the current_rustc_version macro. 2023-11-10 10:54:21 +11:00
hash_stable.rs remove redundant imports 2023-12-10 10:56:22 +08:00
lib.rs Add HashStable_NoContext to simplify HashStable implementations in rustc_type_ir 2023-11-21 05:49:44 +00:00
lift.rs remove redundant imports 2023-12-10 10:56:22 +08:00
query.rs Stash and cancel cycle errors for auto trait leakage in opaques 2023-10-26 17:58:02 +00:00
serialize.rs Derive TyEncodable/TyDecodable implementations that are parameterized over interner 2023-11-04 16:44:42 +00:00
symbols.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
type_foldable.rs
type_visitable.rs