-
Notifications
You must be signed in to change notification settings - Fork 222
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
Conversation
for &(ref key, ref value) in pairs { | ||
keys.push(key.as_CFTypeRef()); | ||
values.push(value.as_CFTypeRef()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you need to remove the iterator usages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unzip
is unfortunately unstable: http://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.unzip
rust-lang/rust#23908 stabilized |
Convenient! I added back I'm waiting for another nightly that includes rust-lang/rust#23947 so I can test this, but it appears it'll work then. |
r+ |
Update for stable Rust by removing the core feature
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 -->
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 -->
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
andstd::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.