[INFO] updating cached repository https://github.com/xrisyz/pokedex_rs [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 01e6038fd922148e4ba6cb1140e7524ffa094b47 [INFO] testing xrisyz/pokedex_rs against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxrisyz%2Fpokedex_rs" "/workspace/builds/worker-7/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xrisyz/pokedex_rs on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/xrisyz/pokedex_rs [INFO] finished tweaking git repo https://github.com/xrisyz/pokedex_rs [INFO] tweaked toml for git repo https://github.com/xrisyz/pokedex_rs written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/xrisyz/pokedex_rs already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 848c3f00c9bb35651744aba7305bdce9bebaa9de470b158bee5e5935f90aaee3 [INFO] running `"docker" "start" "-a" "848c3f00c9bb35651744aba7305bdce9bebaa9de470b158bee5e5935f90aaee3"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling futures-task v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling http v0.2.0 [INFO] [stderr] Compiling openssl v0.10.26 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling futures-util v0.3.1 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling tokio-macros v0.2.4 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling pin-project-internal v0.4.7 [INFO] [stderr] Compiling tokio v0.2.11 [INFO] [stderr] Compiling pin-project v0.4.7 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling tokio-tls v0.3.0 [INFO] [stderr] Compiling h2 v0.2.1 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling hyper v0.13.1 [INFO] [stderr] Compiling hyper-tls v0.4.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling serde_json v1.0.45 [INFO] [stderr] Compiling reqwest v0.10.1 [INFO] [stderr] Compiling pokedex_core v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::fmt` [INFO] [stderr] --> src/main.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | use std::fmt; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::future::Future` [INFO] [stderr] --> src/main.rs:17:5 [INFO] [stderr] | [INFO] [stderr] 17 | use std::future::Future; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reqwest::Error` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use reqwest::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pokemon_count` [INFO] [stderr] --> src/main.rs:115:9 [INFO] [stderr] | [INFO] [stderr] 115 | let pokemon_count = pokedex_response.pokemon_entries.iter().count(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pokemon_count` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:92:20 [INFO] [stderr] | [INFO] [stderr] 92 | fn get_entries(mut self) -> Vec { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:96:28 [INFO] [stderr] | [INFO] [stderr] 96 | fn check_entries_count(mut self) -> Result, PokeError> { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] error[E0382]: use of moved value: `self.pokemon_entries` [INFO] [stderr] --> src/main.rs:98:23 [INFO] [stderr] | [INFO] [stderr] 96 | fn check_entries_count(mut self) -> Result, PokeError> { [INFO] [stderr] | -------- move occurs because `self` has type `PokeDexResponse`, which does not implement the `Copy` trait [INFO] [stderr] 97 | if self.get_entries().iter().count() > 0 { [INFO] [stderr] | ---- value moved here [INFO] [stderr] 98 | return Ok(self.pokemon_entries) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ value used here after move [INFO] [stderr] [INFO] [stderr] error[E0716]: temporary value dropped while borrowed [INFO] [stderr] --> src/main.rs:116:25 [INFO] [stderr] | [INFO] [stderr] 116 | let pokemon_entry = pokedex_response [INFO] [stderr] | _________________________^ [INFO] [stderr] 117 | | .check_entries_count() [INFO] [stderr] 118 | | .unwrap() [INFO] [stderr] | |_________________^ creates a temporary which is freed while still in use [INFO] [stderr] ... [INFO] [stderr] 122 | .unwrap(); [INFO] [stderr] | - temporary value is freed at the end of this statement [INFO] [stderr] ... [INFO] [stderr] 125 | println!("name: {} \n url: {}", pokemon_entry.pokemon_species.name, pokemon_entry.pokemon_species.url) [INFO] [stderr] | ---------------------------------- borrow later used here [INFO] [stderr] | [INFO] [stderr] = note: consider using a `let` binding to create a longer lived value [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0382, E0716. [INFO] [stderr] For more information about an error, try `rustc --explain E0382`. [INFO] [stderr] error: could not compile `pokedex_core`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "848c3f00c9bb35651744aba7305bdce9bebaa9de470b158bee5e5935f90aaee3"` [INFO] running `"docker" "rm" "-f" "848c3f00c9bb35651744aba7305bdce9bebaa9de470b158bee5e5935f90aaee3"` [INFO] [stdout] 848c3f00c9bb35651744aba7305bdce9bebaa9de470b158bee5e5935f90aaee3