git.iko.soy/typeable/nixpkgs
on master help sign in
rustc: re-enable static_in_const

We saw this error when building main.rs:error: this needs a 'static lifetime or the static_in_const feature, see #35897

commit72ff321f9ca92c9ad54d006ee78751e2a3739535 authorGraham Christensen <graham@grahamc.com> dateFri 16 Jun 2017, 07:09 (9 years ago) parent11b1135
1 file changed−5
pkgs/development/compilers/rust/rustc.nix−5
pkgs/development/compilers/rust/rustc.nix−5
@@ -93,11 +93,6 @@ stdenv.mkDerivation {
9393 rm src/test/debuginfo/vec-slices.rs
9494 rm src/test/debuginfo/vec.rs
9595
96− # this can probably be removed when rust is updated beyond 1.17
97− # fixes a warning in the test harness (I think?) which fails the build due
98− # to strict warnings
99− sed -i '/static_in_const/d' src/tools/compiletest/src/main.rs
100−
10196 # Useful debugging parameter
10297 # export VERBOSE=1
10398 ''