Ensure symbols are written in a predictable order in conflict messages
This commit is contained in:
parent
1d1674811c
commit
51a9f14f7d
1 changed files with 2 additions and 1 deletions
|
|
@ -520,11 +520,12 @@ impl<'a> ParseTableBuilder<'a> {
|
|||
|
||||
let mut resolution_count = 0;
|
||||
write!(&mut msg, "\nPossible resolutions:\n\n").unwrap();
|
||||
let shift_items = conflicting_items
|
||||
let mut shift_items = conflicting_items
|
||||
.iter()
|
||||
.filter(|i| !i.is_done())
|
||||
.cloned()
|
||||
.collect::<Vec<_>>();
|
||||
shift_items.sort_unstable();
|
||||
if actual_conflict.len() > 1 {
|
||||
if shift_items.len() > 0 {
|
||||
resolution_count += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue