From 16a478368c8dcc0c0ee47372a9f663b23d28b097 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Tue, 10 Oct 2017 21:20:57 +0300 Subject: [PATCH] Fix breakage from `dyn Trait` --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 311192889d3..8c8627d7a71 100644 --- a/src/types.rs +++ b/src/types.rs @@ -652,7 +652,7 @@ impl Rewrite for ast::TraitRef { impl Rewrite for ast::Ty { fn rewrite(&self, context: &RewriteContext, shape: Shape) -> Option { match self.node { - ast::TyKind::TraitObject(ref bounds) => bounds.rewrite(context, shape), + ast::TyKind::TraitObject(ref bounds, ..) => bounds.rewrite(context, shape), ast::TyKind::Ptr(ref mt) => { let prefix = match mt.mutbl { Mutability::Mutable => "*mut ",