Uh oh!
There was an error while loading. Please reload this page.
Upgrade array_into_iter lint to include Deref-to-array types. - #88512
Merged
Conversation
rust-highfive
commented
Aug 30, 2021
Contributor
r? @cjgillot (rust-highfive has picked a reviewer for you, use r? to override) |
28 tasks
m-ou-se
commented
Aug 31, 2021
MemberAuthor
cc @estebank because diagnostics |
estebank
reviewed
Sep 1, 2021
Comment on lines
-82
to
-85
| help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value | ||
| | | ||
| LL | IntoIterator::into_iter(Box::new(small)); | ||
| | ++++++++++++++++++++++++ ~ |
Contributor
There was a problem hiding this comment.
Do we still emit this suggestion in any case?
MemberAuthor
There was a problem hiding this comment.
Yes, for [1, 2, 3].into_iter(). See line 65 in this file.
estebank
approved these changes
Sep 1, 2021
estebank
left a comment
Contributor
There was a problem hiding this comment.
The changes look reasonable to me.
cjgillot
commented
Sep 1, 2021
Contributor
r? @estebank |
estebank
commented
Sep 2, 2021
Contributor
@bors r+ |
bors
commented
Sep 2, 2021
Collaborator
📌 Commit 96d4666 has been approved by |
bors added a commit
to rust-lang-ci/rust
that referenced
this pull request
Sep 2, 2021
Rollup of 12 pull requests Successful merges: - rust-lang#88177 (Stabilize std::os::unix::fs::chroot) - rust-lang#88505 (Use `unwrap_unchecked` where possible) - rust-lang#88512 (Upgrade array_into_iter lint to include Deref-to-array types.) - rust-lang#88532 (Remove single use variables) - rust-lang#88543 (Improve closure dummy capture suggestion in macros.) - rust-lang#88560 (`fmt::Formatter::pad`: don't call chars().count() more than one time) - rust-lang#88565 (Add regression test for issue 83190) - rust-lang#88567 (Remove redundant `Span` in `QueryJobInfo`) - rust-lang#88573 (rustdoc: Don't panic on ambiguous inherent associated types) - rust-lang#88582 (Implement rust-lang#88581) - rust-lang#88589 (Correct doc comments inside `use_expr_visitor.rs`) - rust-lang#88592 (Fix ICE in const check) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#88099
Fixes the issue mentioned here: #84147 (comment)