From e1e04a8beed95e78b1391c7f4650fb68abd86f8f Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 5 Jul 2023 15:58:19 +0000 Subject: [PATCH] Document magic boolean --- compiler/rustc_middle/src/ty/print/pretty.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/ty/print/pretty.rs b/compiler/rustc_middle/src/ty/print/pretty.rs index b771f666567..fc27f98a96f 100644 --- a/compiler/rustc_middle/src/ty/print/pretty.rs +++ b/compiler/rustc_middle/src/ty/print/pretty.rs @@ -1396,7 +1396,9 @@ pub trait PrettyPrinter<'tcx>: ) -> Result { match scalar { Scalar::Ptr(ptr, _size) => self.pretty_print_const_scalar_ptr(ptr, ty), - Scalar::Int(int) => self.pretty_print_const_scalar_int(int, ty, true), + Scalar::Int(int) => { + self.pretty_print_const_scalar_int(int, ty, /* print_ty */ true) + } } }