Porting 'compiler/rustc_trait_selection' to translatable diagnostics - Part 1
This commit is contained in:
parent
fb888117da
commit
8e82200277
12 changed files with 180 additions and 87 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue