[INFO] cloning repository https://github.com/badboy/redis-zrangescore-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/badboy/redis-zrangescore-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbadboy%2Fredis-zrangescore-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbadboy%2Fredis-zrangescore-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] abad98290532d88cda71b3da3057757ca31551f4 [INFO] checking badboy/redis-zrangescore-example against master#5e3f1b148db5bfa27fee52464ae1f5d34c49d77b for pr-75502 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbadboy%2Fredis-zrangescore-example" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/badboy/redis-zrangescore-example on toolchain 5e3f1b148db5bfa27fee52464ae1f5d34c49d77b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/badboy/redis-zrangescore-example [INFO] finished tweaking git repo https://github.com/badboy/redis-zrangescore-example [INFO] tweaked toml for git repo https://github.com/badboy/redis-zrangescore-example written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/badboy/redis-zrangescore-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/mitsuhiko/redis-rs/` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 072f3fa0c078234ff95fc8785fd61254c2164c76b82b502e809b62a71d20380e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "072f3fa0c078234ff95fc8785fd61254c2164c76b82b502e809b62a71d20380e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "072f3fa0c078234ff95fc8785fd61254c2164c76b82b502e809b62a71d20380e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "072f3fa0c078234ff95fc8785fd61254c2164c76b82b502e809b62a71d20380e", kill_on_drop: false }` [INFO] [stdout] 072f3fa0c078234ff95fc8785fd61254c2164c76b82b502e809b62a71d20380e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+5e3f1b148db5bfa27fee52464ae1f5d34c49d77b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7caf70b9a6d352b83b1f1042150a020f18ac52855e67813466f8a7a7679c47d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b7caf70b9a6d352b83b1f1042150a020f18ac52855e67813466f8a7a7679c47d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Checking futures-io v0.3.5 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking futures-sink v0.3.5 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking async-channel v1.4.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking futures-lite v0.1.11 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.34 [INFO] [stderr] Checking polling v0.1.6 [INFO] [stderr] Checking socket2 v0.3.12 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking blocking v0.5.2 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking async-io v0.1.11 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Checking async-executor v0.1.2 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking async-std v1.6.3 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling async-trait v0.1.40 [INFO] [stderr] Checking pin-project v0.4.23 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking combine v4.3.1 [INFO] [stderr] Checking redis v0.17.1-alpha.0 (https://github.com/mitsuhiko/redis-rs/#7a3a4c2d) [INFO] [stderr] Checking redis-zrangescore-example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | let client = try!(redis::Client::open("redis://127.0.0.1/")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | let _ : () = try!(con.del("myzset")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | let _ : () = try!(con.zadd("myzset", "one", 1)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | let _ : () = try!(con.zadd("myzset", "two", 2)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | let _ : () = try!(con.zadd("myzset", "three", 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | let zset : Vec = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | let zset : Vec<(String,u32)> = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let zset : Vec = try!(con.zrangebyscore_withscores("non-existent-set", 0, 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] 10 | // throw away the result, just make sure it does not fail [INFO] [stdout] 11 | let _ : () = try!(con.del("myzset")); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 12 | let _ : () = try!(con.zadd("myzset", "one", 1)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 13 | let _ : () = try!(con.zadd("myzset", "two", 2)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 14 | let _ : () = try!(con.zadd("myzset", "three", 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 16 | let zset : Vec = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 19 | let zset : Vec<(String,u32)> = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:22:49 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 22 | let res : redis::RedisResult> = con.zrangebyscore_withscores("myzset", 0, 3); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 28 | let zset : Vec = try!(con.zrangebyscore_withscores("non-existent-set", 0, 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: could not compile `redis-zrangescore-example`. [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] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | let client = try!(redis::Client::open("redis://127.0.0.1/")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 11 | let _ : () = try!(con.del("myzset")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | let _ : () = try!(con.zadd("myzset", "one", 1)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | let _ : () = try!(con.zadd("myzset", "two", 2)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | let _ : () = try!(con.zadd("myzset", "three", 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:16:30 [INFO] [stdout] | [INFO] [stdout] 16 | let zset : Vec = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:19:36 [INFO] [stdout] | [INFO] [stdout] 19 | let zset : Vec<(String,u32)> = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let zset : Vec = try!(con.zrangebyscore_withscores("non-existent-set", 0, 3)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] 10 | // throw away the result, just make sure it does not fail [INFO] [stdout] 11 | let _ : () = try!(con.del("myzset")); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:12:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 12 | let _ : () = try!(con.zadd("myzset", "one", 1)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 13 | let _ : () = try!(con.zadd("myzset", "two", 2)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 14 | let _ : () = try!(con.zadd("myzset", "three", 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:16:35 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 16 | let zset : Vec = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 19 | let zset : Vec<(String,u32)> = try!(con.zrangebyscore_withscores("myzset", 0, 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:22:49 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 22 | let res : redis::RedisResult> = con.zrangebyscore_withscores("myzset", 0, 3); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `con` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 9 | let con = try!(client.get_connection()); [INFO] [stdout] | --- help: consider changing this to be mutable: `mut con` [INFO] [stdout] ... [INFO] [stdout] 28 | let zset : Vec = try!(con.zrangebyscore_withscores("non-existent-set", 0, 3)); [INFO] [stdout] | ^^^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0596`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "b7caf70b9a6d352b83b1f1042150a020f18ac52855e67813466f8a7a7679c47d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7caf70b9a6d352b83b1f1042150a020f18ac52855e67813466f8a7a7679c47d", kill_on_drop: false }` [INFO] [stdout] b7caf70b9a6d352b83b1f1042150a020f18ac52855e67813466f8a7a7679c47d