mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
fixup! Preserve and format type aliases in extern blocks
This commit is contained in:
parent
92ab76cfa7
commit
2a8ff209f6
@ -3059,7 +3059,7 @@ impl Rewrite for ast::ForeignItem {
|
||||
// FIXME: this may be a faulty span from libsyntax.
|
||||
let span = mk_sp(self.span.lo(), self.span.hi() - BytePos(1));
|
||||
|
||||
let item_str: String = match self.kind {
|
||||
let item_str = match self.kind {
|
||||
ast::ForeignItemKind::Fn(_, ref fn_sig, ref generics, _) => rewrite_fn_base(
|
||||
context,
|
||||
shape.indent,
|
||||
|
Loading…
Reference in New Issue
Block a user