From 52fa900d62753aca4354f9c6b7a426a80bc7bc62 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 3 May 2019 10:59:04 +0200 Subject: [PATCH] Break cycle during array length printing --- src/librustc/ty/print/pretty.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs index 7212afc08dfcd..53a5de689d85f 100644 --- a/src/librustc/ty/print/pretty.rs +++ b/src/librustc/ty/print/pretty.rs @@ -669,7 +669,7 @@ pub trait PrettyPrinter<'gcx: 'tcx, 'tcx>: if let Some(n) = sz.assert_usize(self.tcx()) { p!(write("{}", n)); } else { - p!(print(sz)); + p!(write("_")); } p!(write("]")) }