Fix compile on 2017-11-04 nightly
Breakage came from https://github.com/rust-lang/rust/pull/45247/
This commit is contained in:
parent
1e4c2fb713
commit
536526685d
@ -894,7 +894,7 @@ pub fn format_struct(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn format_trait(context: &RewriteContext, item: &ast::Item, offset: Indent) -> Option<String> {
|
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
|
item.node
|
||||||
{
|
{
|
||||||
let mut result = String::with_capacity(128);
|
let mut result = String::with_capacity(128);
|
||||||
|
@ -418,7 +418,7 @@ impl<'a> FmtVisitor<'a> {
|
|||||||
);
|
);
|
||||||
self.push_rewrite(item.span, rewrite);
|
self.push_rewrite(item.span, rewrite);
|
||||||
}
|
}
|
||||||
ast::ItemKind::DefaultImpl(..) => {
|
ast::ItemKind::AutoImpl(..) => {
|
||||||
// FIXME(#78): format impl definitions.
|
// FIXME(#78): format impl definitions.
|
||||||
}
|
}
|
||||||
ast::ItemKind::Fn(ref decl, unsafety, constness, abi, ref generics, ref body) => {
|
ast::ItemKind::Fn(ref decl, unsafety, constness, abi, ref generics, ref body) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user