[INFO] updating cached repository mcapo88/rustpa2 [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mcapo88/rustpa2 [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mcapo88/rustpa2" "work/ex/beta-1.38-1/sources/1.37.0/gh/mcapo88/rustpa2"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/mcapo88/rustpa2'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mcapo88/rustpa2" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mcapo88/rustpa2"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mcapo88/rustpa2'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] c9452b7a6b03975baa151b8da34bf67e64acf20e [INFO] sha for GitHub repo mcapo88/rustpa2: c9452b7a6b03975baa151b8da34bf67e64acf20e [INFO] validating manifest of mcapo88/rustpa2 on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of mcapo88/rustpa2 on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing mcapo88/rustpa2 [INFO] finished frobbing mcapo88/rustpa2 [INFO] frobbed toml for mcapo88/rustpa2 written to work/ex/beta-1.38-1/sources/1.37.0/gh/mcapo88/rustpa2/Cargo.toml [INFO] started frobbing mcapo88/rustpa2 [INFO] finished frobbing mcapo88/rustpa2 [INFO] frobbed toml for mcapo88/rustpa2 written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/mcapo88/rustpa2/Cargo.toml [INFO] crate mcapo88/rustpa2 already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing mcapo88/rustpa2 against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-5/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/mcapo88/rustpa2:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 22d0cda932c20d4b71ecf5aa008d0808c0ec7c2829ee40522d0f2344814a63f2 [INFO] running `"docker" "start" "-a" "22d0cda932c20d4b71ecf5aa008d0808c0ec7c2829ee40522d0f2344814a63f2"` [INFO] [stderr] Compiling pa2 v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error[E0432]: unresolved imports `getopts::optopt`, `getopts::getopts` [INFO] [stderr] --> src/main.rs:11:15 [INFO] [stderr] | [INFO] [stderr] 11 | use getopts::{optopt, getopts}; [INFO] [stderr] | ^^^^^^ ^^^^^^^ no `getopts` in the root [INFO] [stderr] | | [INFO] [stderr] | no `optopt` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/main.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | use std::old_io::{BufferedReader, BufferedWriter}; [INFO] [stderr] | ^^^^^^ could not find `old_io` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/main.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | use std::old_io::stdin; [INFO] [stderr] | ^^^^^^ could not find `old_io` in `std` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `old_io` in `std` [INFO] [stderr] --> src/main.rs:19:10 [INFO] [stderr] | [INFO] [stderr] 19 | use std::old_io::fs::PathExtensions; //this is for checking if file exists in cd [INFO] [stderr] | ^^^^^^ could not find `old_io` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/main.rs:16:11 [INFO] [stderr] | [INFO] [stderr] 16 | use std::{old_io, os}; [INFO] [stderr] | ^^^^^^ no `old_io` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::os::getcwd` [INFO] [stderr] --> src/main.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | use std::os::getcwd; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `getcwd` in `os` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/main.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | use std::old_io::File; [INFO] [stderr] | ^^^^^^ could not find `old_io` in `std` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:87:21 [INFO] [stderr] | [INFO] [stderr] 87 | let p = Path::new(root_path); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:121:25 [INFO] [stderr] | [INFO] [stderr] 121 | let p = Path::new(path); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:129:25 [INFO] [stderr] | [INFO] [stderr] 129 | let p = Path::new(path); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:232:24 [INFO] [stderr] | [INFO] [stderr] 232 | let path = Path::new(fullpath); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:328:51 [INFO] [stderr] | [INFO] [stderr] 328 | let mut f = File::create(&Path::new(&fname)); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:349:47 [INFO] [stderr] | [INFO] [stderr] 349 | let mut f = File::create(&Path::new(filename)); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `args` in module `os` [INFO] [stderr] --> src/main.rs:375:20 [INFO] [stderr] | [INFO] [stderr] 375 | let args = os::args(); [INFO] [stderr] | ^^^^ not found in `os` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 11 | use std::env::args; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `optopt` in module `getopts` [INFO] [stderr] --> src/main.rs:378:18 [INFO] [stderr] | [INFO] [stderr] 378 | getopts::optopt("c", "", "", "") [INFO] [stderr] | ^^^^^^ not found in `getopts` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `getopts` in module `getopts` [INFO] [stderr] --> src/main.rs:381:14 [INFO] [stderr] | [INFO] [stderr] 381 | getopts::getopts(args.tail(), opts).unwrap().opt_str("c") [INFO] [stderr] | ^^^^^^^ not found in `getopts` [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::old_io::fs::PathExtensions` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::old_io::fs::PathExtensions; //this is for checking if file exists in cd [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Sender` [INFO] [stderr] --> src/main.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | use std::sync::mpsc::{channel, Sender, Receiver}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type `message` should have an upper camel case name [INFO] [stderr] --> src/main.rs:28:8 [INFO] [stderr] | [INFO] [stderr] 28 | struct message{ [INFO] [stderr] | ^^^^^^^ help: convert the identifier to upper camel case: `Message` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_camel_case_types)] on by default [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/main.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | extern crate getopts; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&'a str` in the current scope [INFO] [stderr] --> src/main.rs:46:50 [INFO] [stderr] | [INFO] [stderr] 46 | old_io::stdio::print(self.cmd_prompt.as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `split_str` found for type `&str` in the current scope [INFO] [stderr] --> src/main.rs:81:34 [INFO] [stderr] | [INFO] [stderr] 81 | let cmd_split = cmd_line.split_str(" "); [INFO] [stderr] | ^^^^^^^^^ help: there is a method with a similar name: `split_at` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `split_str` found for type `&str` in the current scope [INFO] [stderr] --> src/main.rs:109:44 [INFO] [stderr] | [INFO] [stderr] 109 | let mut split = cwd_string.split_str("/"); [INFO] [stderr] | ^^^^^^^^^ help: there is a method with a similar name: `split_at` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec<&str>` in the current scope [INFO] [stderr] --> src/main.rs:273:28 [INFO] [stderr] | [INFO] [stderr] 273 | let argv = arg.tail(); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `capture` found for type `std::process::Stdio` in the current scope [INFO] [stderr] --> src/main.rs:275:83 [INFO] [stderr] | [INFO] [stderr] 275 | let process = match Command::new(program).args(argv).stdin(Stdio::capture()).stdout(Stdio::capture()).stderr(Stdio::capture()).spawn() { [INFO] [stderr] | ^^^^^^^ function or associated item not found in `std::process::Stdio` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `capture` found for type `std::process::Stdio` in the current scope [INFO] [stderr] --> src/main.rs:275:108 [INFO] [stderr] | [INFO] [stderr] 275 | let process = match Command::new(program).args(argv).stdin(Stdio::capture()).stdout(Stdio::capture()).stderr(Stdio::capture()).spawn() { [INFO] [stderr] | ^^^^^^^ function or associated item not found in `std::process::Stdio` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `capture` found for type `std::process::Stdio` in the current scope [INFO] [stderr] --> src/main.rs:275:133 [INFO] [stderr] | [INFO] [stderr] 275 | let process = match Command::new(program).args(argv).stdin(Stdio::capture()).stdout(Stdio::capture()).stderr(Stdio::capture()).spawn() { [INFO] [stderr] | ^^^^^^^ function or associated item not found in `std::process::Stdio` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `description` found for type `std::io::Error` in the current scope [INFO] [stderr] --> src/main.rs:276:78 [INFO] [stderr] | [INFO] [stderr] 276 | Err(why) => panic!("couldn't spawn {}: {}", program, why.description()), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 11 | use std::error::Error; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::borrow::Cow<'_, str>` in the current scope [INFO] [stderr] --> src/main.rs:330:100 [INFO] [stderr] | [INFO] [stderr] 330 | writer.write_str(String::from_utf8_lossy(&message.info[0..message.length]).as_slice()); //don't pad with 0's [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::borrow::Cow<'_, str>` in the current scope [INFO] [stderr] --> src/main.rs:351:96 [INFO] [stderr] | [INFO] [stderr] 351 | writer.write_str(String::from_utf8_lossy(&message.info[0..message.length]).as_slice()); //don't pad with 0's [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `capture` found for type `std::process::Stdio` in the current scope [INFO] [stderr] --> src/main.rs:369:59 [INFO] [stderr] | [INFO] [stderr] 369 | Command::new("which").arg(cmd_path).stdout(Stdio::capture()).status().unwrap().success() [INFO] [stderr] | ^^^^^^^ function or associated item not found in `std::process::Stdio` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:388:63 [INFO] [stderr] | [INFO] [stderr] 388 | Some(cmd_line) => Shell::new("").run_cmdline(cmd_line.as_slice()), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Read` [INFO] [stderr] --> src/main.rs:15:15 [INFO] [stderr] | [INFO] [stderr] 15 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Write` [INFO] [stderr] --> src/main.rs:15:21 [INFO] [stderr] | [INFO] [stderr] 15 | use std::io::{Read, Write}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 29 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432, E0433, E0599, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] error: Could not compile `pa2`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "22d0cda932c20d4b71ecf5aa008d0808c0ec7c2829ee40522d0f2344814a63f2"` [INFO] running `"docker" "rm" "-f" "22d0cda932c20d4b71ecf5aa008d0808c0ec7c2829ee40522d0f2344814a63f2"` [INFO] [stdout] 22d0cda932c20d4b71ecf5aa008d0808c0ec7c2829ee40522d0f2344814a63f2