Make span_suggestions take IntoIterator
This commit is contained in:
parent
fbce7decd8
commit
e807cb3c41
6 changed files with 11 additions and 11 deletions
|
@ -1941,7 +1941,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
|
|||
err.span_suggestions(
|
||||
span,
|
||||
&msg,
|
||||
suggestable_variants.into_iter(),
|
||||
suggestable_variants,
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
}
|
||||
|
@ -1995,7 +1995,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
|
|||
err.span_suggestions(
|
||||
span,
|
||||
msg,
|
||||
suggestable_variants.into_iter(),
|
||||
suggestable_variants,
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
}
|
||||
|
@ -2025,7 +2025,7 @@ impl<'a: 'ast, 'ast> LateResolutionVisitor<'a, '_, 'ast> {
|
|||
err.span_suggestions(
|
||||
span,
|
||||
msg,
|
||||
suggestable_variants_with_placeholders.into_iter(),
|
||||
suggestable_variants_with_placeholders,
|
||||
Applicability::HasPlaceholders,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue