Skip to content

Add clang::Type::is_valid and use it instead of checking self.kind() against CXType_Invalid #224

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 3 commits into from
Nov 8, 2016

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Nov 7, 2016

Needed is_valid() when debugging, so figured we should land this and update places where we compare against the magical sentinel value.

r? @emilio

@emilio
Copy link
Contributor

emilio commented Nov 7, 2016

r=me, though you probably want to drop the first commit or close #223, because otherwise they're going to conflict.

@bors-servo delegate+

@bors-servo
Copy link

✌️ @fitzgen can now approve this pull request

@fitzgen
Copy link
Member Author

fitzgen commented Nov 7, 2016

r=me, though you probably want to drop the first commit or close #223, because otherwise they're going to conflict.

Why would they conflict? This is on top of that commit.

@fitzgen
Copy link
Member Author

fitzgen commented Nov 7, 2016

@bors-servo r=emilio

@bors-servo
Copy link

📌 Commit d5ee20c has been approved by emilio

bors-servo pushed a commit that referenced this pull request Nov 8, 2016
Add `clang::Type::is_valid` and use it instead of checking self.kind() against CXType_Invalid

Needed `is_valid()` when debugging, so figured we should land this and update places where we compare against the magical sentinel value.

r? @emilio
@bors-servo
Copy link

⌛ Testing commit d5ee20c with merge 108c4ca...

@bors-servo
Copy link

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit d5ee20c into rust-lang:master Nov 8, 2016
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