[INFO] updating cached repository https://github.com/dre-hh/rest [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] 16286efaf10d2c3ae6c4cbfe21501da33a230ff9 [INFO] checking dre-hh/rest against master#b61e69433951e31f7bd746e22f516a48ad41623b for prs-64470-and-65389 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdre-hh%2Frest" "/workspace/builds/worker-10/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dre-hh/rest on toolchain b61e69433951e31f7bd746e22f516a48ad41623b [INFO] running `"/workspace/cargo-home/bin/cargo" "+b61e69433951e31f7bd746e22f516a48ad41623b" "read-manifest" "--manifest-path" "Cargo.toml"` [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-10/source/Cargo.toml [INFO] crate git repo https://github.com/dre-hh/rest already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+b61e69433951e31f7bd746e22f516a48ad41623b" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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=forbid" "-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" "+b61e69433951e31f7bd746e22f516a48ad41623b" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 46813b19067b49e6832f9ed86f55f62506e98adfb3085ffe60fd6376d115e1e9 [INFO] running `"docker" "start" "-a" "46813b19067b49e6832f9ed86f55f62506e98adfb3085ffe60fd6376d115e1e9"` [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Checking hyper v0.12.11 [INFO] [stderr] Checking hyper-tls v0.3.1 [INFO] [stderr] Checking reqwest v0.9.2 [INFO] [stderr] Checking rest v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0515]: cannot return value referencing local variable `api` [INFO] [stderr] --> tests/cats.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 14 | let cats = Cats { api: &api }; [INFO] [stderr] | ---- `api` is borrowed here [INFO] [stderr] 15 | [INFO] [stderr] 16 | / Env { [INFO] [stderr] 17 | | cats: cats, [INFO] [stderr] 18 | | api: api, [INFO] [stderr] 19 | | } [INFO] [stderr] | |_____^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0505]: cannot move out of `api` because it is borrowed [INFO] [stderr] --> tests/cats.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 12 | fn setup<'a>() -> Env<'a> { [INFO] [stderr] | -- lifetime `'a` defined here [INFO] [stderr] 13 | let api = test_helper::rest_api(); [INFO] [stderr] 14 | let cats = Cats { api: &api }; [INFO] [stderr] | ---- borrow of `api` occurs here [INFO] [stderr] 15 | [INFO] [stderr] 16 | / Env { [INFO] [stderr] 17 | | cats: cats, [INFO] [stderr] 18 | | api: api, [INFO] [stderr] | | ^^^ move out of `api` occurs here [INFO] [stderr] 19 | | } [INFO] [stderr] | |_____- returning this value requires that `api` is borrowed for `'a` [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0505, E0515. [INFO] [stderr] For more information about an error, try `rustc --explain E0505`. [INFO] [stderr] error: could not compile `rest`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "46813b19067b49e6832f9ed86f55f62506e98adfb3085ffe60fd6376d115e1e9"` [INFO] running `"docker" "rm" "-f" "46813b19067b49e6832f9ed86f55f62506e98adfb3085ffe60fd6376d115e1e9"` [INFO] [stdout] 46813b19067b49e6832f9ed86f55f62506e98adfb3085ffe60fd6376d115e1e9