We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7fd11 commit 15754f5Copy full SHA for 15754f5
compiler/rustc_builtin_macros/src/format.rs
@@ -267,17 +267,17 @@ pub fn make_format_args(
267
})
268
};
269
270
+ let num_explicit_args = args.len();
271
+ let mut used = vec![false; num_explicit_args];
272
+ let mut invalid_refs = Vec::new();
273
+ let mut numeric_refences_to_named_arg = Vec::new();
274
+
275
enum ArgRef<'a> {
276
Index(usize),
277
Name(&'a str, Option<Span>),
278
}
279
use ArgRef::*;
280
- let num_explicit_args = args.len();
- let mut used = vec![false; num_explicit_args];
- let mut invalid_refs = Vec::new();
- let mut numeric_refences_to_named_arg = Vec::new();
-
281
let mut lookup_arg = |arg: ArgRef<'_>,
282
span: Option<Span>,
283
used_as: PositionUsedAs,
0 commit comments