Skip to content
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

Make match_ignore_ascii_case! future-proof. #91

Merged
merged 1 commit into from
Jan 19, 2016
Merged

Make match_ignore_ascii_case! future-proof. #91

merged 1 commit into from
Jan 19, 2016

Conversation

SimonSapin
Copy link
Member

Change the usage syntax to require a comma on the last non-fallback arm, which is a [breaking-change].

The old definition has started to emit a warning in recent nightlies and is likely to be an error in future versions: rust-lang/rfcs#1384

The new definition is recursive to resolve ambiguities. Unfortunately this makes error reporting terrible: rust-lang/rust#31022

Review on Reviewable

Change the usage syntax to require a comma on the last non-fallback arm,
which is a [breaking-change].

The old definition has started to emit a warning in recent nightlies
and is likely to be an error in future versions:
rust-lang/rfcs#1384

The new definition is recursive to resolve ambiguities.
Unfortunately this makes error reporting terrible:
rust-lang/rust#31022
@SimonSapin
Copy link
Member Author

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 0c78da0 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⌛ Testing commit 0c78da0 with merge 6b46e72...

bors-servo pushed a commit that referenced this pull request Jan 19, 2016
Make match_ignore_ascii_case! future-proof.

Change the usage syntax to require a comma on the last non-fallback arm, which is a [breaking-change].

The old definition has started to emit a warning in recent nightlies and is likely to be an error in future versions: rust-lang/rfcs#1384

The new definition is recursive to resolve ambiguities. Unfortunately this makes error reporting terrible: rust-lang/rust#31022

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/91)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - travis

@bors-servo bors-servo merged commit 0c78da0 into master Jan 19, 2016
@SimonSapin SimonSapin deleted the macro branch January 19, 2016 12:59
SimonSapin added a commit to servo/servo that referenced this pull request Jan 19, 2016
bors-servo pushed a commit to servo/servo that referenced this pull request Jan 19, 2016
Update cssparser.

servo/rust-cssparser#91

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380)
<!-- Reviewable:end -->
SimonSapin added a commit to servo/servo that referenced this pull request Jan 19, 2016
bors-servo pushed a commit to servo/servo that referenced this pull request Jan 19, 2016
Update cssparser.

servo/rust-cssparser#91

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380)
<!-- Reviewable:end -->
bors-servo pushed a commit to servo/servo that referenced this pull request Jan 20, 2016
Update cssparser.

servo/rust-cssparser#91

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380)
<!-- Reviewable:end -->
SimonSapin added a commit to servo/servo that referenced this pull request Jan 21, 2016
bors-servo pushed a commit to servo/servo that referenced this pull request Jan 21, 2016
Update cssparser.

servo/rust-cssparser#91

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380)
<!-- Reviewable:end -->
SimonSapin added a commit to servo/servo that referenced this pull request Jan 21, 2016
bors-servo pushed a commit to servo/servo that referenced this pull request Jan 21, 2016
Update cssparser.

servo/rust-cssparser#91

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9380)
<!-- Reviewable:end -->
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…onSapin

servo/rust-cssparser#91

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ba1fb0b7f46472e1f37f4e3f2e7dde025fa9f1f

UltraBlame original commit: 9dc742835b57cb0d99cf8d0966bedcaa3e9c28c4
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…onSapin

servo/rust-cssparser#91

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ba1fb0b7f46472e1f37f4e3f2e7dde025fa9f1f

UltraBlame original commit: 9dc742835b57cb0d99cf8d0966bedcaa3e9c28c4
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…onSapin

servo/rust-cssparser#91

Source-Repo: https://github.com/servo/servo
Source-Revision: 1ba1fb0b7f46472e1f37f4e3f2e7dde025fa9f1f

UltraBlame original commit: 9dc742835b57cb0d99cf8d0966bedcaa3e9c28c4
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.

2 participants