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

Update for stable Rust by removing the core feature #60

Merged
merged 1 commit into from Apr 2, 2015

Conversation

@SSheldon
Copy link
Contributor

SSheldon commented Mar 28, 2015

It'd be great for libraries that depend on this crate if it worked on stable Rust. With the beta approaching soon, the unstable and deprecated APIs this crate uses are:

  • std::num::ToPrimitive and std::num::FromPrimitive
  • std::num::Int::max_value
  • std::str::Str::as_slice

This pull request replaces uses of this functionality.

The changes to CFNumber are a breaking change, but I only found servo/rust-core-text and servo/rust-azure that would be impacted, and the fix is simple.

for &(ref key, ref value) in pairs {
keys.push(key.as_CFTypeRef());
values.push(value.as_CFTypeRef());
}

This comment has been minimized.

@brendanzab

brendanzab Mar 29, 2015

Member

Why did you need to remove the iterator usages?

This comment has been minimized.

@Ms2ger
Copy link
Contributor

Ms2ger commented Apr 1, 2015

rust-lang/rust#23908 stabilized unzip.

@SSheldon
Copy link
Contributor Author

SSheldon commented Apr 2, 2015

Convenient! I added back unzip @Ms2ger.

I'm waiting for another nightly that includes rust-lang/rust#23947 so I can test this, but it appears it'll work then.

@SSheldon
Copy link
Contributor Author

SSheldon commented Apr 2, 2015

Tested in the latest nightly and this looks good.

r? @Ms2ger or @bjz

@brendanzab
Copy link
Member

brendanzab commented Apr 2, 2015

r+

brendanzab added a commit that referenced this pull request Apr 2, 2015
Update for stable Rust by removing the core feature
@brendanzab brendanzab merged commit fd42e97 into servo:master Apr 2, 2015
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
@SSheldon SSheldon deleted the SSheldon:stable_rust branch Apr 3, 2015
jdm pushed a commit that referenced this pull request Feb 1, 2018
jdm pushed a commit that referenced this pull request Feb 1, 2018
Add support for CGContextSetTextDrawingMode

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-graphics-rs/60)
<!-- Reviewable:end -->
jdm pushed a commit that referenced this pull request Feb 1, 2018
Upgrade core foundation

This is a PR in a series of PRs originating at #132

The plan is to make a breaking change to `core-foundation` and release it as `0.5.0`. But before the merge/publish of `core-foundation` I will prepare a set of PRs making sure the entire dependency graph of Servo is ready for this change and can be switched over to `0.5.0` directly.

TODO before merge:
- [x] Merge `core-foundation` PR and publish.
- [x] Remove the last commit from this PR, so we depend on code from crates.io.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/io-surface-rs/60)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.