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_ssa/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_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs index 4c7a09ca1e9..32a212196cb 100644 --- a/compiler/rustc_codegen_ssa/src/mir/block.rs +++ b/compiler/rustc_codegen_ssa/src/mir/block.rs @@ -535,8 +535,8 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> { UninitValid => !layout.might_permit_raw_init(bx, /*zero:*/ false), }; if do_panic { - let msg_str = with_no_visible_paths(|| { - with_no_trimmed_paths(|| { + let msg_str = with_no_visible_paths!({ + with_no_trimmed_paths!({ if layout.abi.is_uninhabited() { // Use this error even for the other intrinsics as it is more precise. format!("attempted to instantiate uninhabited type `{}`", ty) |
