1
Fork 0

Rollup merge of #100814 - gabrielBusta:port_trait_selection_diagnostics, r=davidtwco

Porting 'compiler/rustc_trait_selection' to translatable diagnostics - Part 1

``@rustbot`` label +A-translation

r? rust-lang/diagnostics
cc #100717
This commit is contained in:
Matthias Krüger 2022-09-02 18:22:00 +02:00 committed by GitHub
commit c8749f0453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 180 additions and 87 deletions

View file

@ -110,6 +110,12 @@ impl Mul<usize> for Limit {
}
}
impl rustc_errors::IntoDiagnosticArg for Limit {
fn into_diagnostic_arg(self) -> rustc_errors::DiagnosticArgValue<'static> {
self.to_string().into_diagnostic_arg()
}
}
#[derive(Clone, Copy, Debug, HashStable_Generic)]
pub struct Limits {
/// The maximum recursion limit for potentially infinitely recursive