Skip to content

Return meaningful error values when parsing #155

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
Jun 9, 2017
Merged

Conversation

jdm
Copy link
Member

@jdm jdm commented Jun 7, 2017

This is #143 with an extra commit added to accommodate changes requested in servo/servo#16752.


This change is Reviewable

@jdm
Copy link
Member Author

jdm commented Jun 7, 2017

This should not be merged until servo/servo#16752 is ready to merge.

@jdm
Copy link
Member Author

jdm commented Jun 7, 2017

r? @SimonSapin for the changes in 63bdb44.

@SimonSapin
Copy link
Member

SimonSapin commented Jun 7, 2017

r+ with unit tests fixed. (Travis-CI fails.)

@SimonSapin
Copy link
Member

Reviewed 4 of 8 files at r2, 3 of 3 files at r3, 1 of 1 files at r4.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.


src/parser.rs, line 75 at r4 (raw file):

impl<'t> ops::Deref for ParserInput<'t> {
    type Target = Tokenizer<'t>;

This makes the tokenizer effectively public. Please remove the Deref impls (and add .0 as needed in this file.)


Comments from Reviewable

jdm added 2 commits June 8, 2017 16:48
Rewrite some public APIs to support returning error types that contain
borrowed pointers to the parser's input.
@jdm jdm force-pushed the err2 branch 2 times, most recently from 543eae7 to 970e1ca Compare June 9, 2017 20:36
@jdm
Copy link
Member Author

jdm commented Jun 9, 2017

@bors-servo: r=SimonSapin

@bors-servo
Copy link
Contributor

📌 Commit 970e1ca has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 970e1ca with merge 06e204e...

bors-servo pushed a commit that referenced this pull request Jun 9, 2017
Return meaningful error values when parsing

This is #143 with an extra commit added to accommodate changes requested in servo/servo#16752.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/155)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: SimonSapin
Pushing 06e204e to master...

@bors-servo bors-servo merged commit 970e1ca into servo:master Jun 9, 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.

3 participants