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

Implement IterBytes for TypeId #10359

Merged
merged 1 commit into from
Nov 9, 2013
Merged

Conversation

tomassedovic
Copy link
Contributor

I'm not sure this is something you're interested in, but I was playing around the Any trait a bit and I wanted to try it as a key in a HashMap. To do that, TypeId needs to implement IterBytes.

bors added a commit that referenced this pull request Nov 9, 2013
I'm not sure this is something you're interested in, but I was playing around the Any trait a bit and I wanted to try it as a key in a HashMap. To do that, TypeId needs to implement IterBytes.
@bors bors closed this Nov 9, 2013
@bors bors merged commit 0865b4d into rust-lang:master Nov 9, 2013
@tomassedovic tomassedovic deleted the typeid-iterbytes branch November 9, 2013 15:15
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 10, 2023
Include async functions in the len_without_is_empty

fixes rust-lang#7232

Changes done to the functionality:

Allowing different error types for the functions was disallowed. So the following was linted before but is not after this change
```
impl Foo {
    pub len(&self) -> Result<usize, Error1> { todo!(); }
    pub is_empty(&self) -> Result<bool, Error2> { todo!(); }
}
```

---

changelog: Enhancement: [`len_without_is_empty`]: Now also detects `async` functions
[rust-lang#10359](rust-lang/rust-clippy#10359)
<!-- changelog_checked -->
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