-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Suppress warnings #14186
Suppress warnings #14186
Conversation
@@ -1116,7 +1116,7 @@ mod test { | |||
spawn(proc() { | |||
tx.send(TcpStream::connect(addr.ip.to_str(), port).unwrap()); | |||
}); | |||
let l = rx.recv(); | |||
let _ = rx.recv(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a little subtly different than intended. This will destroy the received message immediately, but the message needs to live for the length of the block. Could you change the name to _l
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I'm sorry.
Could you squash the last commit into the first ones? Otherwise I think this is good to go! |
OK. I'll try. |
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
On 32bit platforms, int is the same as i32, so 0xffffffff is "out of range." Annotating variables as u32 fixes the problems. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Done. r? |
... or roll-up? 😃 |
…ng#14186) The `needless_raw_string_hashes` lint was implemented in rust-lang#10884. However, the name originally considered might have been `unnecessary_raw_string_hashes`, so this part refers to a non-existent lint. r? flip1995 changelog: none
No description provided.