[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#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsacooper%2FSimpleShell-Rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sacooper/SimpleShell-Rust on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "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-7-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aed2e4226c97b6ae50443731359eaa4fa31aeed438d6bb279fef3938da55f82d [INFO] running `Command { std: "docker" "start" "-a" "aed2e4226c97b6ae50443731359eaa4fa31aeed438d6bb279fef3938da55f82d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aed2e4226c97b6ae50443731359eaa4fa31aeed438d6bb279fef3938da55f82d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aed2e4226c97b6ae50443731359eaa4fa31aeed438d6bb279fef3938da55f82d", kill_on_drop: false }` [INFO] [stdout] aed2e4226c97b6ae50443731359eaa4fa31aeed438d6bb279fef3938da55f82d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 649f6194f1d45d3ba9b3eb3a72f34c1141e49541574fa5b88c175fc40bdd2c51 [INFO] running `Command { std: "docker" "start" "-a" "649f6194f1d45d3ba9b3eb3a72f34c1141e49541574fa5b88c175fc40bdd2c51", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking RustShell v0.0.1 (/opt/rustwide/workdir) [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: 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] help: consider importing one of these modules instead [INFO] [stdout] | [INFO] [stdout] 3 - use std::io::process; [INFO] [stdout] 3 + use std::os::linux::process; [INFO] [stdout] | [INFO] [stdout] 3 - use std::io::process; [INFO] [stdout] 3 + use std::os::unix::process; [INFO] [stdout] | [INFO] [stdout] 3 - use std::io::process; [INFO] [stdout] 3 + use std::process; [INFO] [stdout] | [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] help: consider importing one of these modules instead [INFO] [stdout] | [INFO] [stdout] 3 - use std::io::process; [INFO] [stdout] 3 + use std::os::linux::process; [INFO] [stdout] | [INFO] [stdout] 3 - use std::io::process; [INFO] [stdout] 3 + use std::os::unix::process; [INFO] [stdout] | [INFO] [stdout] 3 - use std::io::process; [INFO] [stdout] 3 + use std::process; [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: 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] 66 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | ++++++ [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] 88 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | ++++++ [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] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/marker.rs:91:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Send` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 117 - let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] 117 + let (tx, rx): (Send, Receiver) = channel(); [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::mpmc::Sender; [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::mpmc::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 one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::mpmc::channel; [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] 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[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/main.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | ++++++ [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] 88 | let x : Option = from_str(args[1]); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | fn execute(args : &Vec<&str>, background : bool, history : &mut Vec, jobs : &mut Vec) -> Result<(), ()> { [INFO] [stdout] | ++++++ [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[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] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/marker.rs:91:1 [INFO] [stdout] | [INFO] [stdout] = note: similarly named trait `Send` defined here [INFO] [stdout] | [INFO] [stdout] help: a trait with a similar name exists [INFO] [stdout] | [INFO] [stdout] 117 - let (tx, rx): (Sender, Receiver) = channel(); [INFO] [stdout] 117 + let (tx, rx): (Send, Receiver) = channel(); [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::mpmc::Sender; [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::mpmc::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 one of these functions [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::mpmc::channel; [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] 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: 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[E0061]: this method 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] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/std/src/io/stdio.rs:411:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line(/* &mut String */).unwrap_or(String::new()); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method 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] | ^^^^^^^^^-- argument #1 of type `&mut String` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/std/src/io/stdio.rs:411:12 [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 151 | let input : String = io::stdin().read_line(/* &mut String */).unwrap_or(String::new()); [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 `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `String` due to the type of the argument passed [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] | this argument influences the return type of `unwrap_or` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/result.rs:1467:12 [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 `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `String` due to the type of the argument passed [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] | this argument influences the return type of `unwrap_or` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/result.rs:1467:12 [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] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | | [INFO] [stdout] | | expected `String`, found `usize` [INFO] [stdout] | expected due to this [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] | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | | [INFO] [stdout] | | expected `String`, found `usize` [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] note: if you're trying to build a new `String` consider using one of the following associated functions: [INFO] [stdout] String::new [INFO] [stdout] String::with_capacity [INFO] [stdout] String::try_with_capacity [INFO] [stdout] String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/alloc/src/string.rs:444:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 154 - else if input == String::from_str("\n"){continue}; [INFO] [stdout] 154 + else if input == String::from("\n"){continue}; [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: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] note: if you're trying to build a new `String` consider using one of the following associated functions: [INFO] [stdout] String::new [INFO] [stdout] String::with_capacity [INFO] [stdout] String::try_with_capacity [INFO] [stdout] String::from_utf8 [INFO] [stdout] and 9 others [INFO] [stdout] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/alloc/src/string.rs:444:5 [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::str::FromStr; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 154 - else if input == String::from_str("\n"){continue}; [INFO] [stdout] 154 + else if input == String::from("\n"){continue}; [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] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import 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: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] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import 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] --> /rustc/c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `RustShell` (bin "RustShell") due to 17 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `RustShell` (bin "RustShell" test) due to 16 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "649f6194f1d45d3ba9b3eb3a72f34c1141e49541574fa5b88c175fc40bdd2c51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "649f6194f1d45d3ba9b3eb3a72f34c1141e49541574fa5b88c175fc40bdd2c51", kill_on_drop: false }` [INFO] [stdout] 649f6194f1d45d3ba9b3eb3a72f34c1141e49541574fa5b88c175fc40bdd2c51