mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
Add an initial support for trait aliases
This commit is contained in:
parent
fad903fd14
commit
d60c2ec5d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user