From 1113cd5bbe81d4c94dd95e5d376869fb4516335e Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Tue, 22 Feb 2022 00:00:00 +0000 Subject: Rename `region_should_not_be_omitted` to `should_print_region` to avoid double negation --- compiler/rustc_const_eval/src/interpret/intrinsics/type_name.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval/src') diff --git a/compiler/rustc_const_eval/src/interpret/intrinsics/type_name.rs b/compiler/rustc_const_eval/src/interpret/intrinsics/type_name.rs index e6f243e28db..aa84b16b502 100644 --- a/compiler/rustc_const_eval/src/interpret/intrinsics/type_name.rs +++ b/compiler/rustc_const_eval/src/interpret/intrinsics/type_name.rs @@ -149,7 +149,7 @@ impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx> { } impl<'tcx> PrettyPrinter<'tcx> for AbsolutePathPrinter<'tcx> { - fn region_should_not_be_omitted(&self, _region: ty::Region<'_>) -> bool { + fn should_print_region(&self, _region: ty::Region<'_>) -> bool { false } fn comma_sep(mut self, mut elems: impl Iterator) -> Result -- cgit 1.4.1-3-g733a5