Closed
Bug 1705693
Opened 3 years ago
Closed 3 years ago
Broken Rust-y gtests for qcms
Categories
(Core :: Graphics: Color Management, defect, P1)
Core
Graphics: Color Management
Tracking
()
RESOLVED
FIXED
89 Branch
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: janerik, Assigned: janerik)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
When running mach rusttests
on my M1 macbook I get an error:
0:54.78 error[E0308]: mismatched types
0:54.78 --> gfx/qcms/src/gtest.rs:667:54
0:54.78 |
0:54.78 667 | assert!(self.ProduceVerifyOutput(qcms_transform_data_rgb_out_lut_neon))
0:54.78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0:54.78 | |
0:54.78 | expected enum `Option`, found fn item
0:54.78 | help: try using a variant of the expected enum: `Some(qcms_transform_data_rgb_out_lut_neon)`
0:54.78 |
0:54.78 = note: expected enum `Option<for<'r> unsafe fn(&'r transform::qcms_transform, *const u8, *mut u8, usize)>`
0:54.78 found fn item `for<'r> unsafe fn(&'r transform::qcms_transform, *const u8, *mut u8, usize) {qcms_transform_data_rgb_out_lut_neon}`
ProduceVerifyOutput
takes an Option<...>
. I don't think this code ever worked, not sure how it didn't trigger earlier (might also be that my build setup is otherwise busted, but regardless the code can not work).
I'll post a patch that fixes this.
Assignee | ||
Comment 1•3 years ago
|
||
ProduceVerifyOutput
takes an transform_fn_t
, which is a type
definition for Option<unsafe fn(...)>
.
So we need to pass Some
. This code can never have worked correctly.
Pushed by jrediger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fcc0e685e684 Pass verifier callback as an option. r=aosmond
Comment 3•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox89:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Updated•3 years ago
|
Keywords: regression
Updated•3 years ago
|
Has Regression Range: --- → yes
You need to log in
before you can comment on or make changes to this bug.
Description
•