@@ -23,6 +23,7 @@ use expr::{rewrite_pair, rewrite_tuple, rewrite_unary_prefix, wrap_args_with_par
23
23
use items:: { format_generics_item_list, generics_shape_from_config} ;
24
24
use lists:: { definitive_tactic, itemize_list, write_list, ListFormatting , ListTactic , Separator ,
25
25
SeparatorPlace , SeparatorTactic } ;
26
+ use macros:: { rewrite_macro, MacroPosition } ;
26
27
use rewrite:: { Rewrite , RewriteContext } ;
27
28
use shape:: Shape ;
28
29
use utils:: { colon_spaces, extra_offset, first_line_width, format_abi, format_mutability,
@@ -726,7 +727,9 @@ impl Rewrite for ast::Ty {
726
727
}
727
728
ast:: TyKind :: BareFn ( ref bare_fn) => rewrite_bare_fn ( bare_fn, self . span , context, shape) ,
728
729
ast:: TyKind :: Never => Some ( String :: from ( "!" ) ) ,
729
- ast:: TyKind :: Mac ( ..) => None ,
730
+ ast:: TyKind :: Mac ( ref mac) => {
731
+ rewrite_macro ( mac, None , context, shape, MacroPosition :: Expression )
732
+ }
730
733
ast:: TyKind :: ImplicitSelf => Some ( String :: from ( "" ) ) ,
731
734
ast:: TyKind :: ImplTrait ( ref it) => it. rewrite ( context, shape)
732
735
. map ( |it_str| format ! ( "impl {}" , it_str) ) ,
0 commit comments