[INFO] cloning repository https://github.com/sacooper/SimpleShell-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sacooper/SimpleShell-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsacooper%2FSimpleShell-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsacooper%2FSimpleShell-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6fbec7dab15b9119db13772c6790e0f36f5dea9a [INFO] checking sacooper/SimpleShell-Rust against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsacooper%2FSimpleShell-Rust" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sacooper/SimpleShell-Rust on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sacooper/SimpleShell-Rust [INFO] finished tweaking git repo https://github.com/sacooper/SimpleShell-Rust [INFO] tweaked toml for git repo https://github.com/sacooper/SimpleShell-Rust written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/sacooper/SimpleShell-Rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cc8b375b50cc9e7f79aea98328eb88dfbc215d0256961fe54966f7d2c07b403 [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" "0cc8b375b50cc9e7f79aea98328eb88dfbc215d0256961fe54966f7d2c07b403", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cc8b375b50cc9e7f79aea98328eb88dfbc215d0256961fe54966f7d2c07b403", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cc8b375b50cc9e7f79aea98328eb88dfbc215d0256961fe54966f7d2c07b403", kill_on_drop: false }` [INFO] [stdout] 0cc8b375b50cc9e7f79aea98328eb88dfbc215d0256961fe54966f7d2c07b403 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8a33a28888a04686192b5805ee4e9a770db0ca4762ea57ad3360b56ea9d0367d [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" "8a33a28888a04686192b5805ee4e9a770db0ca4762ea57ad3360b56ea9d0367d", kill_on_drop: false }` [INFO] [stderr] Checking RustShell v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/main.rs:29:61 [INFO] [stdout] | [INFO] [stdout] 29 | let y : Vec<&HistoryEntry> = history.iter().rev().take(10u).collect(); [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stdout] --> src/main.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | spawn(proc() { [INFO] [stdout] | -^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> src/main.rs:29:61 [INFO] [stdout] | [INFO] [stdout] 29 | let y : Vec<&HistoryEntry> = history.iter().rev().take(10u).collect(); [INFO] [stdout] | ^^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stdout] --> src/main.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | spawn(proc() { [INFO] [stdout] | -^ expected one of `)`, `,`, `.`, `?`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::process` [INFO] [stdout] --> src/main.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::process::Command; [INFO] [stdout] | ^^^^^^^ could not find `process` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::process` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::process; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `process` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::process` [INFO] [stdout] --> src/main.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::process::Command; [INFO] [stdout] | ^^^^^^^ could not find `process` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::io::process` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::process; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `process` in `io` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/main.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/main.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 10 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 66 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 88 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Send, Receiver) = channel(); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Receiver` in this scope [INFO] [stdout] --> src/main.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::Receiver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `channel` in this scope [INFO] [stdout] --> src/main.rs:117:77 [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:118:6 [INFO] [stdout] | [INFO] [stdout] 118 | spawn(proc() { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | spawn(proc() { [INFO] [stdout] | ^^^^ help: a local variable with a similar name exists: `prog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:136:3 [INFO] [stdout] | [INFO] [stdout] 136 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:151:36 [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line().unwrap_or(String::new()); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 66 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 88 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `from_str` in this scope [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Sender` in this scope [INFO] [stdout] --> src/main.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Send, Receiver) = channel(); [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::Sender; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Receiver` in this scope [INFO] [stdout] --> src/main.rs:117:47 [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Receiver; [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::Receiver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `channel` in this scope [INFO] [stdout] --> src/main.rs:117:77 [INFO] [stdout] | [INFO] [stdout] 117 | let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::channel; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `spawn` in this scope [INFO] [stdout] --> src/main.rs:118:6 [INFO] [stdout] | [INFO] [stdout] 118 | spawn(proc() { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread::spawn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `proc` in this scope [INFO] [stdout] --> src/main.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | spawn(proc() { [INFO] [stdout] | ^^^^ help: a local variable with a similar name exists: `prog` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:136:3 [INFO] [stdout] | [INFO] [stdout] 136 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/main.rs:151:36 [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line().unwrap_or(String::new()); [INFO] [stdout] | ^^^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:151:58 [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line().unwrap_or(String::new()); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `usize`, found struct `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line().unwrap_or(String::new()); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected struct `String`, found `usize` [INFO] [stdout] | | help: try using a conversion method: `io::stdin().read_line().unwrap_or(String::new()).to_string()` [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | else if input == String::from_str("\n"){continue}; [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:151:58 [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line().unwrap_or(String::new()); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `usize`, found struct `String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:31:65 [INFO] [stdout] | [INFO] [stdout] 31 | let name = x.args.iter().fold(String::new(), |acc, x|{acc.add(x).add(&" ")}); [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | let name = if x.background {name} else {name.add(&"&")}; [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for mutable reference `&mut Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 11 | struct HistoryEntry{ [INFO] [stdout] | ------------------- doesn't satisfy `HistoryEntry: Clone` [INFO] [stdout] ... [INFO] [stdout] 39 | match history.clone().last(){ [INFO] [stdout] | ^^^^^ method cannot be called on `&mut Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `HistoryEntry: Clone` [INFO] [stdout] which is required by `Vec: Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for mutable reference `&mut Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 11 | struct HistoryEntry{ [INFO] [stdout] | ------------------- doesn't satisfy `HistoryEntry: Clone` [INFO] [stdout] ... [INFO] [stdout] 47 | for x in history.clone().iter().rev() { [INFO] [stdout] | ^^^^^ method cannot be called on `&mut Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `HistoryEntry: Clone` [INFO] [stdout] which is required by `Vec: Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `char_at` found for reference `&str` in the current scope [INFO] [stdout] --> src/main.rs:48:53 [INFO] [stdout] | [INFO] [stdout] 48 | if x.args[0].as_slice().char_at(0) == args[1].char_at(0){ [INFO] [stdout] | ^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:151:24 [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line().unwrap_or(String::new()); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | expected struct `String`, found `usize` [INFO] [stdout] | | help: try using a conversion method: `io::stdin().read_line().unwrap_or(String::new()).to_string()` [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:154:28 [INFO] [stdout] | [INFO] [stdout] 154 | else if input == String::from_str("\n"){continue}; [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `tail` found for reference `&Vec<&str>` in the current scope [INFO] [stdout] --> src/main.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | prog.args(args.tail().as_slice()); [INFO] [stdout] | ^^^^ method not found in `&Vec<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:123:90 [INFO] [stdout] | [INFO] [stdout] 123 | jobs.push(JobEntry{process : p, name : args.iter().fold(String::new(), |acc, x|{acc.add(x).add(&" ")})})} [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:130:66 [INFO] [stdout] | [INFO] [stdout] 130 | history.push(HistoryEntry{args : args.iter().map(|x|{String::from_str(*x)}).collect(), background : background}); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:31:65 [INFO] [stdout] | [INFO] [stdout] 31 | let name = x.args.iter().fold(String::new(), |acc, x|{acc.add(x).add(&" ")}); [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | let name = if x.background {name} else {name.add(&"&")}; [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'r String` in the current scope [INFO] [stdout] --> src/main.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | for c in input.as_slice().split(' '){ [INFO] [stdout] | ^^^^^^^^ method not found in `&'r String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for mutable reference `&mut Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 11 | struct HistoryEntry{ [INFO] [stdout] | ------------------- doesn't satisfy `HistoryEntry: Clone` [INFO] [stdout] ... [INFO] [stdout] 39 | match history.clone().last(){ [INFO] [stdout] | ^^^^^ method cannot be called on `&mut Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `HistoryEntry: Clone` [INFO] [stdout] which is required by `Vec: Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `clone` exists for mutable reference `&mut Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:47:23 [INFO] [stdout] | [INFO] [stdout] 11 | struct HistoryEntry{ [INFO] [stdout] | ------------------- doesn't satisfy `HistoryEntry: Clone` [INFO] [stdout] ... [INFO] [stdout] 47 | for x in history.clone().iter().rev() { [INFO] [stdout] | ^^^^^ method cannot be called on `&mut Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `HistoryEntry: Clone` [INFO] [stdout] which is required by `Vec: Clone` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `char_at` found for reference `&str` in the current scope [INFO] [stdout] --> src/main.rs:48:53 [INFO] [stdout] | [INFO] [stdout] 48 | if x.args[0].as_slice().char_at(0) == args[1].char_at(0){ [INFO] [stdout] | ^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `RustShell` [INFO] [stdout] error: aborting due to 27 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `tail` found for reference `&Vec<&str>` in the current scope [INFO] [stdout] --> src/main.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | prog.args(args.tail().as_slice()); [INFO] [stdout] | ^^^^ method not found in `&Vec<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:123:90 [INFO] [stdout] | [INFO] [stdout] 123 | jobs.push(JobEntry{process : p, name : args.iter().fold(String::new(), |acc, x|{acc.add(x).add(&" ")})})} [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_str` found for struct `String` in the current scope [INFO] [stdout] --> src/main.rs:130:66 [INFO] [stdout] | [INFO] [stdout] 130 | history.push(HistoryEntry{args : args.iter().map(|x|{String::from_str(*x)}).collect(), background : background}); [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `String` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_slice` found for reference `&'r String` in the current scope [INFO] [stdout] --> src/main.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 141 | for c in input.as_slice().split(' '){ [INFO] [stdout] | ^^^^^^^^ method not found in `&'r String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 27 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412, E0425, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "8a33a28888a04686192b5805ee4e9a770db0ca4762ea57ad3360b56ea9d0367d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a33a28888a04686192b5805ee4e9a770db0ca4762ea57ad3360b56ea9d0367d", kill_on_drop: false }` [INFO] [stdout] 8a33a28888a04686192b5805ee4e9a770db0ca4762ea57ad3360b56ea9d0367d