Skip to content

Just some general cleanup in the HashMap module. #13646

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

Merged
merged 1 commit into from
Apr 22, 2014

Conversation

cgaebel
Copy link
Contributor

@cgaebel cgaebel commented Apr 20, 2014

I went through the HashMap module, fixed spelling mistakes, minor inefficiencies, added tests, and other trivial changes. Hopefully this won't be a controversial PR.

// we trigger #11998 when matching on it. I've fallen back to manual
// iteration until this is fixed.
// we trigger #11998 when matching on it. I've fallen back to using
// `contains_key` until this is fixed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue has been fixed, can this comment be removed?

@alexcrichton
Copy link
Member

Looks good to me, thanks! r=me with some squashings

@cgaebel
Copy link
Contributor Author

cgaebel commented Apr 22, 2014

Yay! All squashed.

@alexcrichton
Copy link
Member

I think the commit message may have gotten lost somewhere in the rebasing? (it's not as descriptive as it once was)

I went through the HashMap module, fixed spelling mistakes, minor
inefficiencies, added tests, and other trivial changes.
@cgaebel
Copy link
Contributor Author

cgaebel commented Apr 22, 2014

Oops. Rebasing is hard. That better?

bors added a commit that referenced this pull request Apr 22, 2014
I went through the HashMap module, fixed spelling mistakes, minor inefficiencies, added tests, and other trivial changes. Hopefully this won't be a controversial PR.
@bors bors closed this Apr 22, 2014
@bors bors merged commit 65d5661 into rust-lang:master Apr 22, 2014
flip1995 pushed a commit to flip1995/rust that referenced this pull request Dec 15, 2024
Closes rust-lang#13574

Make sure that `needless_match` doesn't simplify:

```
if let Some(_) = a() {
// ..
} else let Some(_) = b() {
// ..
}
```

to:

```
a()
```

changelog: [`needless_match`]: Fix false-positive on if lets
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.

3 participants