Skip to content
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 #7017, add test #7018

Merged
merged 2 commits into from
Jun 9, 2013
Merged

Fix #7017, add test #7018

merged 2 commits into from
Jun 9, 2013

Conversation

bill-myers
Copy link
Contributor

Minimally fixes #7017, we were overwriting the result and thus ignoring attributes before the last.

csearch::get_item_attrs and decoder::get_item_attrs should probably also be changed to each_item_attrs using the for protocol, but that's just a minor performance/style issue.

@bill-myers
Copy link
Contributor Author

error: unresolved import: could not find rc in std.'

Works for me, is the test environment somehow different, and not putting the definitions libstd/rc.rs in std::rc in module std like one would expect?

@huonw
Copy link
Member

huonw commented Jun 9, 2013

@bill-myers std got renamed to extra, so it's in extra::rc.

We were just looking at the last because we were overwriting ret.
@bill-myers
Copy link
Contributor Author

Ok, changed to extra and rebased, should work now.

@bill-myers
Copy link
Contributor Author

Sorry, forgot the std -> extra rename in the expected error, third attempt uploaded.

bors added a commit that referenced this pull request Jun 9, 2013
Minimally fixes #7017, we were overwriting the result and thus ignoring attributes before the last.

csearch::get_item_attrs and decoder::get_item_attrs should probably also be changed to each_item_attrs using the for protocol, but that's just a minor performance/style issue.
@bors bors closed this Jun 9, 2013
@bors bors merged commit 54ec7ab into rust-lang:incoming Jun 9, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 8, 2021
Don't trigger `same_item_push` if the vec is used in the loop body

fixes rust-lang#6987
changelog: `same_item_push`: Don't trigger if the `vec` is used in the loop body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants