Change:
Describe the bug fails to build, apparently from trying to use a nightly-Rust-only option with a non-nightly , as seen in the following log: <details<summarycargo-fuzz build log</summary<pre<codebuilding '/nix/store/qrkzwq9irkz9kg324gz236siq60pp76r-cargo-fuzz-'... unpacking sources unpacking source archive /nix/store/1ac93gws50qaxls4d2p1pi6r5kc9f7mk-source source root is source unpacking source archive /nix/store/i3ag8kx7r74qh711ycjpl6mbibhqmyqf-cargo-fuzz-0.8.0- patching sources Validating consistency between and /build/cargo-fuzz-0.8.0- configuring building ++ env CCx8664-unknown-linux-gnu=/nix/store/q4xzgxvcbdy30cyd609y2cs5a50fwdrk-gcc-wrapper-9.3.0/bin/cc CXXx8664-unknown-linux-gnu=/nix/store/q4xzgxvcbdy30cyd609y2cs5a50fwdrk-gcc-wrapper-9.3.0/bin/c++ CCx8664-unknown-linux-gnu=/nix/store/q4xzgxvcbdy30cyd609y2cs5a50fwdrk-gcc-wrapper-9.3.0/bin/cc CXXx8664-unknown-linux-gnu=/nix/store/q4xzgxvcbdy30cyd609y2cs5a50fwdrk-gcc-wrapper-9.3.0/bin/c++ cargo build --release --target x8664-unknown-linux-gnu --frozen Compiling proc-macro2 v1.0.18 Compiling unicode-xid v0.2.0 Compiling syn v1.0.30 Compiling libc v0.2.71 Compiling versioncheck v0.9.2 Compiling getrandom v0.1.14 Compiling cfg-if v0.1.10 Compiling bitflags v1.2.1 Compiling ppv-lite86 v0.2.8 Compiling unicode-segmentation v1.6.0 Compiling serde v1.0.111 Compiling unicode-width v0.1.7 Compiling vecmap v0.8.2 Compiling anyhow v1.0.31 Compiling ansiterm v0.11.0 Compiling strsim v0.8.0 Compiling lazystatic v1.4.0 Compiling removedirall v0.5.2 Compiling proc-macro-error-attr v1.0.2 Compiling proc-macro-error v1.0.2 Compiling textwrap v0.11.0 Compiling heck v0.3.1 Compiling quote v1.0.7 Compiling atty v0.2.14 Compiling randcore v0.5.1 Compiling clap v2.33.1 Compiling randchacha v0.2.2 Compiling rand v0.7.3 Compiling tempfile v3.1.0 Compiling syn-mid v0.5.0 Compiling serdederive v1.0.111 Compiling structopt-derive v0.4.7 Compiling structopt v0.3.14 Compiling toml v0.5.6 Compiling cargo-fuzz v0.8.0 (/build/source) Finished release [optimized] target(s) in 1m 33s running tests Running cargo test --release --target x8664-unknown-linux-gnu --frozen -- Compiling memchr v2.3.3 Compiling autocfg v1.0.0 Compiling ryu v1.0.5 Compiling log v0.4.8 Compiling escargot v0.5.0 Compiling predicates-core v1.0.0 Compiling itoa v0.4.5 Compiling regex-syntax v0.6.18 Compiling doc-comment v0.3.3 Compiling difference v2.0.0 Compiling normalize-line-endings v0.3.0 Compiling treeline v0.1.0 Compiling threadlocal v1.0.1 Compiling predicates-tree v1.0.0 Compiling num-traits v0.2.11 Compiling wait-timeout v0.2.0 Compiling aho-corasick v0.7.10 Compiling serdejson v1.0.54 Compiling regex v1.3.9 Compiling float-cmp v0.6.0 Compiling predicates v1.0.4 Compiling assertcmd v0.12.2 Compiling cargo-fuzz v0.8.0 (/build/source) Finished release [optimized] target(s) in 29.83s Running target/x8664-unknown-linux-gnu/release/deps/cargofuzz- running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Running target/x8664-unknown-linux-gnu/release/deps/tests- running 22 tests test addtwice ... ok test add ... FAILED test buildall ... FAILED test builddev ... FAILED test buildone ... FAILED test help ... ok test initfindsparentproject ... ok test inittwice ... ok test debugfmt ... FAILED test cmin ... FAILED test init ... FAILED test list ... ok test initwithtarget ... FAILED test runaltcorpus ... FAILED test runafewinputs ... FAILED test runoneinput ... FAILED test runnocrash ... FAILED test runwithmsannocrash ... FAILED test runwithcrash ... FAILED test runwithmsanwithcrash ... FAILED test runwithoutsanitizerwithcrash ... FAILED test tmin ... FAILED failures: ---- add stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t0 =============== thread 'add' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- note: run with environment variable to display a backtrace ---- buildall stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t2 =============== thread 'buildall' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- builddev stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t3 =============== thread 'builddev' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- buildone stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t4 =============== thread 'buildone' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- debugfmt stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t7 =============== thread 'debugfmt' panicked at 'Unexpected stderr, failed var.contains("nRgb {n r: 49,n g: 49,n b: 49,n}") var as str: Error: failed to run on input: fuzz/corpus/debugfmt/0 Caused by: Fuzz target 'debugfmt' exited with failure when attemping to debug formatting an interesting input that we discovered! Artifact: fuzz/corpus/debugfmt/0 Command: "cargo" "run" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "debugfmt" "--" "-artifactprefix=/build/source/target/x8664-unknown-linux-gnu/tests/t7/fuzz/artifacts/debugfmt/" "fuzz/corpus/debugfmt/0" Status: exit code: 101 === stdout === === stderr === error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- cmin stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t5 =============== thread 'cmin' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- init stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t6 =============== thread 'init' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- initwithtarget stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t10 =============== thread 'initwithtarget' panicked at 'Unexpected failure. code-1 stderr= command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runaltcorpus stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t13 =============== thread 'runaltcorpus' panicked at 'Unexpected stderr, failed ((var.contains("3 files found in fuzz/alt-corpus/runalt") && (! var.contains("fuzz/corpus/runalt"))) && var.contains("Done 4 runs in")) var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "runalt" (var.contains("3 files found in fuzz/alt-corpus/runalt") && (! var.contains("fuzz/corpus/runalt"))) var.contains("3 files found in fuzz/alt-corpus/runalt") command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runafewinputs stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t12 =============== thread 'runafewinputs' panicked at 'Unexpected stderr, failed (var.contains("Running 4 inputs 1 time(s) each.") && var.contains("Running: fuzz/corpus/runfew/pass")) var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "runfew" var.contains("Running 4 inputs 1 time(s) each.") command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runoneinput stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t15 =============== thread 'runoneinput' panicked at 'Unexpected stderr, failed (var.contains("Running 1 inputs 1 time(s) each.") && var.contains("Running: fuzz/corpus/runone/pass")) var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "runone" var.contains("Running 1 inputs 1 time(s) each.") command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runnocrash stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t14 =============== thread 'runnocrash' panicked at 'Unexpected stderr, failed var.contains("Done 1000 runs") var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "nocrash" command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runwithmsannocrash stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t17 =============== thread 'runwithmsannocrash' panicked at 'Unexpected stderr, failed var.contains("Done 1000 runs") var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "-Z" "build-std" "--bin" "msannocrash" command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runwithcrash stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t16 =============== thread 'runwithcrash' panicked at 'Unexpected stderr, failed ((((((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) && var.contains("Output of :")) && var.contains("Reproduce with:nntcargo fuzz run yescrash fuzz/artifacts/yescrash/crash-")) && var.contains("Minimize test case with:nntcargo fuzz tmin yescrash fuzz/artifacts/yescrash/crash-")) var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "yescrash" (((((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) && var.contains("Output of :")) && var.contains("Reproduce with:nntcargo fuzz run yescrash fuzz/artifacts/yescrash/crash-")) ((((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) && var.contains("Output of :")) (((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) ((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithcrash::failfuzzing")) (var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) var.contains("panicked at 'I'm afraid of number 7'") command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runwithmsanwithcrash stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t18 =============== thread 'runwithmsanwithcrash' panicked at 'Unexpected stderr, failed var.contains("MemorySanitizer: use-of-uninitialized-value") var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "-Z" "build-std" "--bin" "msanwithcrash" command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- runwithoutsanitizerwithcrash stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t19 =============== thread 'runwithoutsanitizerwithcrash' panicked at 'Unexpected stderr, failed ((((((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithoutsanitizerwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) && var.contains("Output of :")) && var.contains("Reproduce with:nntcargo fuzz run yescrash fuzz/artifacts/yescrash/crash-")) && var.contains("Minimize test case with:nntcargo fuzz tmin yescrash fuzz/artifacts/yescrash/crash-")) var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "yescrash" (((((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithoutsanitizerwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) && var.contains("Output of :")) && var.contains("Reproduce with:nntcargo fuzz run yescrash fuzz/artifacts/yescrash/crash-")) ((((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithoutsanitizerwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) && var.contains("Output of :")) (((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithoutsanitizerwithcrash::failfuzzing")) && var.contains("nnFailing input:nntfuzz/artifacts/yescrash/crash-")) ((var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) && var.contains("runwithoutsanitizerwithcrash::failfuzzing")) (var.contains("panicked at 'I'm afraid of number 7'") && var.contains("ERROR: libFuzzer: deadly signal")) var.contains("panicked at 'I'm afraid of number 7'") command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- ---- tmin stdout ---- ============ /build/source/target/x8664-unknown-linux-gnu/tests/t20 =============== thread 'tmin' panicked at 'Unexpected stderr, failed (((var.contains("CRASHMIN: minimizing crash input: ") && var.contains("(1 bytes) caused a crash")) && var.contains("nnMinimized artifact:nntfuzz/artifacts/ihatezed/minimized-from-")) && var.contains("Reproduce with:nntcargo fuzz run ihatezed fuzz/artifacts/ihatezed/minimized-from-")) var as str: error: failed to run to learn about target-specific information Caused by: process didn't exit successfully: (exit code: 1) --- stderr error: the option is only accepted on the nightly compiler Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/build/source/target/x8664-unknown-linux-" "--target" "x8664-unknown-linux-gnu" "--release" "--bin" "ihatezed" ((var.contains("CRASHMIN: minimizing crash input: ") && var.contains("(1 bytes) caused a crash")) && var.contains("nnMinimized artifact:nntfuzz/artifacts/ihatezed/minimized-from-")) (var.contains("CRASHMIN: minimizing crash input: ") && var.contains("(1 bytes) caused a crash")) var.contains("CRASHMIN: minimizing crash input: ") command= code=1 stdout= stderr= ', /build/cargo-fuzz-0.8.0- failures: add buildall builddev buildone cmin debugfmt init initwithtarget runafewinputs runaltcorpus runnocrash runoneinput runwithcrash runwithmsannocrash runwithmsanwithcrash runwithoutsanitizerwithcrash tmin test result: FAILED. 5 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out error: test failed, to rerun pass '--test tests' builder for '/nix/store/qrkzwq9irkz9kg324gz236siq60pp76r-cargo-fuzz-' failed with exit code 101 </code</pre</detailsNotify maintainers Metadata system: host os: multi-user?: sandbox: version: channels(root): nixpkgs: Maintainer information:
cc who I think did the latest version bump? That said it's probably enough to just disable tests, as if the tests require a nightly toolchain then we can't provide it anyway (and most likely don't want to use RUST_BOOTSTRAP) Unfortunately I won't have the time to investigate this soon, sorry, but feel free to poke me for review on a PR fixing this.

Discussion:
<del> { stdenv, fetchFromGitHub, fetchurl, runCommand, rustPlatform }: </del> <ins> { stdenv, fetchFromGitHub, rustPlatform }: </ins> rustPlatform.buildRustPackage rec { pname = "cargo-fuzz";

cargoSha256 = "0zxhak79f50m8nw95ny733mk4x2f7kyk6q9v4f7jr2rkcldhgrpr"; <ins> doCheck = false; </ins> meta = with stdenv.lib; { description = "Command line helpers for fuzzing"; homepage = "https://github.com/rust-fuzz/cargo-fuzz";