Update cbindgen to 0.14
Categories
(Core :: General, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox77 | --- | fixed |
People
(Reporter: kvark, Assigned: kvark)
References
Details
Attachments
(1 file)
| Assignee | ||
Comment 1•5 years ago
|
||
Comment 3•5 years ago
|
||
Backed out changeset e60ce7274c9f for causing bustages in ServoStyleConsts.h
Backout link: https://hg.mozilla.org/integration/autoland/rev/b21b9142dcbf850c201002672ab5cd24b2a4701e
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=297060952&repo=autoland&lineNumber=23778
| Assignee | ||
Comment 4•5 years ago
|
||
Alexandru, are you sure that's caused by my change? The try had similar builds that went OK: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5f76e484951034220f6df74250b54f3490da9d7f
Comment 5•5 years ago
|
||
I believe so, the builds that failed on autoland are slightly different than the builds that ran on the try push you linked:
https://treeherder.mozilla.org/#/jobs?repo=autoland&collapsedPushes=676749&tochange=b21b9142dcbf850c201002672ab5cd24b2a4701e&searchStr=linux%2Cx64%2Cdebug%2Cbuild-linux64-base-toolchains%2Fdebug%2C%28bb%29&fromchange=c4fa7454aab6ebfc74c8ca92a0a27545b248c232&selectedJob=297060952
| Assignee | ||
Comment 6•5 years ago
|
||
Yeah, I think you are correct, Alexandru!
Emilio, you might have ideas about which of the changes regressed Servo. No worries if you are busy, I'll keep looking nevertheless.
Comment 7•5 years ago
|
||
So this is:
bool operator==(const StyleGenericCalcNode& other) const {
if (tag != other.tag) {
return false;
}
switch (tag) {
case Tag::Leaf: return leaf == other.leaf;
case Tag::Sum: return sum == other.sum;
case Tag::MinMax: return min_max == other.min_max;
case Tag::Clamp: return clamp == other.clamp;
}
}
Which with 0.13 it generates:
bool operator==(const StyleGenericCalcNode& other) const {
if (tag != other.tag) {
return false;
}
switch (tag) {
case Tag::Leaf: return leaf == other.leaf;
case Tag::Sum: return sum == other.sum;
case Tag::MinMax: return min_max == other.min_max;
case Tag::Clamp: return clamp == other.clamp;
default: return true;
}
}
So this broke it, basically: https://github.com/eqrion/cbindgen/pull/475
We can generate a return statement outside of the switch to work around it I guess.
Comment 8•5 years ago
|
||
https://github.com/eqrion/cbindgen/pull/509. Will try to get it released today.
Comment 9•5 years ago
|
||
Fwiw, i had a thunderbird 76.0b1 build failure when testing cbindgen 0.14.0. Is the beta branch supposed to build with this newer cbindgen version ?
Reverting back to 0.13.1 seems to help so far. Will test upcoming release.
Comment 10•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=97de7e703a44a247014159b828689354bcde980c looks green.
:gaston it should work with cbindgen 0.14.1 which I'll release today.
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
| bugherder | ||
Comment 13•5 years ago
|
||
Can confirm that tb 76.0b1 builds with cbindgen 0.14.1, thanks!
Description
•