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 | e855e2d15c8fcb4d6b9ffddb5f408acf008cc96f (patch) | |
| tree | e952caf05dcefce5c0093f38ffbd5f43c3be326c /src | |
| parent | 40d30ceb430671496286a8c3d04f56ca5b2925e5 (diff) | |
| download | rust-e855e2d15c8fcb4d6b9ffddb5f408acf008cc96f.tar.gz rust-e855e2d15c8fcb4d6b9ffddb5f408acf008cc96f.zip | |
Move ty::print methods to Drop-based scope guards
Diffstat (limited to 'src')
| -rw-r--r-- | src/type_of.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type_of.rs b/src/type_of.rs index 281e49fa8a3..0ada20cad2c 100644 --- a/src/type_of.rs +++ b/src/type_of.rs @@ -52,7 +52,7 @@ pub fn uncached_gcc_type<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, layout: TyAndLa ty::Adt(..) | ty::Closure(..) | ty::Foreign(..) | ty::Generator(..) | ty::Str if !cx.sess().fewer_names() => { - let mut name = with_no_trimmed_paths(|| layout.ty.to_string()); + let mut name = with_no_trimmed_paths!(layout.ty.to_string()); if let (&ty::Adt(def, _), &Variants::Single { index }) = (layout.ty.kind(), &layout.variants) { |
