Use bytepos to compare impl items
This commit is contained in:
parent
48e193c7f6
commit
37c216c50f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue