[INFO] cloning repository https://github.com/adumbidiot/scratch-native [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adumbidiot/scratch-native" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadumbidiot%2Fscratch-native", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadumbidiot%2Fscratch-native'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2e863c88779e21ce8d8151e459738dcff9d72b3d [INFO] checking adumbidiot/scratch-native against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadumbidiot%2Fscratch-native" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adumbidiot/scratch-native on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adumbidiot/scratch-native [INFO] finished tweaking git repo https://github.com/adumbidiot/scratch-native [INFO] tweaked toml for git repo https://github.com/adumbidiot/scratch-native written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/adumbidiot/scratch-native already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded curl v0.4.35 [INFO] [stderr] Downloaded console v0.14.1 [INFO] [stderr] Downloaded curl-sys v0.4.41+curl-7.75.0 [INFO] [stderr] Downloaded nsvg v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1becb96b603490b642c0deb197ebca9c1cb522f0737d7c1e49a66bd21afea48 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b1becb96b603490b642c0deb197ebca9c1cb522f0737d7c1e49a66bd21afea48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1becb96b603490b642c0deb197ebca9c1cb522f0737d7c1e49a66bd21afea48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1becb96b603490b642c0deb197ebca9c1cb522f0737d7c1e49a66bd21afea48", kill_on_drop: false }` [INFO] [stdout] b1becb96b603490b642c0deb197ebca9c1cb522f0737d7c1e49a66bd21afea48 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8d689e1f5b4cb1f5ced79662648798bbebacdb7c9b4bfe0053aa7553b83a4702 [INFO] running `Command { std: "docker" "start" "-a" "8d689e1f5b4cb1f5ced79662648798bbebacdb7c9b4bfe0053aa7553b83a4702", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling openssl v0.10.33 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Compiling encoding_rs v0.8.28 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling curl v0.4.35 [INFO] [stderr] Checking fs_extra v1.2.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking try_from v0.3.2 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking gif v0.11.1 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking crossbeam-utils v0.7.2 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hyper v0.12.36 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking backtrace v0.3.56 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking terminal_size v0.1.16 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking flate2 v1.0.20 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking number_prefix v0.2.8 [INFO] [stderr] Checking rayon-core v1.9.0 [INFO] [stderr] Checking console v0.14.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling openssl-sys v0.9.61 [INFO] [stderr] Compiling libz-sys v1.1.2 [INFO] [stderr] Compiling curl-sys v0.4.41+curl-7.75.0 [INFO] [stderr] Compiling nsvg v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking cookie v0.12.0 [INFO] [stderr] Checking publicsuffix v1.5.6 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Checking indicatif v0.10.3 [INFO] [stderr] Checking png v0.12.0 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking hyper-tls v0.3.2 [INFO] [stderr] Checking serde v1.0.124 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking serde_urlencoded v0.5.5 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking cookie_store v0.7.0 [INFO] [stderr] Checking reqwest v0.9.24 [INFO] [stderr] Checking scratch v0.1.0 (/opt/rustwide/workdir/lib/scratch) [INFO] [stderr] Checking scratch-native v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `PlaySoundAndWait` [INFO] [stdout] --> src/scratch/api/types/json.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | PlaySoundAndWait, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scratch/utils.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | logger: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn DirCreaterLogger` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProjectJson`, `util::FileCreater` [INFO] [stdout] --> src/scratch.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | ProjectJson, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | util::FileCreater, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PlaySoundAndWait` [INFO] [stdout] --> src/scratch/api/types/json.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | PlaySoundAndWait, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/scratch/utils.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | logger: Box, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn DirCreaterLogger` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProjectJson`, `util::FileCreater` [INFO] [stdout] --> src/scratch.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | ProjectJson, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | util::FileCreater, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 131 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 132 | print!("Building Project... "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/scratch/api/types/block.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 106 | / match key { [INFO] [stdout] 107 | | "PlaySoundAndWait" => { [INFO] [stdout] 108 | | let block: PlaySoundAndWait = map [INFO] [stdout] 109 | | .next_value::>()? [INFO] [stdout] ... | [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 120 | return Ok(Block::WhenStart); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 131 | return; [INFO] [stdout] | ------ any code following this expression is unreachable [INFO] [stdout] 132 | print!("Building Project... "); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `target::Target` [INFO] [stdout] --> src/scratch.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | target::Target, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/main.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | ("old_main", Some(matches)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/scratch/api/mod.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | fn from(err: curl::Error) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/scratch/api/mod.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | fn from(err: std::string::FromUtf8Error) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `project` [INFO] [stdout] --> src/scratch/api/targets.rs:289:25 [INFO] [stdout] | [INFO] [stdout] 289 | fn build(&mut self, project: &mut Project, path: &PathBuf) -> TargetResult<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/scratch/api/targets.rs:289:48 [INFO] [stdout] | [INFO] [stdout] 289 | fn build(&mut self, project: &mut Project, path: &PathBuf) -> TargetResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `project` [INFO] [stdout] --> src/scratch/api/targets.rs:293:24 [INFO] [stdout] | [INFO] [stdout] 293 | fn test(&mut self, project: &mut Project, path: &PathBuf) -> TargetResult<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/scratch/error.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | fn from(err: ()) -> Error { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_cython` [INFO] [stdout] --> src/scratch/target.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let has_cython = test_import("cython")?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_cython` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let mut project = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 79 | let mut project = api [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/scratch/api/types/block.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 106 | / match key { [INFO] [stdout] 107 | | "PlaySoundAndWait" => { [INFO] [stdout] 108 | | let block: PlaySoundAndWait = map [INFO] [stdout] 109 | | .next_value::>()? [INFO] [stdout] ... | [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_________- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 120 | return Ok(Block::WhenStart); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut project = api.get_stats(code).expect("Error getting project json"); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | let mut project: Project = Project::load(path.clone()).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scratch/api/targets.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut body = project [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scratch/api/types/mod.rs:77:50 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn init(&mut self, api: &mut super::Api, mut path: PathBuf) -> ApiResult<()> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scratch/target.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | let mut path = project.get_build_path(self); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_file` [INFO] [stdout] --> src/scratch/api/targets.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn write_file(path: &PathBuf, data: &[u8]) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Custom` [INFO] [stdout] --> src/scratch/api/types/block.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Custom { arr: Vec }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_save_path` [INFO] [stdout] --> src/scratch/api/types/mod.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn get_save_path(&mut self, mut path: PathBuf) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/scratch/api/types/mod.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn init(&mut self, api: &mut super::Api, mut path: PathBuf) -> ApiResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_asset` [INFO] [stdout] --> src/scratch/api/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn get_asset(&mut self, name: &str) -> ApiResult> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_logger` [INFO] [stdout] --> src/scratch/utils.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn with_logger(&mut self, logger: T) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `target::Target` [INFO] [stdout] --> src/scratch.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | target::Target, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `matches` [INFO] [stdout] --> src/main.rs:108:27 [INFO] [stdout] | [INFO] [stdout] 108 | ("old_main", Some(matches)) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matches` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/scratch/api/mod.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | fn from(err: curl::Error) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/scratch/api/mod.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | fn from(err: std::string::FromUtf8Error) -> Self { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `project` [INFO] [stdout] --> src/scratch/api/targets.rs:289:25 [INFO] [stdout] | [INFO] [stdout] 289 | fn build(&mut self, project: &mut Project, path: &PathBuf) -> TargetResult<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/scratch/api/targets.rs:289:48 [INFO] [stdout] | [INFO] [stdout] 289 | fn build(&mut self, project: &mut Project, path: &PathBuf) -> TargetResult<()> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `project` [INFO] [stdout] --> src/scratch/api/targets.rs:293:24 [INFO] [stdout] | [INFO] [stdout] 293 | fn test(&mut self, project: &mut Project, path: &PathBuf) -> TargetResult<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_project` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/scratch/error.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | fn from(err: ()) -> Error { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `has_cython` [INFO] [stdout] --> src/scratch/target.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let has_cython = test_import("cython")?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_has_cython` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | std::fs::remove_dir_all("projects/scratch_239742347/target/js"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let mut project = [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 79 | let mut project = api [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | let mut project = api.get_stats(code).expect("Error getting project json"); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | let mut project: Project = Project::load(path.clone()).unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scratch/api/targets.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | let mut body = project [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scratch/api/types/mod.rs:77:50 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn init(&mut self, api: &mut super::Api, mut path: PathBuf) -> ApiResult<()> { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scratch/target.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | let mut path = project.get_build_path(self); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_file` [INFO] [stdout] --> src/scratch/api/targets.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn write_file(path: &PathBuf, data: &[u8]) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Custom` [INFO] [stdout] --> src/scratch/api/types/block.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | Custom { arr: Vec }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_save_path` [INFO] [stdout] --> src/scratch/api/types/mod.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn get_save_path(&mut self, mut path: PathBuf) -> PathBuf { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/scratch/api/types/mod.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn init(&mut self, api: &mut super::Api, mut path: PathBuf) -> ApiResult<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_asset` [INFO] [stdout] --> src/scratch/api/mod.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn get_asset(&mut self, name: &str) -> ApiResult> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_logger` [INFO] [stdout] --> src/scratch/utils.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn with_logger(&mut self, logger: T) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | std::fs::remove_dir_all("projects/scratch_239742347/target/js"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 12s [INFO] running `Command { std: "docker" "inspect" "8d689e1f5b4cb1f5ced79662648798bbebacdb7c9b4bfe0053aa7553b83a4702", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d689e1f5b4cb1f5ced79662648798bbebacdb7c9b4bfe0053aa7553b83a4702", kill_on_drop: false }` [INFO] [stdout] 8d689e1f5b4cb1f5ced79662648798bbebacdb7c9b4bfe0053aa7553b83a4702