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)
Core
CSS Parsing and Computation
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 hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
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+
Assignee | ||
Comment 3•7 years ago
|
||
> (I really don't love this setup fwiw)
I want a replace_type toml section, may add one later.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → manishearth
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by manishearth@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d82b3d0ec21a
Clean up FFI lifetimes to work on nightly; r=emilio
Comment 7•7 years ago
|
||
mozreview-review |
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+
Comment 8•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•7 years ago
|
status-firefox55:
--- → wontfix
status-firefox56:
--- → wontfix
status-firefox-esr52:
--- → unaffected
Comment 9•7 years ago
|
||
https://hg.mozilla.org/projects/date/rev/d82b3d0ec21a2b4ce4be10c1ce8b2f88b9129ca9
Bug 1386887 - Clean up FFI lifetimes to work on nightly; r=emilio
You need to log in
before you can comment on or make changes to this bug.
Description
•