[INFO] fetching crate tetsy-jsonrpc-client-transports 15.1.0... [INFO] checking tetsy-jsonrpc-client-transports-15.1.0 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate tetsy-jsonrpc-client-transports 15.1.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate tetsy-jsonrpc-client-transports 15.1.0 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tetsy-jsonrpc-client-transports 15.1.0 [INFO] finished tweaking crates.io crate tetsy-jsonrpc-client-transports 15.1.0 [INFO] tweaked toml for crates.io crate tetsy-jsonrpc-client-transports 15.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ad838c37b1dcfe162127adfc88509f812a9e99fc6d00a47059007039ea4d951 [INFO] running `Command { std: "docker" "start" "-a" "3ad838c37b1dcfe162127adfc88509f812a9e99fc6d00a47059007039ea4d951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ad838c37b1dcfe162127adfc88509f812a9e99fc6d00a47059007039ea4d951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ad838c37b1dcfe162127adfc88509f812a9e99fc6d00a47059007039ea4d951", kill_on_drop: false }` [INFO] [stdout] 3ad838c37b1dcfe162127adfc88509f812a9e99fc6d00a47059007039ea4d951 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc1b02332ed3d8ff047f4035899742b24ba4334ddd43a843a35010f6308482e4 [INFO] running `Command { std: "docker" "start" "-a" "cc1b02332ed3d8ff047f4035899742b24ba4334ddd43a843a35010f6308482e4", kill_on_drop: false }` [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Checking crossbeam-deque v0.7.4 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking tokio-codec v0.1.2 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Compiling openssl v0.10.57 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.6 [INFO] [stderr] Checking tokio-uds v0.2.7 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking serde v1.0.188 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking tokio-fs v0.1.7 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking parking_lot_core v0.7.3 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling hyper v0.12.36 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.93 [INFO] [stderr] Compiling backtrace v0.3.69 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking bstr v1.6.2 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking gimli v0.28.0 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking sha1_smol v1.0.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking sha1 v0.6.1 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking globset v0.4.13 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking object v0.32.1 [INFO] [stderr] Checking serde_json v1.0.107 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking mio-named-pipes v0.1.7 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking rustc-demangle v0.1.23 [INFO] [stderr] Checking typeable v0.1.2 [INFO] [stderr] Checking traitobject v0.1.0 [INFO] [stderr] Checking tokio-named-pipes v0.1.0 [INFO] [stderr] Checking miow v0.3.7 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking tetsy-jsonrpc-core v15.1.0 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking addr2line v0.21.0 [INFO] [stderr] Checking tetsy-tokio-ipc v0.4.0 [INFO] [stderr] Checking tetsy-jsonrpc-server-utils v15.1.0 [INFO] [stderr] Checking tetsy-jsonrpc-pubsub v15.1.0 [INFO] [stderr] Checking tokio-service v0.1.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking tetsy-jsonrpc-http-server v15.1.0 [INFO] [stderr] Checking tetsy-jsonrpc-ipc-server v15.1.0 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking tokio-tls v0.2.1 [INFO] [stderr] Checking hyper-tls v0.3.2 [INFO] [stderr] Checking websocket-base v0.24.0 [INFO] [stderr] Checking websocket v0.24.0 [INFO] [stderr] Checking tetsy-jsonrpc-client-transports v15.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `client` [INFO] [stdout] --> src/transports/http.rs:213:5 [INFO] [stdout] | [INFO] [stdout] 213 | client.hello("http").and_then(move |result| { [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________`client` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 214 | | drop(client); [INFO] [stdout] 215 | | let _ = tx.send(result); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }) [INFO] [stdout] | |__________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/transports/http.rs:213:35 [INFO] [stdout] | [INFO] [stdout] 212 | .and_then(|client: TestClient| { [INFO] [stdout] | ------ - return type of closure `futures::AndThen, Result<(), RpcError>, [closure@src/transports/http.rs:213:35: 213:48]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `client` declared here [INFO] [stdout] 213 | client.hello("http").and_then(move |result| { [INFO] [stdout] | ------ ^^^^^^^^^^^^^ move out of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] | _________________borrow of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] 214 | | drop(client); [INFO] [stdout] | | ------ move occurs due to use in closure [INFO] [stdout] 215 | | let _ = tx.send(result); [INFO] [stdout] 216 | | Ok(()) [INFO] [stdout] 217 | | }) [INFO] [stdout] | |__________________- returning this value requires that `client` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `server.uri` does not live long enough [INFO] [stdout] --> src/transports/http.rs:211:21 [INFO] [stdout] | [INFO] [stdout] 207 | let server = TestServer::serve(id); [INFO] [stdout] | ------ binding `server` declared here [INFO] [stdout] ... [INFO] [stdout] 211 | let run = connect(&server.uri) [INFO] [stdout] | --------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `server.uri` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 226 | } [INFO] [stdout] | - `server.uri` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `client` [INFO] [stdout] --> src/transports/http.rs:239:5 [INFO] [stdout] | [INFO] [stdout] 239 | client.notify(12).and_then(move |result| { [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________`client` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 240 | | drop(client); [INFO] [stdout] 241 | | let _ = tx.send(result); [INFO] [stdout] 242 | | Ok(()) [INFO] [stdout] 243 | | }) [INFO] [stdout] | |__________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/transports/http.rs:239:32 [INFO] [stdout] | [INFO] [stdout] 238 | .and_then(|client: TestClient| { [INFO] [stdout] | ------ - return type of closure `futures::AndThen, Result<(), RpcError>, [closure@src/transports/http.rs:239:32: 239:45]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `client` declared here [INFO] [stdout] 239 | client.notify(12).and_then(move |result| { [INFO] [stdout] | ------ ^^^^^^^^^^^^^ move out of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] | _________________borrow of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] 240 | | drop(client); [INFO] [stdout] | | ------ move occurs due to use in closure [INFO] [stdout] 241 | | let _ = tx.send(result); [INFO] [stdout] 242 | | Ok(()) [INFO] [stdout] 243 | | }) [INFO] [stdout] | |__________________- returning this value requires that `client` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `server.uri` does not live long enough [INFO] [stdout] --> src/transports/http.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 233 | let server = TestServer::serve(id); [INFO] [stdout] | ------ binding `server` declared here [INFO] [stdout] ... [INFO] [stdout] 237 | let run = connect(&server.uri) [INFO] [stdout] | --------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `server.uri` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 251 | } [INFO] [stdout] | - `server.uri` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `client` [INFO] [stdout] --> src/transports/http.rs:283:5 [INFO] [stdout] | [INFO] [stdout] 283 | client.fail().then(move |res| { [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________`client` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 284 | | let _ = tx.send(res); [INFO] [stdout] 285 | | Ok(()) [INFO] [stdout] 286 | | }) [INFO] [stdout] | |__________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `server.uri` does not live long enough [INFO] [stdout] --> src/transports/http.rs:281:21 [INFO] [stdout] | [INFO] [stdout] 277 | let server = TestServer::serve(id); [INFO] [stdout] | ------ binding `server` declared here [INFO] [stdout] ... [INFO] [stdout] 281 | let run = connect(&server.uri) [INFO] [stdout] | --------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `server.uri` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 306 | } [INFO] [stdout] | - `server.uri` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `client` [INFO] [stdout] --> src/transports/http.rs:320:5 [INFO] [stdout] | [INFO] [stdout] 320 | client.hello("http").then(move |res| { [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________`client` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 321 | | let _ = tx.send(res); [INFO] [stdout] 322 | | Ok(()) [INFO] [stdout] 323 | | }) [INFO] [stdout] | |__________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `server.uri` does not live long enough [INFO] [stdout] --> src/transports/http.rs:316:24 [INFO] [stdout] | [INFO] [stdout] 311 | let mut server = TestServer::serve(id); [INFO] [stdout] | ---------- binding `server` declared here [INFO] [stdout] ... [INFO] [stdout] 316 | let client = connect(&server.uri); [INFO] [stdout] | --------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `server.uri` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 341 | } [INFO] [stdout] | - `server.uri` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `client` [INFO] [stdout] --> src/transports/http.rs:367:7 [INFO] [stdout] | [INFO] [stdout] 367 | client.hello("http2").then(move |res| { [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________________`client` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 368 | | let _ = tx2.send(res); [INFO] [stdout] 369 | | Ok(()) [INFO] [stdout] 370 | | }) [INFO] [stdout] | |__________________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `client` [INFO] [stdout] --> src/transports/http.rs:359:5 [INFO] [stdout] | [INFO] [stdout] 359 | client [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | _________________`client` is borrowed here [INFO] [stdout] | | [INFO] [stdout] 360 | | .hello("http") [INFO] [stdout] 361 | | .then(move |res| { [INFO] [stdout] 362 | | let _ = tx.send(res); [INFO] [stdout] ... | [INFO] [stdout] 370 | | }) [INFO] [stdout] 371 | | }) [INFO] [stdout] | |______________________^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/transports/http.rs:365:16 [INFO] [stdout] | [INFO] [stdout] 358 | .and_then(move |client: TestClient| { [INFO] [stdout] | ------ - return type of closure `futures::AndThen, Result<(), RpcError>, [closure@src/transports/http.rs:361:12: 361:22]>, futures::Then, Result<(), RpcError>, [closure@src/transports/http.rs:367:34: 367:44]>, [closure@src/transports/http.rs:365:16: 365:24]>` contains a lifetime `'1` [INFO] [stdout] | | [INFO] [stdout] | binding `client` declared here [INFO] [stdout] 359 | client [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | _________________borrow of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] 360 | | .hello("http") [INFO] [stdout] 361 | | .then(move |res| { [INFO] [stdout] 362 | | let _ = tx.send(res); [INFO] [stdout] ... | [INFO] [stdout] 365 | | .and_then(move |_| { [INFO] [stdout] | | ^^^^^^^^ move out of `client` occurs here [INFO] [stdout] 366 | | server.start(); // todo: make the server start on the main thread [INFO] [stdout] 367 | | client.hello("http2").then(move |res| { [INFO] [stdout] | | ------ move occurs due to use in closure [INFO] [stdout] ... | [INFO] [stdout] 370 | | }) [INFO] [stdout] 371 | | }) [INFO] [stdout] | |______________________- returning this value requires that `client` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `server.uri` does not live long enough [INFO] [stdout] --> src/transports/http.rs:355:24 [INFO] [stdout] | [INFO] [stdout] 347 | let mut server = TestServer::serve(id); [INFO] [stdout] | ---------- binding `server` declared here [INFO] [stdout] ... [INFO] [stdout] 355 | let client = connect(&server.uri); [INFO] [stdout] | --------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `server.uri` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 384 | } [INFO] [stdout] | - `server.uri` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `server` because it is borrowed [INFO] [stdout] --> src/transports/http.rs:358:14 [INFO] [stdout] | [INFO] [stdout] 347 | let mut server = TestServer::serve(id); [INFO] [stdout] | ---------- binding `server` declared here [INFO] [stdout] ... [INFO] [stdout] 355 | let client = connect(&server.uri); [INFO] [stdout] | -------------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `server.uri` occurs here [INFO] [stdout] | argument requires that `server.uri` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 358 | .and_then(move |client: TestClient| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ move out of `server` occurs here [INFO] [stdout] ... [INFO] [stdout] 366 | server.start(); // todo: make the server start on the main thread [INFO] [stdout] | ------ move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `client` [INFO] [stdout] --> src/lib.rs:412:25 [INFO] [stdout] | [INFO] [stdout] 412 | .and_then(move |res| client.add(res, 5)) [INFO] [stdout] | ------^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `client` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:409:13 [INFO] [stdout] | [INFO] [stdout] 409 | let fut = client [INFO] [stdout] | ____________________^ [INFO] [stdout] | | ___________________| [INFO] [stdout] | || [INFO] [stdout] 410 | || .clone() [INFO] [stdout] | ||____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 411 | | .add(3, 4) [INFO] [stdout] | |_______________________- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 420 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/lib.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 434 | let fut = client [INFO] [stdout] | ____________________^ [INFO] [stdout] | | ___________________| [INFO] [stdout] | || [INFO] [stdout] 435 | || .clone() [INFO] [stdout] | ||____________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 436 | | .completed(true) [INFO] [stdout] | |_____________________________- argument requires that borrow lasts for `'static` [INFO] [stdout] ... [INFO] [stdout] 443 | }); [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `client` does not live long enough [INFO] [stdout] --> src/lib.rs:486:13 [INFO] [stdout] | [INFO] [stdout] 483 | let (client, rpc_client) = local::connect_with_pubsub::(handler); [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 486 | let fut = client [INFO] [stdout] | -^^^^^ [INFO] [stdout] | | [INFO] [stdout] | ___________________borrowed value does not live long enough [INFO] [stdout] | | [INFO] [stdout] 487 | | .subscribe::<_, (u32,)>("subscribe_hello", (), "hello", "unsubscribe_hello", "u32") [INFO] [stdout] | |_______________________________________________________________________________________________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 512 | } [INFO] [stdout] | - `client` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `client` because it is borrowed [INFO] [stdout] --> src/lib.rs:488:14 [INFO] [stdout] | [INFO] [stdout] 483 | let (client, rpc_client) = local::connect_with_pubsub::(handler); [INFO] [stdout] | ------ binding `client` declared here [INFO] [stdout] ... [INFO] [stdout] 486 | let fut = client [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | ___________________borrow of `client` occurs here [INFO] [stdout] | | [INFO] [stdout] 487 | | .subscribe::<_, (u32,)>("subscribe_hello", (), "hello", "unsubscribe_hello", "u32") [INFO] [stdout] | |_______________________________________________________________________________________________- argument requires that `client` is borrowed for `'static` [INFO] [stdout] 488 | .and_then(|stream| { [INFO] [stdout] | ^^^^^^^^ move out of `client` occurs here [INFO] [stdout] ... [INFO] [stdout] 492 | drop(client); [INFO] [stdout] | ------ move occurs due to use in closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0515, E0597, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tetsy-jsonrpc-client-transports` (lib test) due to 21 previous errors [INFO] running `Command { std: "docker" "inspect" "cc1b02332ed3d8ff047f4035899742b24ba4334ddd43a843a35010f6308482e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc1b02332ed3d8ff047f4035899742b24ba4334ddd43a843a35010f6308482e4", kill_on_drop: false }` [INFO] [stdout] cc1b02332ed3d8ff047f4035899742b24ba4334ddd43a843a35010f6308482e4