This repository was archived by the owner on Jul 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
So many warnings that need fixing #62
Labels
Comments
bors-servo
pushed a commit
that referenced
this issue
Jun 29, 2017
Deal with two ultra-trivial warnings I was too lazy to set git up and clone the repo locally, so these are the only warnings from the mondo list in #62 that I could do anything about right now. I'd like to get to at least some of the rest—the private-type-in-public-interface ones seem at first glance to be pretty doable, but I'd need to be able to run the compiler over the code to check for cascades. (The fact I did this entirely in the Github UI also means I couldn't squash the two commits myself. Sorry.) <!-- 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-text-rs/64) <!-- Reviewable:end -->
bors-servo
pushed a commit
that referenced
this issue
Jul 5, 2017
Fix core-text related warnings (#62) ### Fix private-in-public warnings (error E0446) Fixed by prepending `pub` to the offending types. Not sure if its the best way but it was the only thing that worked. Other methods I've tried to maintain privateness: * Replace with an empty enum. That threw an error. * Make it public and wrap within a private module. That threw an error too as `#[repr(C)]` does not accept modules ### Fix use of extern static warnings by wrapping in unsafe block (error E0133) I think this is self-explanatory. ### Fix zero-size struct warnings on certain CT* types Wrap around c_void as I believe the types are only used as pointers. Again, let me know if there is a better way to do this. I've tried following [this discussion](rust-lang/rust#27303) on opaque C types but I don't think there is a consensus. I came across this [discussion](Rust-SDL2/rust-sdl2#442) from the Rust SDL2 bindings and they eventually [opted](Rust-SDL2/rust-sdl2#445) for the solution that I implemented. This is my first pull request (hence, first open source contribution) and I've been playing with Rust for the past few weeks. So please, if anything isnt up to standards or correctness, let me know! Also, to squash the other warnings, those changes would have to made in the modules where those types reside (core-graphics and core-foundation). I would gladly open a PR to fix those too if all looks good. Thanks! <!-- 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-text-rs/65) <!-- Reviewable:end -->
I'm interested at plodding through these. |
That would be great! |
It looks like the warnings from I'm going to take a look at those first, and that should help here when they're updated. |
rthomas
added a commit
to rthomas/core-text-rs
that referenced
this issue
Jul 24, 2017
The remaining warnings are from types in core-foundation(CGAffineTransform) and core-graphics(CFNumberRef). When they are rectified the warnings can be turned back on.
This was referenced Jul 27, 2017
This issue will be resolved when the PR's are merged and |
bors-servo
pushed a commit
to servo/core-foundation-rs
that referenced
this issue
Jul 27, 2017
Remove zero-sized struct warning. #106. This change will fix the remaining warnings in servo/core-text-rs#62 when it is released and the core-text crate is updated. <!-- 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-foundation-rs/107) <!-- Reviewable:end -->
bors-servo
pushed a commit
to servo/core-graphics-rs
that referenced
this issue
Jul 27, 2017
Remove warnings for zero-sized structs This change removes a bunch of warnings from the crate. The only remaining warnings are due to the bitflags macro usage. This will help fix servo/core-text-rs#62 when it upgrades to `core-graphics = 0.9`. @jdm <!-- 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/90) <!-- Reviewable:end -->
bors-servo
pushed a commit
to servo/core-foundation-rs
that referenced
this issue
Jul 27, 2017
Remove zero-sized struct warning. #106. This change will fix the remaining warnings in servo/core-text-rs#62 when it is released and the core-text crate is updated. <!-- 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-foundation-rs/107) <!-- Reviewable:end -->
rthomas
added a commit
to rthomas/core-text-rs
that referenced
this issue
Aug 1, 2017
bors-servo
pushed a commit
that referenced
this issue
Aug 1, 2017
Bump foundation and graphics versions for #62. This removes the last of the compiler warnings. <!-- 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-text-rs/68) <!-- Reviewable:end -->
bors-servo
pushed a commit
that referenced
this issue
Aug 2, 2017
Bump foundation and graphics versions for #62. This removes the last of the compiler warnings. <!-- 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-text-rs/68) <!-- Reviewable:end -->
@jdm time to give this a close? |
Yep! |
rthomas
added a commit
to rthomas/core-text-rs
that referenced
this issue
Aug 22, 2017
Due to servo/webrender#1592 the dependency upgrade was reverted for 6.x and added to 7.x.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: