File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1169,10 +1169,10 @@ pub(crate) fn format_trait(
11691169 let header = format ! (
11701170 "{}{}{}{}{}trait " ,
11711171 format_visibility( context, & item. vis) ,
1172+ format_impl_restriction( context, impl_restriction) ,
11721173 format_constness( constness) ,
11731174 format_safety( safety) ,
11741175 format_auto( is_auto) ,
1175- format_impl_restriction( context, impl_restriction) ,
11761176 ) ;
11771177 result. push_str ( & header) ;
11781178
Original file line number Diff line number Diff line change @@ -18,24 +18,25 @@ bar )
1818trait Baz { }
1919
2020pub
21- const
2221impl
2322( self )
23+ const
2424trait QuxConst { }
2525
26- pub
27- auto impl (
26+ pub
27+ impl (
2828super
29- )
29+ ) auto
3030trait QuxAuto { }
3131
32- pub
33- unsafe impl
34- ( in crate)
32+ pub
33+ impl
34+ ( in crate) unsafe
3535trait QuxUnsafe { }
3636
37- pub const
38- unsafe impl
37+ pub
38+ impl
3939( in super
4040:: foo )
41+ const unsafe
4142trait QuxConstUnsafe { }
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ pub impl(in crate) trait Bar {}
66
77pub impl ( in foo:: bar ) trait Baz { }
88
9- pub const impl( self ) trait QuxConst { }
9+ pub impl( self ) const trait QuxConst { }
1010
11- pub auto impl ( super ) trait QuxAuto { }
11+ pub impl ( super ) auto trait QuxAuto { }
1212
13- pub unsafe impl ( in crate) trait QuxUnsafe { }
13+ pub impl ( in crate) unsafe trait QuxUnsafe { }
1414
15- pub const unsafe impl( in super :: foo) trait QuxConstUnsafe { }
15+ pub impl ( in super :: foo ) const unsafe trait QuxConstUnsafe { }
You can’t perform that action at this time.
0 commit comments