diff options
| author | bors <bors@rust-lang.org> | 2023-07-30 13:59:25 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-30 13:59:25 +0000 | 
| commit | 89acdae9f243da15549c7a8bc737e6240c301790 (patch) | |
| tree | 668c7f1216e2dc30a00c2d94e2eb47f11a3f218b /compiler/rustc_middle/src/traits/structural_impls.rs | |
| parent | 483ef5f4d8de1a8ef0d9a2771b7a4a45f9846721 (diff) | |
| parent | b9f17f1e78cc9d004da6c5488f20e08a5741accf (diff) | |
| download | rust-89acdae9f243da15549c7a8bc737e6240c301790.tar.gz rust-89acdae9f243da15549c7a8bc737e6240c301790.zip  | |
Auto merge of #114250 - matthiaskrgr:rollup-0r0dhrr, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #110056 (Fix the example in document for WaitTimeoutResult::timed_out) - #112655 (Mark `map_or` as `#[must_use]`) - #114018 (Make `--error-format human-annotate-rs` handle multiple files) - #114068 (inline format!() args up to and including rustc_middle (2)) - #114223 (Documentation: Fix Stilted Language in Vec->Indexing) - #114227 (Add tidy check for stray rustfix files) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_middle/src/traits/structural_impls.rs')
| -rw-r--r-- | compiler/rustc_middle/src/traits/structural_impls.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/traits/structural_impls.rs b/compiler/rustc_middle/src/traits/structural_impls.rs index 530d1ec5d35..d7dc429f53b 100644 --- a/compiler/rustc_middle/src/traits/structural_impls.rs +++ b/compiler/rustc_middle/src/traits/structural_impls.rs @@ -7,14 +7,14 @@ use std::fmt; impl<'tcx, N: fmt::Debug> fmt::Debug for traits::ImplSource<'tcx, N> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - super::ImplSource::UserDefined(v) => write!(f, "{:?}", v), + super::ImplSource::UserDefined(v) => write!(f, "{v:?}"), super::ImplSource::Builtin(source, d) => { write!(f, "Builtin({source:?}, {d:?})") } super::ImplSource::Param(ct, n) => { - write!(f, "ImplSourceParamData({:?}, {:?})", n, ct) + write!(f, "ImplSourceParamData({n:?}, {ct:?})") } } }  | 
