mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Move enum definition closer to its usage.
This commit is contained in:
parent
df7fd119d2
commit
15754f5ea1
@ -267,17 +267,17 @@ pub fn make_format_args(
|
||||
})
|
||||
};
|
||||
|
||||
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();
|
||||
|
||||
enum ArgRef<'a> {
|
||||
Index(usize),
|
||||
Name(&'a str, Option<Span>),
|
||||
}
|
||||
use ArgRef::*;
|
||||
|
||||
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();
|
||||
|
||||
let mut lookup_arg = |arg: ArgRef<'_>,
|
||||
span: Option<Span>,
|
||||
used_as: PositionUsedAs,
|
||||
|
Loading…
Reference in New Issue
Block a user