Merge pull request #2118 from killercup/rustup/2017-11-04

Fix compile on 2017-11-04 nightly
This commit is contained in:
Seiichi Uchida 2017-11-06 00:48:12 +09:00 committed by GitHub
commit 4021bed3da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -894,7 +894,7 @@ pub fn format_struct(
}
pub fn format_trait(context: &RewriteContext, item: &ast::Item, offset: Indent) -> Option<String> {
if let ast::ItemKind::Trait(unsafety, ref generics, ref type_param_bounds, ref trait_items) =
if let ast::ItemKind::Trait(_, unsafety, ref generics, ref type_param_bounds, ref trait_items) =
item.node
{
let mut result = String::with_capacity(128);

View file

@ -418,7 +418,7 @@ impl<'a> FmtVisitor<'a> {
);
self.push_rewrite(item.span, rewrite);
}
ast::ItemKind::DefaultImpl(..) => {
ast::ItemKind::AutoImpl(..) => {
// FIXME(#78): format impl definitions.
}
ast::ItemKind::Fn(ref decl, unsafety, constness, abi, ref generics, ref body) => {