Add an initial support for trait aliases

This commit is contained in:
topecongiro 2017-12-15 10:35:07 +09:00
parent fad903fd14
commit d60c2ec5d3

View File

@ -373,6 +373,10 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
let rw = format_trait(&self.get_context(), item, self.block_indent);
self.push_rewrite(item.span, rw);
}
ast::ItemKind::TraitAlias(..) => {
// FIXME: #2283.
self.push_rewrite(item.span, None);
}
ast::ItemKind::ExternCrate(_) => {
let rw = rewrite_extern_crate(&self.get_context(), item);
self.push_rewrite(item.span, rw);