[INFO] updating cached repository https://github.com/dre-hh/rest [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/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] testing dre-hh/rest against beta-2019-09-28 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdre-hh%2Frest" "work/builds/worker-4/source"` [INFO] [stderr] Cloning into 'work/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dre-hh/rest on toolchain beta-2019-09-28 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "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 work/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/dre-hh/rest already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+beta-2019-09-28" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "+beta-2019-09-28" "build" "--frozen"` [INFO] [stdout] 27ae65931da82452ea222dcc39af3b9edb867099d65fc30fdc49be5b49600a3a [INFO] running `"docker" "start" "-a" "27ae65931da82452ea222dcc39af3b9edb867099d65fc30fdc49be5b49600a3a"` [INFO] [stderr] Compiling openssl v0.10.12 [INFO] [stderr] Compiling encoding_rs v0.8.10 [INFO] [stderr] Compiling log v0.4.5 [INFO] [stderr] Compiling openssl-sys v0.9.36 [INFO] [stderr] Compiling bytes v0.4.10 [INFO] [stderr] Compiling uuid v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.5.2 [INFO] [stderr] Compiling mime v0.3.9 [INFO] [stderr] Compiling serde_json v1.0.32 [INFO] [stderr] Compiling serde_urlencoded v0.5.3 [INFO] [stderr] Compiling libflate v0.1.18 [INFO] [stderr] Compiling mime_guess v2.0.0-alpha.6 [INFO] [stderr] Compiling mio v0.6.16 [INFO] [stderr] Compiling want v0.0.6 [INFO] [stderr] Compiling crossbeam-deque v0.6.1 [INFO] [stderr] Compiling tokio-io v0.1.9 [INFO] [stderr] Compiling http v0.1.13 [INFO] [stderr] Compiling tokio-threadpool v0.1.7 [INFO] [stderr] Compiling native-tls v0.2.1 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling tokio-reactor v0.1.6 [INFO] [stderr] Compiling tokio-codec v0.1.1 [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 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 18.18s [INFO] running `"docker" "inspect" "27ae65931da82452ea222dcc39af3b9edb867099d65fc30fdc49be5b49600a3a"` [INFO] running `"docker" "rm" "-f" "27ae65931da82452ea222dcc39af3b9edb867099d65fc30fdc49be5b49600a3a"` [INFO] [stdout] 27ae65931da82452ea222dcc39af3b9edb867099d65fc30fdc49be5b49600a3a [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "+beta-2019-09-28" "test" "--frozen" "--no-run"` [INFO] [stdout] 8b8e155120dbc65353af867c0d03f3c2201d94c06520426db4feaf13d61d3022 [INFO] running `"docker" "start" "-a" "8b8e155120dbc65353af867c0d03f3c2201d94c06520426db4feaf13d61d3022"` [INFO] [stderr] Compiling 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" "8b8e155120dbc65353af867c0d03f3c2201d94c06520426db4feaf13d61d3022"` [INFO] running `"docker" "rm" "-f" "8b8e155120dbc65353af867c0d03f3c2201d94c06520426db4feaf13d61d3022"` [INFO] [stdout] 8b8e155120dbc65353af867c0d03f3c2201d94c06520426db4feaf13d61d3022