Closed Bug 1386887 Opened 7 years ago Closed 7 years ago

stylo: Address FFI lifetime breakage in rustc nightly

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- wontfix
firefox56 --- wontfix
firefox57 --- fixed

People

(Reporter: manishearth, Assigned: manishearth)

Details

Attachments

(2 files)

We fail on nightly with https://github.com/rust-lang/rust/issues/43567 This will be fixed. However, with the fix we shall get some concrete lifetime errors (apparently elision wasn't happening correctly on FFI anyway). I'm going to preemptively fix these so that when the time comes we can effortlessly upgrade.
Comment on attachment 8893142 [details] Bug 1386887 - Clean up FFI lifetimes to work on nightly; https://reviewboard.mozilla.org/r/164142/#review169636 ::: gfx/webrender/src/render_task.rs:186 (Diff revision 1) > pub fn new_mask(task_rect: DeviceIntRect, > mask_key: MaskCacheKey, > raw_clips: &[ClipWorkItem], > extra_clip: Option<ClipWorkItem>) > -> Option<RenderTask> { > - /// Filter out all the clip instances that don't contribute to the result > + // Filter out all the clip instances that don't contribute to the result This should belong to a different commit. ::: layout/style/ServoBindings.toml:357 (Diff revision 1) > "type nsACString_internal = nsACString;", > "type nsAString_internal = nsAString;", > "pub type ServoStyleContextBorrowed<'a> = &'a ::properties::ComputedValues;", > "pub type ServoStyleContextBorrowedOrNull<'a> = Option<&'a ::properties::ComputedValues>;", > "pub type ServoComputedDataBorrowed<'a> = &'a ServoComputedData;", > + "pub type RawServoAnimationValueTableBorrowed<'a> = &'a ();" (I really don't love this setup fwiw)
Attachment #8893142 - Flags: review?(emilio+bugs) → review+
> (I really don't love this setup fwiw) I want a replace_type toml section, may add one later.
Assignee: nobody → manishearth
Status: NEW → ASSIGNED
Pushed by manishearth@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d82b3d0ec21a Clean up FFI lifetimes to work on nightly; r=emilio
Comment on attachment 8893549 [details] Bug 1386887 - Remove doc comment from statement; https://reviewboard.mozilla.org/r/164624/#review170272 I think this is a WR change and should be upstreamed, but however you land this, r=me
Attachment #8893549 - Flags: review?(emilio+bugs) → review+
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: