Closed Bug 1778604 Opened 2 years ago Closed 2 years ago

Switch rust-dev to "stable" rust

Categories

(Firefox Build System :: Toolchains, task)

task

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

No description provided.

Sanitizer builds require unstable features from the rust compiler, and
the common way to achieve this is to use a nightly rust compiler,
which we had been doing for a while.

Later on, we also needed to use unstable features that actually require
some patches to both rustc and cargo to work properly for our needs, so
we switched to taking the source of a nightly rust compiler, patch and
build it, and use that.

But finding an appropriate nightly rust compiler is not always easy. We
want something close enough from the stable rust compiler we're using
otherwise, which we've been using the first nightly that has the
following version number for. But it also can happen that those versions
have bugs that have been fixed later and then uplifted during the beta
period (and thus fixed in the stable rust compiler).

On the other hand, taking the source of the stable rust compiler and
compiling it with a channel set to dev (actually the default) or
nightly yields a compiler that is very close to the actual stable rust
compiler, but acts like a nightly compiler and allows to enable unstable
features.

So instead of trying to pick a good version from the nightly channel,
just use the same version as the stable rust version we use.

Attachment #9284629 - Attachment description: Bug 1778604 - Switch rust-dev builds to "stable" rust. → Bug 1778604 - Switch rust-dev to "stable" rust.
Summary: Switch rust-dev builds to "stable" rust → Switch rust-dev to "stable" rust
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/6003b7bd42f7
Switch rust-dev to "stable" rust. r=firefox-build-system-reviewers,andi
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: