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

Fix UB in test helpers #39095

Merged
merged 1 commit into from
Jan 17, 2017
Merged

Fix UB in test helpers #39095

merged 1 commit into from
Jan 17, 2017

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Jan 16, 2017

Macro expansion producing defined has undefined behavior in C/C++.

Macro expansion producing defined has undefined behavior in C/C++.
@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@est31
Copy link
Member

est31 commented Jan 16, 2017

Oh, didn't know it was UB. I've thought it was good to define a variable as then the code can be self explaining. Thanks!

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jan 16, 2017

📌 Commit 5add9b9 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jan 17, 2017

⌛ Testing commit 5add9b9 with merge 0825c96...

bors added a commit that referenced this pull request Jan 17, 2017
Fix UB in test helpers

Macro expansion producing defined has undefined behavior in C/C++.
@bors
Copy link
Contributor

bors commented Jan 17, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 0825c96 to master...

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.

5 participants