Fix compile on 2017-11-04 nightly

Breakage came from https://github.com/rust-lang/rust/pull/45247/
This commit is contained in:
Pascal Hertleif 2017-11-05 12:26:06 +01:00
parent 1e4c2fb713
commit 536526685d
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) => {