Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add map::clear #2846

Merged

Conversation

gwillen
Copy link
Contributor

@gwillen gwillen commented Jul 8, 2012

Add clear to the map interface, and implement it in hashmap and smallintmap. This fixes #2775.

I didn't add anything to treemap, which notably doesn't implement map.

I tied my pull request to a specific commit this time instead of a branch; I'm not sure whether that's better, or whether I'll be able to change what commit, if I need to revise it. We'll see!

Add clear to the map interface, and implement it in hashmap and smallintmap.
@gwillen
Copy link
Contributor Author

gwillen commented Jul 8, 2012

The answer to my question appears to be no: if you tie a pull request to a commit, you can't change it later.

This is too bad. (I didn't like the other workflow, because if I rewrite history to squash the new commit onto the old one to keep it clean, the pull request forgets the old one ever existed. I thought maybe this would not do that. I guess to keep history in a pull request you have to keep the history of the commits and not squash them once it's filed.)

brson added a commit that referenced this pull request Jul 9, 2012
@brson brson merged commit aa232a5 into rust-lang:incoming Jul 9, 2012
@brson
Copy link
Contributor

brson commented Jul 9, 2012

Thanks!

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 28, 2023
Remove a test that wasn't carrying its weight

See rust-lang#110107 (comment) for discussion.

TLDR: it keeps breaking out of unrelated reasons and the real thing to check (early alloc ids can be tracked without ICEing miri) is hard to check otherwise.
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Update Rust toolchain to `nightly-2023-10-31`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants