Skip to content

Fix #7017, add test#7018

Merged
bors merged 2 commits into
rust-lang:incomingfrom
bill-myers:fix_7017
Jun 9, 2013
Merged

Fix #7017, add test#7018
bors merged 2 commits into
rust-lang:incomingfrom
bill-myers:fix_7017

Conversation

@bill-myers

Copy link
Copy Markdown
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
Copy Markdown
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

huonw commented Jun 9, 2013

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor Author

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

@bill-myers

Copy link
Copy Markdown
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