diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-03 10:59:04 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-05-25 10:07:02 +0200 |
| commit | 52fa900d62753aca4354f9c6b7a426a80bc7bc62 (patch) | |
| tree | 0e41afff2690ce090f03219cca3beb801ad8bc41 | |
| parent | 89b2fb631ae4e5b6923441dea3e5d2fbd56a8478 (diff) | |
| download | rust-52fa900d62753aca4354f9c6b7a426a80bc7bc62.tar.gz rust-52fa900d62753aca4354f9c6b7a426a80bc7bc62.zip | |
Break cycle during array length printing
| -rw-r--r-- | src/librustc/ty/print/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/print/pretty.rs b/src/librustc/ty/print/pretty.rs index 7212afc08df..53a5de689d8 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("]")) } |
