Skip to content

Commit

Permalink
fix dedup
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jul 31, 2019
1 parent 9e59d74 commit 22ea38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax_ext/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ impl<'a, 'b> Context<'a, 'b> {
let (mut refs, spans): (Vec<_>, Vec<_>) = refs.unzip();
// Avoid `invalid reference to positional arguments 7 and 7 (there is 1 argument)`
// for `println!("{7:7$}", 1);`
refs.dedup();
refs.sort();
refs.dedup();
let (arg_list, mut sp) = if refs.len() == 1 {
let spans: Vec<_> = spans.into_iter().filter_map(|sp| sp.map(|sp| *sp)).collect();
(
Expand Down

0 comments on commit 22ea38d

Please sign in to comment.