From 7ba17aa72f97a8ceba7d5b196e11cef9e6bc37cb Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Wed, 14 Nov 2018 22:24:22 +0000 Subject: [PATCH] Display `impl Sized` correctly It used to display as just `impl` --- src/librustc/util/ppaux.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc/util/ppaux.rs b/src/librustc/util/ppaux.rs index 79405b12400..34fea495aa6 100644 --- a/src/librustc/util/ppaux.rs +++ b/src/librustc/util/ppaux.rs @@ -1325,6 +1325,8 @@ define_print! { } if !is_sized { write!(f, "{}?Sized", if first { " " } else { "+" })?; + } else if first { + write!(f, " Sized")?; } Ok(()) })