Skip to content

clang: Avoid a hot FFI call for getting the cursor kind. #545

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 1 commit into from
Feb 27, 2017

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Feb 27, 2017

This is a sorta-hot call already.

I've noticed #544 wants to add more assertions about this, and was going to
suggest moving them to debug_assert!.

But there's an easier way :)

r? @fitzgen

This is a sorta-hot call already.

I've noticed rust-lang#544 wants to add more assertions about this, and was going to
suggest moving them to `debug_assert!`.

But there's an easier way :)

Signed-off-by: Emilio Cobos Álvarez <[email protected]>
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

LGTM

@fitzgen
Copy link
Member

fitzgen commented Feb 27, 2017

@bors-servo r+

@bors-servo
Copy link

📌 Commit cd55e94 has been approved by fitzgen

bors-servo pushed a commit that referenced this pull request Feb 27, 2017
clang: Avoid a hot FFI call for getting the cursor kind.

This is a sorta-hot call already.

I've noticed #544 wants to add more assertions about this, and was going to
suggest moving them to `debug_assert!`.

But there's an easier way :)

r? @fitzgen
@bors-servo
Copy link

⌛ Testing commit cd55e94 with merge 49b4dc8...

@emilio emilio mentioned this pull request Feb 27, 2017
4 tasks
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: fitzgen
Pushing 49b4dc8 to master...

@bors-servo bors-servo merged commit cd55e94 into rust-lang:master Feb 27, 2017
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