[INFO] updating cached repository https://github.com/dre-hh/rest [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16286efaf10d2c3ae6c4cbfe21501da33a230ff9 [INFO] testing dre-hh/rest against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdre-hh%2Frest" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dre-hh/rest on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dre-hh/rest [INFO] finished tweaking git repo https://github.com/dre-hh/rest [INFO] tweaked toml for git repo https://github.com/dre-hh/rest written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/dre-hh/rest already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", 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] f04a3893ad9af4dbfc271a2316ad0a4eaa36cf0e3af5739685860206ce95ad69 [INFO] running `Command { std: "docker" "start" "-a" "f04a3893ad9af4dbfc271a2316ad0a4eaa36cf0e3af5739685860206ce95ad69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f04a3893ad9af4dbfc271a2316ad0a4eaa36cf0e3af5739685860206ce95ad69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f04a3893ad9af4dbfc271a2316ad0a4eaa36cf0e3af5739685860206ce95ad69", kill_on_drop: false }` [INFO] [stdout] f04a3893ad9af4dbfc271a2316ad0a4eaa36cf0e3af5739685860206ce95ad69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--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] 9e33f17289519aef43e310fba6ae03df2d409b5c36094bf1a221a433424ffc94 [INFO] running `Command { std: "docker" "start" "-a" "9e33f17289519aef43e310fba6ae03df2d409b5c36094bf1a221a433424ffc94", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling cfg-if v0.1.5 [INFO] [stderr] Compiling rand_core v0.3.0 [INFO] [stderr] Compiling futures v0.1.25 [INFO] [stderr] Compiling byteorder v1.2.6 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling crossbeam-utils v0.5.0 [INFO] [stderr] Compiling slab v0.4.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling stable_deref_trait v1.1.1 [INFO] [stderr] Compiling lazycell v1.2.0 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Compiling pkg-config v0.3.14 [INFO] [stderr] Compiling nodrop v0.1.12 [INFO] [stderr] Compiling memoffset v0.2.1 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Compiling itoa v0.4.3 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Compiling serde v1.0.79 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling build_const v0.2.1 [INFO] [stderr] Compiling openssl v0.10.12 [INFO] [stderr] Compiling ryu v0.2.6 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling string v0.1.1 [INFO] [stderr] Compiling indexmap v1.0.1 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling unicode-normalization v0.1.7 [INFO] [stderr] Compiling native-tls v0.2.1 [INFO] [stderr] Compiling encoding_rs v0.8.10 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling dtoa v0.4.3 [INFO] [stderr] Compiling adler32 v1.0.3 [INFO] [stderr] Compiling log v0.4.5 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling arrayvec v0.4.7 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Compiling lazy_static v1.1.0 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling unicase v2.2.0 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling num_cpus v1.8.0 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling smallvec v0.6.5 [INFO] [stderr] Compiling lock_api v0.1.4 [INFO] [stderr] Compiling rand v0.5.5 [INFO] [stderr] Compiling bytes v0.4.10 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling http v0.1.13 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Compiling libflate v0.1.18 [INFO] [stderr] Compiling parking_lot_core v0.3.1 [INFO] [stderr] Compiling mime v0.3.9 [INFO] [stderr] Compiling crossbeam-epoch v0.5.2 [INFO] [stderr] Compiling phf v0.7.23 [INFO] [stderr] Compiling openssl-sys v0.9.36 [INFO] [stderr] Compiling tokio-executor v0.1.5 [INFO] [stderr] Compiling tokio-io v0.1.9 [INFO] [stderr] Compiling want v0.0.6 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling crossbeam-deque v0.6.1 [INFO] [stderr] Compiling tokio-timer v0.2.7 [INFO] [stderr] Compiling tokio-current-thread v0.1.3 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling phf_generator v0.7.23 [INFO] [stderr] Compiling uuid v0.7.1 [INFO] [stderr] Compiling tokio-threadpool v0.1.7 [INFO] [stderr] Compiling tokio-codec v0.1.1 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Compiling parking_lot v0.6.4 [INFO] [stderr] Compiling url v1.7.1 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Compiling tokio-reactor v0.1.6 [INFO] [stderr] Compiling tokio-fs v0.1.3 [INFO] [stderr] Compiling tokio-uds v0.2.2 [INFO] [stderr] Compiling tokio-udp v0.1.2 [INFO] [stderr] Compiling tokio-tcp v0.1.2 [INFO] [stderr] Compiling tokio v0.1.11 [INFO] [stderr] Compiling h2 v0.1.12 [INFO] [stderr] Compiling hyper v0.12.11 [INFO] [stderr] Compiling serde_urlencoded v0.5.3 [INFO] [stderr] Compiling serde_json v1.0.32 [INFO] [stderr] Compiling hyper-tls v0.3.1 [INFO] [stderr] Compiling reqwest v0.9.2 [INFO] [stderr] Compiling rest v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 38s [INFO] running `Command { std: "docker" "inspect" "9e33f17289519aef43e310fba6ae03df2d409b5c36094bf1a221a433424ffc94", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e33f17289519aef43e310fba6ae03df2d409b5c36094bf1a221a433424ffc94", kill_on_drop: false }` [INFO] [stdout] 9e33f17289519aef43e310fba6ae03df2d409b5c36094bf1a221a433424ffc94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "test" "--frozen" "--no-run" "--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] 47dd182374945d3835a8d661bcd41f8dc6c3ddfb7ff7b86e050b7cf8d8207d7f [INFO] running `Command { std: "docker" "start" "-a" "47dd182374945d3835a8d661bcd41f8dc6c3ddfb7ff7b86e050b7cf8d8207d7f", kill_on_drop: false }` [INFO] [stderr] Compiling rest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing local variable `api` [INFO] [stdout] --> tests/cats.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | let cats = Cats { api: &api }; [INFO] [stdout] | ---- `api` is borrowed here [INFO] [stdout] 15 | [INFO] [stdout] 16 | / Env { [INFO] [stdout] 17 | | cats: cats, [INFO] [stdout] 18 | | api: api, [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `api` because it is borrowed [INFO] [stdout] --> tests/cats.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 12 | fn setup<'a>() -> Env<'a> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 13 | let api = test_helper::rest_api(); [INFO] [stdout] 14 | let cats = Cats { api: &api }; [INFO] [stdout] | ---- borrow of `api` occurs here [INFO] [stdout] 15 | [INFO] [stdout] 16 | / Env { [INFO] [stdout] 17 | | cats: cats, [INFO] [stdout] 18 | | api: api, [INFO] [stdout] | | ^^^ move out of `api` occurs here [INFO] [stdout] 19 | | } [INFO] [stdout] | |_____- returning this value requires that `api` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rest`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "47dd182374945d3835a8d661bcd41f8dc6c3ddfb7ff7b86e050b7cf8d8207d7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47dd182374945d3835a8d661bcd41f8dc6c3ddfb7ff7b86e050b7cf8d8207d7f", kill_on_drop: false }` [INFO] [stdout] 47dd182374945d3835a8d661bcd41f8dc6c3ddfb7ff7b86e050b7cf8d8207d7f