diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-16 13:04:48 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-02-16 17:24:23 -0500 |
| commit | 976348603485b216b0d5314eca674a2b24df4c73 (patch) | |
| tree | 4b18e40496faf663e6101f16272682fd67120be2 /compiler/rustc_codegen_llvm/src | |
| parent | 393fdc10483da930cdbb00eabc3635030d2e776f (diff) | |
| download | rust-976348603485b216b0d5314eca674a2b24df4c73.tar.gz rust-976348603485b216b0d5314eca674a2b24df4c73.zip | |
Move ty::print methods to Drop-based scope guards
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/type_of.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/type_of.rs b/compiler/rustc_codegen_llvm/src/type_of.rs index 81d0603bc52..f0970a8bc1a 100644 --- a/compiler/rustc_codegen_llvm/src/type_of.rs +++ b/compiler/rustc_codegen_llvm/src/type_of.rs @@ -43,8 +43,7 @@ fn uncached_llvm_type<'a, 'tcx>( // in problematically distinct types due to HRTB and subtyping (see #47638). // ty::Dynamic(..) | ty::Adt(..) | ty::Closure(..) | ty::Foreign(..) | ty::Generator(..) | ty::Str => { - let mut name = - with_no_visible_paths(|| with_no_trimmed_paths(|| layout.ty.to_string())); + let mut name = with_no_visible_paths!(with_no_trimmed_paths!(layout.ty.to_string())); if let (&ty::Adt(def, _), &Variants::Single { index }) = (layout.ty.kind(), &layout.variants) { |
