Use bytepos to compare impl items

This commit is contained in:
topecongiro 2018-04-30 16:19:52 +09:00
parent 48e193c7f6
commit 37c216c50f

View File

@ -604,7 +604,7 @@ impl<'a> FmtVisitor<'a> {
(_, Const(..)) => Ordering::Greater,
(Macro(..), _) => Ordering::Less,
(_, Macro(..)) => Ordering::Greater,
_ => Ordering::Less,
_ => a.span.lo().cmp(&b.span.lo()),
});
let mut prev_kind = None;
for (buf, item) in buffer {