diff options
| author | Michael Goulet <michael@errs.io> | 2022-10-07 02:05:57 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-11-09 19:42:23 +0000 |
| commit | e807cb3c41cb27c88e2740eeb7f1f44988073f52 (patch) | |
| tree | c40383fc297ecf59d9de6f1e2cc731388acd4b09 /compiler/rustc_parse/src | |
| parent | fbce7decd82482466b8da8b1826a73ff49b8fbbd (diff) | |
| download | rust-e807cb3c41cb27c88e2740eeb7f1f44988073f52.tar.gz rust-e807cb3c41cb27c88e2740eeb7f1f44988073f52.zip | |
Make span_suggestions take IntoIterator
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/ty.rs b/compiler/rustc_parse/src/parser/ty.rs index 2a8512acf8c..3a67c032b3b 100644 --- a/compiler/rustc_parse/src/parser/ty.rs +++ b/compiler/rustc_parse/src/parser/ty.rs @@ -401,7 +401,7 @@ impl<'a> Parser<'a> { .span_suggestions( span.shrink_to_hi(), "add `mut` or `const` here", - ["mut ".to_string(), "const ".to_string()].into_iter(), + ["mut ".to_string(), "const ".to_string()], Applicability::HasPlaceholders, ) .emit(); |
