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

Suppress warnings #14186

Merged
merged 2 commits into from
May 14, 2014
Merged

Suppress warnings #14186

merged 2 commits into from
May 14, 2014

Conversation

omasanori
Copy link
Contributor

No description provided.

@@ -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();
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I'm sorry.

@alexcrichton
Copy link
Member

Could you squash the last commit into the first ones? Otherwise I think this is good to go!

@omasanori
Copy link
Contributor Author

OK. I'll try.

omasanori added 2 commits May 14, 2014 09:14
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>
@omasanori
Copy link
Contributor Author

Done. r?

@omasanori
Copy link
Contributor Author

... or roll-up? 😃

@bors bors closed this May 14, 2014
@bors bors merged commit 7af5f64 into rust-lang:master May 14, 2014
@omasanori omasanori deleted the suppress-warnings branch May 14, 2014 14:41
flip1995 added a commit to flip1995/rust that referenced this pull request Feb 20, 2025
…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
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