[INFO] cloning repository https://github.com/r-darwish/raiden [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/r-darwish/raiden" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr-darwish%2Fraiden", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr-darwish%2Fraiden'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4bad7d258e9fe1bdeb6c6ca7a43c05bea4fc5154 [INFO] checking r-darwish/raiden against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fr-darwish%2Fraiden" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/r-darwish/raiden [INFO] finished tweaking git repo https://github.com/r-darwish/raiden [INFO] tweaked toml for git repo https://github.com/r-darwish/raiden written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/r-darwish/raiden on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/r-darwish/raiden already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ff5845d001c5c707da90fdedbb1b20982a14f7baee468fe4004ef211046322bd [INFO] running `Command { std: "docker" "start" "-a" "ff5845d001c5c707da90fdedbb1b20982a14f7baee468fe4004ef211046322bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ff5845d001c5c707da90fdedbb1b20982a14f7baee468fe4004ef211046322bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff5845d001c5c707da90fdedbb1b20982a14f7baee468fe4004ef211046322bd", kill_on_drop: false }` [INFO] [stdout] ff5845d001c5c707da90fdedbb1b20982a14f7baee468fe4004ef211046322bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 707e65a2cbacfd70c0e0888c37c350a1eda2930475b68b884325e098ba7e576d [INFO] running `Command { std: "docker" "start" "-a" "707e65a2cbacfd70c0e0888c37c350a1eda2930475b68b884325e098ba7e576d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking raiden v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/raiden/split.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::{File, IoError, IoErrorKind}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/raiden/merge.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::{File, Reader, IoError, IoErrorKind}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/raiden/split.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::{File, IoError, IoErrorKind}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::old_io` [INFO] [stdout] --> src/raiden/merge.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use std::old_io::{File, Reader, IoError, IoErrorKind}; [INFO] [stdout] | ^^^^^^ could not find `old_io` in `std` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | range(0, disks).map(|_| [0; CHUNK_SIZE]).collect() [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for s in range(0, disks) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/split.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | let path = Path::new(format!("{}_{}", source_filename, s)); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | for byte_i in range(0, chunks[parity_chunk].len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | for chunk_i in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | for byte_i in range(n, chunk.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | for chunk_i in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | for bytes_i in range(0, chunks[chunk_i].len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/split.rs:89:44 [INFO] [stdout] | [INFO] [stdout] 89 | let mut source_file = try!(File::open(&Path::new(source_filename))); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:94:36 [INFO] [stdout] | [INFO] [stdout] 94 | let mut parity_disk_iterator = range(0, disks).cycle(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/merge.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | let path = Path::new(format!("{}_{}", source_filename, disk)); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | for s in range(0, disks) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | for chunk_index in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | for i in range(0, disks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:122:23 [INFO] [stdout] | [INFO] [stdout] 122 | for byte_index in range(0, chunks[missing_index].len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | for chunk_index in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/raiden/merge.rs:135:48 [INFO] [stdout] | [INFO] [stdout] 135 | fn get_restored_path(source_filename: &str) -> Path { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/merge.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | let mut path = Path::new(source_filename); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:147:36 [INFO] [stdout] | [INFO] [stdout] 147 | let mut parity_disk_iterator = range(0, disks).cycle(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/main.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use std::env::args; [INFO] [stdout] | [INFO] [stdout] help: if you import `args`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 33 - let args = os::args(); [INFO] [stdout] 33 + let args = args(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | try!(disk_file.write_le_u64(source_file_length)); [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/raiden/split.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | let mut disk_file = try!(File::create(&path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | try!(disk.write_all(chunk)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | eof_reached = try!(read_to_chunk(source_file, &mut chunks[chunk_i])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | let mut source_file = try!(File::open(&Path::new(source_filename))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | let file_length = try!(source_file.stat()).size; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:91:26 [INFO] [stdout] | [INFO] [stdout] 91 | let mut disk_files = try!(create_disks(source_filename, disks, file_length)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | try!(write_to_disks(disk_files.as_mut_slice(), chunks.as_mut_slice())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | eof_reached = try!(read_to_chunks(&mut source_file, chunks.as_mut_slice(), parity_disk)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | try!(restored_file.write_all(&chunk[..to_write])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | let bytes_read = try!(disk.read(chunk.as_mut_slice())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:143:26 [INFO] [stdout] | [INFO] [stdout] 143 | let mut disk_array = try!(open_disks(source_filename, disks)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | let mut restored_file = try!(File::create(&get_restored_path(source_filename))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | try!(read_chunks_from_disks(chunks.as_mut_slice(), disk_array.disks.as_mut_slice())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:161:27 [INFO] [stdout] | [INFO] [stdout] 161 | remaining_bytes = try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | range(0, disks).map(|_| [0; CHUNK_SIZE]).collect() [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for s in range(0, disks) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/split.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | let path = Path::new(format!("{}_{}", source_filename, s)); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:28:19 [INFO] [stdout] | [INFO] [stdout] 28 | for byte_i in range(0, chunks[parity_chunk].len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | for chunk_i in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | for byte_i in range(n, chunk.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | for chunk_i in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 79 | for bytes_i in range(0, chunks[chunk_i].len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/split.rs:89:44 [INFO] [stdout] | [INFO] [stdout] 89 | let mut source_file = try!(File::open(&Path::new(source_filename))); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/split.rs:94:36 [INFO] [stdout] | [INFO] [stdout] 94 | let mut parity_disk_iterator = range(0, disks).cycle(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/merge.rs:19:16 [INFO] [stdout] | [INFO] [stdout] 19 | let path = Path::new(format!("{}_{}", source_filename, disk)); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `raiden` (bin "raiden") due to 29 previous errors; 16 warnings emitted [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:44:14 [INFO] [stdout] | [INFO] [stdout] 44 | for s in range(0, disks) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | for chunk_index in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:101:14 [INFO] [stdout] | [INFO] [stdout] 101 | for i in range(0, disks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:122:23 [INFO] [stdout] | [INFO] [stdout] 122 | for byte_index in range(0, chunks[missing_index].len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | for chunk_index in range(0, chunks.len()) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> src/raiden/merge.rs:135:48 [INFO] [stdout] | [INFO] [stdout] 135 | fn get_restored_path(source_filename: &str) -> Path { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Path` [INFO] [stdout] --> src/raiden/merge.rs:136:20 [INFO] [stdout] | [INFO] [stdout] 136 | let mut path = Path::new(source_filename); [INFO] [stdout] | ^^^^ use of undeclared type `Path` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `range` in this scope [INFO] [stdout] --> src/raiden/merge.rs:147:36 [INFO] [stdout] | [INFO] [stdout] 147 | let mut parity_disk_iterator = range(0, disks).cycle(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 + use std::slice::range; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `args` in module `os` [INFO] [stdout] --> src/main.rs:33:20 [INFO] [stdout] | [INFO] [stdout] 33 | let args = os::args(); [INFO] [stdout] | ^^^^ not found in `os` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use std::env::args; [INFO] [stdout] | [INFO] [stdout] help: if you import `args`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 33 - let args = os::args(); [INFO] [stdout] 33 + let args = args(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/main.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | try!(disk_file.write_le_u64(source_file_length)); [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/raiden/split.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | let mut disk_file = try!(File::create(&path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | try!(disk.write_all(chunk)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:73:27 [INFO] [stdout] | [INFO] [stdout] 73 | eof_reached = try!(read_to_chunk(source_file, &mut chunks[chunk_i])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:89:27 [INFO] [stdout] | [INFO] [stdout] 89 | let mut source_file = try!(File::open(&Path::new(source_filename))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:90:23 [INFO] [stdout] | [INFO] [stdout] 90 | let file_length = try!(source_file.stat()).size; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:91:26 [INFO] [stdout] | [INFO] [stdout] 91 | let mut disk_files = try!(create_disks(source_filename, disks, file_length)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | try!(write_to_disks(disk_files.as_mut_slice(), chunks.as_mut_slice())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/split.rs:99:23 [INFO] [stdout] | [INFO] [stdout] 99 | eof_reached = try!(read_to_chunks(&mut source_file, chunks.as_mut_slice(), parity_disk)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | try!(restored_file.write_all(&chunk[..to_write])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | let bytes_read = try!(disk.read(chunk.as_mut_slice())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:143:26 [INFO] [stdout] | [INFO] [stdout] 143 | let mut disk_array = try!(open_disks(source_filename, disks)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:144:29 [INFO] [stdout] | [INFO] [stdout] 144 | let mut restored_file = try!(File::create(&get_restored_path(source_filename))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | try!(read_chunks_from_disks(chunks.as_mut_slice(), disk_array.disks.as_mut_slice())); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/raiden/merge.rs:161:27 [INFO] [stdout] | [INFO] [stdout] 161 | remaining_bytes = try!( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&mut _` [INFO] [stdout] --> src/raiden/merge.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let chunk = &mut chunks[i]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | let bytes_read = try!(disk.read(chunk.as_mut_slice())); [INFO] [stdout] | ------------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `chunk` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 102 | let chunk: &mut _ = &mut chunks[i]; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `&mut _` [INFO] [stdout] --> src/raiden/merge.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let chunk = &mut chunks[i]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | let bytes_read = try!(disk.read(chunk.as_mut_slice())); [INFO] [stdout] | ------------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `chunk` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 102 | let chunk: &mut _ = &mut chunks[i]; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/main.rs:35:88 [INFO] [stdout] | [INFO] [stdout] 35 | [_, ref command, ref filename, ref disks_str] if command.as_slice() == "split".as_slice() => { [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] 14 | None => { [INFO] [stdout] | ^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 36 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 14 | Ok(None) => { [INFO] [stdout] | +++ + [INFO] [stdout] 14 | Err(None) => { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] ... [INFO] [stdout] 18 | Some(n) => n [INFO] [stdout] | ^^^^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 36 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 18 | Ok(Some(n)) => n [INFO] [stdout] | +++ + [INFO] [stdout] 18 | Err(Some(n)) => n [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/main.rs:35:88 [INFO] [stdout] | [INFO] [stdout] 35 | [_, ref command, ref filename, ref disks_str] if command.as_slice() == "split".as_slice() => { [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] 14 | None => { [INFO] [stdout] | ^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 36 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 14 | Ok(None) => { [INFO] [stdout] | +++ + [INFO] [stdout] 14 | Err(None) => { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/main.rs:39:88 [INFO] [stdout] | [INFO] [stdout] 39 | [_, ref command, ref filename, ref disks_str] if command.as_slice() == "merge".as_slice() => { [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] ... [INFO] [stdout] 18 | Some(n) => n [INFO] [stdout] | ^^^^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 36 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 18 | Ok(Some(n)) => n [INFO] [stdout] | +++ + [INFO] [stdout] 18 | Err(Some(n)) => n [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] 14 | None => { [INFO] [stdout] | ^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 40 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 14 | Ok(None) => { [INFO] [stdout] | +++ + [INFO] [stdout] 14 | Err(None) => { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] ... [INFO] [stdout] 18 | Some(n) => n [INFO] [stdout] | ^^^^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 40 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 18 | Ok(Some(n)) => n [INFO] [stdout] | +++ + [INFO] [stdout] 18 | Err(Some(n)) => n [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'static str` in the current scope [INFO] [stdout] --> src/main.rs:39:88 [INFO] [stdout] | [INFO] [stdout] 39 | [_, ref command, ref filename, ref disks_str] if command.as_slice() == "merge".as_slice() => { [INFO] [stdout] | ^^^^^^^^ method not found in `&'static str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] 14 | None => { [INFO] [stdout] | ^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 40 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 14 | Ok(None) => { [INFO] [stdout] | +++ + [INFO] [stdout] 14 | Err(None) => { [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | ($arg:ident, $err:expr) => (match FromStr::from_str($arg.as_slice()) { [INFO] [stdout] | ---------------------------------- this expression has type `Result<_, _>` [INFO] [stdout] ... [INFO] [stdout] 18 | Some(n) => n [INFO] [stdout] | ^^^^^^^ expected `Result<_, _>`, found `Option<_>` [INFO] [stdout] ... [INFO] [stdout] 40 | let disks: usize = try_arg_parse!(disks_str, "Invalid number of disks"); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<_, _>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] = note: this error originates in the macro `try_arg_parse` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: try wrapping the pattern in a variant of `Result` [INFO] [stdout] | [INFO] [stdout] 18 | Ok(Some(n)) => n [INFO] [stdout] | +++ + [INFO] [stdout] 18 | Err(Some(n)) => n [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0308, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `raiden` (bin "raiden" test) due to 29 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "707e65a2cbacfd70c0e0888c37c350a1eda2930475b68b884325e098ba7e576d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "707e65a2cbacfd70c0e0888c37c350a1eda2930475b68b884325e098ba7e576d", kill_on_drop: false }` [INFO] [stdout] 707e65a2cbacfd70c0e0888c37c350a1eda2930475b68b884325e098ba7e576d