diff options
| author | bors <bors@rust-lang.org> | 2022-09-02 18:40:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-02 18:40:21 +0000 |
| commit | 9ba169a73acfa9c9875b76eec09e9a91cc6246df (patch) | |
| tree | 356cb29d703b6de6f28ac6d1c455274822bbb1e9 /compiler/rustc_session/src | |
| parent | b88e510cc886e4c367d90e1c7c36013a4bc0d6ab (diff) | |
| parent | e77b8ce1001b3174c5acc1990a4c86c73b0cd1e8 (diff) | |
| download | rust-9ba169a73acfa9c9875b76eec09e9a91cc6246df.tar.gz rust-9ba169a73acfa9c9875b76eec09e9a91cc6246df.zip | |
Auto merge of #101333 - matthiaskrgr:rollup-qpf1otj, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #100121 (Try normalizing types without RevealAll in ParamEnv in MIR validation) - #100200 (Change implementation of `-Z gcc-ld` and `lld-wrapper` again) - #100814 ( Porting 'compiler/rustc_trait_selection' to translatable diagnostics - Part 1) - #101215 (Also replace the version placeholder in rustc_attr) - #101260 (Use `FILE_ATTRIBUTE_TAG_INFO` to get reparse tag) - #101323 (Remove unused .toggle-label CSS rule) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index ec5e5170d35..a49af23be23 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -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 |
