Skip to content

Assorted small bugfixes. #8677

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

Closed
wants to merge 4 commits into from
Closed

Assorted small bugfixes. #8677

wants to merge 4 commits into from

Conversation

bblum
Copy link
Contributor

@bblum bblum commented Aug 21, 2013

r anybody; there isn't anything complicated here

macro_rules! assert_once_ever(
($( $msg:expr),+) => ( {
// FIXME(#8472) extra function should not be needed to hide unsafe
fn assert_once_ever() {
Copy link
Member

Choose a reason for hiding this comment

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

This presumably breaks if it's used twice?

Copy link
Member

Choose a reason for hiding this comment

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

(Wait, I see, it's got an inner block so the fn is scoped within it.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, macro hygiene saves the day

bors added a commit that referenced this pull request Aug 23, 2013
r anybody; there isn't anything complicated here
@bors bors closed this Aug 23, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 21, 2022
…r=giraffate

Add `usize` cast to `clippy::manual_bits` suggestion

A fix for the suggestion from rust-lang/rust-clippy#8213

changelog: [`manual_bits`]: The suggestion now includes a cast for proper type conversion
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