e7724a2e31
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. |
||
---|---|---|
.. | ||
bad_opt_access.rs | ||
bad_opt_access.stderr | ||
default_hash_types.rs | ||
default_hash_types.stderr | ||
diagnostics.ftl | ||
diagnostics.rs | ||
diagnostics.stderr | ||
lint_pass_impl_without_macro.rs | ||
lint_pass_impl_without_macro.stderr | ||
qualified_ty_ty_ctxt.rs | ||
qualified_ty_ty_ctxt.stderr | ||
query_stability.rs | ||
query_stability.stderr | ||
rustc_pass_by_value.rs | ||
rustc_pass_by_value.stderr | ||
span_use_eq_ctxt.rs | ||
span_use_eq_ctxt.stderr | ||
ty_tykind_usage.rs | ||
ty_tykind_usage.stderr |