-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the issue of invalid suggestion for a reference of iterator #127669
Conversation
r? @nnethercote rustbot has assigned @nnethercote. Use |
LL + for (src, dest) in std::iter::zip(fields.iter(), variant.iter().clone()) { | ||
| | ||
|
||
error[E0277]: `&std::slice::Iter<'_, {integer}>` is not an iterator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this diag also seems weird, it's better if we could remove it.
Could you break this into two commits?
This makes it much easier to review and see the effect of the change. Thanks! |
c8ed5c5
to
5ebfe69
Compare
5ebfe69
to
48ddf5e
Compare
Great, thanks! @bors r+ rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#127669 (Fix the issue of invalid suggestion for a reference of iterator) - rust-lang#127707 (match lowering: Use an iterator to find `expand_until`) - rust-lang#127730 (Fix and enforce `unsafe_op_in_unsafe_fn` in compiler) - rust-lang#127789 (delete #![allow(unsafe_op_in_unsafe_fn)] in teeos) - rust-lang#127805 (run-make-support: update gimli to 0.31.0) - rust-lang#127808 (Make ErrorGuaranteed discoverable outside types, consts, and lifetimes) - rust-lang#127817 (Fix a bunch of sites that were walking instead of visiting, making it impossible for visitor impls to look at these values) - rust-lang#127818 (Various ast validation simplifications) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#127669 - chenyukang:yukang-fix-deref-127590, r=nnethercote Fix the issue of invalid suggestion for a reference of iterator Fixes rust-lang#127590
Fixes #127590