Skip to content

Commit 22ea38d

Browse files
committed
fix dedup
1 parent 9e59d74 commit 22ea38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax_ext/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ impl<'a, 'b> Context<'a, 'b> {
300300
let (mut refs, spans): (Vec<_>, Vec<_>) = refs.unzip();
301301
// Avoid `invalid reference to positional arguments 7 and 7 (there is 1 argument)`
302302
// for `println!("{7:7$}", 1);`
303-
refs.dedup();
304303
refs.sort();
304+
refs.dedup();
305305
let (arg_list, mut sp) = if refs.len() == 1 {
306306
let spans: Vec<_> = spans.into_iter().filter_map(|sp| sp.map(|sp| *sp)).collect();
307307
(

0 commit comments

Comments
 (0)