Merge pull request #2051 from petrochenkov/dyn

Fix breakage from `dyn Trait`
This commit is contained in:
Seiichi Uchida 2017-10-13 19:18:05 +09:00 committed by GitHub
commit 0950502151

View File

@ -622,7 +622,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 ",