Skip to content

Commit 5f99839

Browse files
committed
Use nightly build
I need it to enable some attributes that are otherwise not available, this all is to avoid error[E0658]: `if` is not allowed in a `const` --> /home/mjost/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.43/src/int/specialized_div_rem/mod.rs:84:12 | 84 | } else if cfg!(any(target_arch = "sparc", target_arch = "sparc64")) { | ____^ 85 | | // LZD or LZCNT on SPARC only exists for the VIS 3 extension and later. 86 | | cfg!(target_feature = "vis3") 87 | | } else if cfg!(any(target_arch = "riscv32", target_arch = "riscv64")) { ... | 92 | | true 93 | | } | |___^ | = note: see issue #49146 <rust-lang/rust#49146> for more information = help: add `#![feature(const_if_match)]` to the crate attributes to enable
1 parent 48986fe commit 5f99839

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust-xtensa.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ let
2828

2929
# noted by inspecting https://static.rust-lang.org/dist/2020-03-12
3030
# version = "1.42.0";
31-
# version = "nightly";
32-
version = "beta";
31+
version = "nightly";
32+
# version = "beta";
3333

3434
platform = toRustTarget pkgs.stdenv.hostPlatform;
3535
versionType = "bootstrap";
3636

3737
src = pkgs.fetchurl {
3838
url = "https://static.rust-lang.org/dist/${date}/rust-${version}-${platform}.tar.gz";
3939
# sha256 = "0llhg1xsyvww776d1wqaxaipm4f566hw1xyy778dhcwakjnhf7kx"; # 1.42.0
40-
# sha256 = "0jhggcwr852c4cqb4qv9a9c6avnjrinjnyzgfi7sx7n1piyaad43"; # nightly
41-
sha256 = "1cv402wp9dx6dqd9slc8wqsqkrb7kc66n0bkkmvgjx01n1jhv7n5"; # beta
40+
sha256 = "0jhggcwr852c4cqb4qv9a9c6avnjrinjnyzgfi7sx7n1piyaad43"; # nightly
41+
# sha256 = "1cv402wp9dx6dqd9slc8wqsqkrb7kc66n0bkkmvgjx01n1jhv7n5"; # beta
4242
};
4343
};
4444
bootstrapPlatform = pkgs.makeRustPlatform rustBinary;

0 commit comments

Comments
 (0)