Ensure symbols are written in a predictable order in conflict messages

This commit is contained in:
Max Brunsfeld 2019-02-08 09:39:00 -08:00
parent 1d1674811c
commit 51a9f14f7d

View file

@ -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;