Skip to content

Handle re-declaration of a global variable. Fix #47 #63

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

Merged
merged 2 commits into from
Sep 26, 2016

Conversation

jeanphilippeD
Copy link
Contributor

No description provided.

@jeanphilippeD jeanphilippeD changed the title Handle re-declaration of a global variable. Fix #48 Handle re-declaration of a global variable. Fix #47 Sep 25, 2016
let name = item.canonical_name(ctx);
let canonical_name = item.canonical_name(ctx);

// TODO: Maybe warn here if there's a type mismatch
Copy link
Contributor

Choose a reason for hiding this comment

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

Clang already does it, I think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comment.
Do you mean the TODO is not necessary?
I guess it would result in a compile error in the C or C++ code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, from what I remember bindgen prints clang warnings, so there is no need to do an other warning

@emilio
Copy link
Contributor

emilio commented Sep 26, 2016

Looks great, thanks!

@bors-servo: r+

@bors-servo
Copy link

📌 Commit 8b41159 has been approved by emilio

@bors-servo
Copy link

⚡ Test exempted - status

@bors-servo bors-servo merged commit 8b41159 into rust-lang:master Sep 26, 2016
bors-servo pushed a commit that referenced this pull request Sep 26, 2016
Handle re-declaration of a global variable. Fix #47
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