Lower anonymous structs or unions to HIR
This commit is contained in:
parent
18f51f79f3
commit
88c5838c06
@ -806,8 +806,8 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option<String>
|
|||||||
ast::TyKind::Tup(ref items) => {
|
ast::TyKind::Tup(ref items) => {
|
||||||
rewrite_tuple(context, items.iter(), self.span, shape, items.len() == 1)
|
rewrite_tuple(context, items.iter(), self.span, shape, items.len() == 1)
|
||||||
}
|
}
|
||||||
ast::TyKind::AnonStruct(_) => Some(context.snippet(self.span).to_owned()),
|
ast::TyKind::AnonStruct(..) => Some(context.snippet(self.span).to_owned()),
|
||||||
ast::TyKind::AnonUnion(_) => Some(context.snippet(self.span).to_owned()),
|
ast::TyKind::AnonUnion(..) => Some(context.snippet(self.span).to_owned()),
|
||||||
ast::TyKind::Path(ref q_self, ref path) => {
|
ast::TyKind::Path(ref q_self, ref path) => {
|
||||||
rewrite_path(context, PathContext::Type, q_self, path, shape)
|
rewrite_path(context, PathContext::Type, q_self, path, shape)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user