1
Fork 0

Fix breakage from dyn Trait

This commit is contained in:
Vadim Petrochenkov 2017-10-10 21:20:57 +03:00
parent 22eb5241c0
commit 16a478368c

View file

@ -652,7 +652,7 @@ impl Rewrite for ast::TraitRef {
impl Rewrite for ast::Ty {
fn rewrite(&self, context: &RewriteContext, shape: Shape) -> Option<String> {
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 ",