diff options
| author | bors <bors@rust-lang.org> | 2022-08-21 10:04:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-21 10:04:42 +0000 |
| commit | 4b695f7c4e1a02d160fe7e159abd0f87027c0fcf (patch) | |
| tree | 2c7322f5189d638990acf9ad89b5cec9e3aeb6c0 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 39a9b88f4e50d4c0204bb12c0821b49a302ab3c5 (diff) | |
| parent | 7f3a6fd7f6c04635f3d541201199f127f2a2e65e (diff) | |
| download | rust-4b695f7c4e1a02d160fe7e159abd0f87027c0fcf.tar.gz rust-4b695f7c4e1a02d160fe7e159abd0f87027c0fcf.zip | |
Auto merge of #100765 - Xiretza:session-diagnostic-unification, r=compiler-errors
Kind-less SessionDiagnostic derive
From https://github.com/rust-lang/rust/pull/100730#discussion_r949712629:
> Hm, maybe we should expose some `sess.struct_$SOMETHING` (like `struct_diagnostic`?) that is generic over `EmissionGuarantee`, then make the `SessionDiagnostic` derive generic, i.e.
>
> ```rust
> impl<'tcx> SessionDiagnostic for UnusedGenericParams {
> fn into_diagnostic<T: EmissionGuarantee>( .. ) -> DiagnosticBuilder<'tcx, T> {
> let mut diag = sess.struct_diagnostic(rustc_errors:..);
> ..
> }
> }
> ```
Discussed [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/147480-t-compiler.2Fwg-diagnostics/topic/.23100717.20translation.20-.20kind-less.20derive).
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
