Skip to content

bootstrap rustNightly from rustBeta never works with the 'correct' channels #38026

Closed
@qknight

Description

@qknight

what we want

hey,
on NixOS we want to have stable, beta and nightly built as according to the docs of rust but we tried many different versions and it always fails with errors like this:

https://gist.github.com/qknight/15550e3b24b8a503897ac92fffe88804

or in short:

error[E0554]: #[feature] may not be used on the beta release channel
  --> src/libcore/lib.rs:93:1
   |
93 | #![feature(never_type)]
   | ^^^^^^^^^^^^^^^^^^^^^^^

error[E0554]: #[feature] may not be used on the beta release channel
  --> src/libcore/lib.rs:94:1
   |
94 | #![feature(prelude_import)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 25 previous errors

that said have a look at these files:
https://github.com/nixcloud/nixpkgs/blob/experimentalUpdate/pkgs/development/compilers/rust/default.nix
https://github.com/nixcloud/nixpkgs/blob/experimentalUpdate/pkgs/development/compilers/rust/beta.nix
https://github.com/nixcloud/nixpkgs/blob/experimentalUpdate/pkgs/development/compilers/rust/nightly.nix

we use these channels:

  • "--release-channel=stable" to build stable
  • "--release-channel=beta" to build beta from stable
  • "--release-channel=nightly" to build nightly from beta

and then it fails.

if we do this:

  • "--release-channel=nightly" for building stable, beta and nightly we don't see the channel errors listed above.

what is going wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions