Skip to content

Commit 5365266

Browse files
committed
Fix compile on 2017-11-04 nightly
Breakage came from rust-lang/rust#45247
1 parent 1e4c2fb commit 5365266

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/items.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ pub fn format_struct(
894894
}
895895

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

src/visitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ impl<'a> FmtVisitor<'a> {
418418
);
419419
self.push_rewrite(item.span, rewrite);
420420
}
421-
ast::ItemKind::DefaultImpl(..) => {
421+
ast::ItemKind::AutoImpl(..) => {
422422
// FIXME(#78): format impl definitions.
423423
}
424424
ast::ItemKind::Fn(ref decl, unsafety, constness, abi, ref generics, ref body) => {

0 commit comments

Comments
 (0)