Fix mozilla-central build errors with rust 1.42
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox76 fixed)
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
This is causing CI failures on github because we always run with latest compiler there. https://github.com/servo/webrender/pull/3883#issuecomment-598715901
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
https://searchfox.org/mozilla-central/rev/278046367dab878316f60f0bd7f740cf73f3c447/testing/mozbase/rust/mozversion/src/lib.rs#264 has the same problem. I can fix that up too. /cc :ato and :jgraham who might see bugs filed for that.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
I'm running into other warnings-as-errors causing my build to fail. Expanding scope of this bug to fix all the things.
Comment 3•5 years ago
|
||
An example of warnings with 1.42
Compiling mozversion v0.2.1 (/root/firefox-gcc-last/testing/mozbase/rust/mozversion)
error: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
--> testing/mozbase/rust/mozversion/src/lib.rs:264:44
|
264 | Error::SemVerError(ref e) => e.description(),
| ^^^^^^^^^^^
Comment 4•5 years ago
|
||
or
error: unnecessary parentheses around block return value
--> media/mp4parse-rust/mp4parse_capi/src/lib.rs:981:25
|
981 | (0 .. v.sample_count)
| ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
Assignee | ||
Comment 5•5 years ago
|
||
I'll push up what I have so far but my build is still going so I might tack on some extra patches if there are additional failures.
Assignee | ||
Comment 6•5 years ago
|
||
The Display trait is already implemented a few lines up.
Assignee | ||
Comment 7•5 years ago
|
||
This causes compiler warnings which makes the build fail.
Depends on D66764
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D66765
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D66766
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D66767
Assignee | ||
Comment 11•5 years ago
|
||
Depends on D66768
Assignee | ||
Comment 12•5 years ago
|
||
Depends on D66769
Comment 13•5 years ago
|
||
<3
Comment 14•5 years ago
|
||
For people who are hit by this, you can run rustup override set 1.41.0
in the objdir (or source dir if it's the parent of the objdir) to temporarily switch to the previous Rust version for the build. You may need to rerun configure.
Comment 15•5 years ago
|
||
Comment 16•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2ac0f2fe7362
https://hg.mozilla.org/mozilla-central/rev/cec2e115f4ca
https://hg.mozilla.org/mozilla-central/rev/73cd6351c700
https://hg.mozilla.org/mozilla-central/rev/0447d570189d
https://hg.mozilla.org/mozilla-central/rev/a0835622f3db
https://hg.mozilla.org/mozilla-central/rev/415064e7f439
https://hg.mozilla.org/mozilla-central/rev/52e8e9352773
Updated•5 years ago
|
Description
•