mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 21:42:44 +00:00
Use bytepos to compare impl items
This commit is contained in:
parent
48e193c7f6
commit
37c216c50f
@ -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…
Reference in New Issue
Block a user