Skip to content

#144 Changed clang::TranslationUnit::parse to return an Option #153

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
Oct 27, 2016
Merged

#144 Changed clang::TranslationUnit::parse to return an Option #153

merged 1 commit into from
Oct 27, 2016

Conversation

igilham
Copy link

@igilham igilham commented Oct 27, 2016

Changed the potentially null pointer to an Optional.

The caller previously assumed the pointer was always valid and not null, so I called expect to make it fail early if it isn't.

Fixes #144.

@fitzgen
Copy link
Member

fitzgen commented Oct 27, 2016

Huh, looks like tests pass on Travis CI, so I'm not sure what you were seeing locally.

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.

Looks perfect! Thanks @igilham!

@fitzgen
Copy link
Member

fitzgen commented Oct 27, 2016

r? @emilio

@emilio
Copy link
Contributor

emilio commented Oct 27, 2016

Thanks a ton for this!

@bors-servo: r+

@bors-servo
Copy link

📌 Commit 362eac2 has been approved by emilio

@bors-servo
Copy link

⚡ Test exempted - status

@bors-servo bors-servo merged commit 362eac2 into rust-lang:master Oct 27, 2016
bors-servo pushed a commit that referenced this pull request Oct 27, 2016
Changed the potentially null pointer to an Optional.

The caller previously assumed the pointer was always valid and not null, so I called `expect` to make it fail early if it isn't.

Fixes #144.
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