[INFO] cloning repository https://github.com/hulthe/aoc_2018 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hulthe/aoc_2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhulthe%2Faoc_2018", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhulthe%2Faoc_2018'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9c115ce01e7bb956d97725df75e5fd43b351c2c7 [INFO] checking hulthe/aoc_2018 against try#cac44d9528e3bbbdaa1537d187bd489ccc5de18c for pr-91141 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhulthe%2Faoc_2018" "/workspace/builds/worker-53/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-53/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hulthe/aoc_2018 on toolchain cac44d9528e3bbbdaa1537d187bd489ccc5de18c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hulthe/aoc_2018 [INFO] finished tweaking git repo https://github.com/hulthe/aoc_2018 [INFO] tweaked toml for git repo https://github.com/hulthe/aoc_2018 written to /workspace/builds/worker-53/source/Cargo.toml [INFO] crate git repo https://github.com/hulthe/aoc_2018 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hyper v0.12.16 [INFO] [stderr] Downloaded pest v2.0.2 [INFO] [stderr] Downloaded binary-heap-plus v0.1.4 [INFO] [stderr] Downloaded single v1.0.0 [INFO] [stderr] Downloaded from-pest v0.3.1 [INFO] [stderr] Downloaded indicatif v0.10.2 [INFO] [stderr] Downloaded pest-ast v0.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-53/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-53/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 267c3be3609b4e85498b7fef06b026839bb238b8fb6154ea61dc19e67d0d8a7f [INFO] running `Command { std: "docker" "start" "-a" "267c3be3609b4e85498b7fef06b026839bb238b8fb6154ea61dc19e67d0d8a7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "267c3be3609b4e85498b7fef06b026839bb238b8fb6154ea61dc19e67d0d8a7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "267c3be3609b4e85498b7fef06b026839bb238b8fb6154ea61dc19e67d0d8a7f", kill_on_drop: false }` [INFO] [stdout] 267c3be3609b4e85498b7fef06b026839bb238b8fb6154ea61dc19e67d0d8a7f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-53/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-53/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+cac44d9528e3bbbdaa1537d187bd489ccc5de18c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0211977b4864912f482f364f4bf71da64d5d33d9d064c535fd94ac7ab4ba3625 [INFO] running `Command { std: "docker" "start" "-a" "0211977b4864912f482f364f4bf71da64d5d33d9d064c535fd94ac7ab4ba3625", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cc v1.0.25 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking aoc_base v0.1.0 (/opt/rustwide/workdir/aoc_base) [INFO] [stderr] Checking slab v0.4.1 [INFO] [stderr] Compiling rayon-core v1.4.1 [INFO] [stderr] Compiling rayon v1.0.3 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling failure_derive v0.1.3 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Compiling openssl v0.10.15 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling rustc-demangle v0.1.9 [INFO] [stderr] Checking string v0.1.2 [INFO] [stderr] Compiling encoding_rs v0.8.13 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking binary-heap-plus v0.1.4 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking arrayvec v0.4.8 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking crossbeam-utils v0.6.1 [INFO] [stderr] Checking tokio-executor v0.1.5 [INFO] [stderr] Checking crossbeam-utils v0.2.2 [INFO] [stderr] Checking rand_xorshift v0.1.0 [INFO] [stderr] Compiling rand_core v0.2.2 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling pest v2.0.2 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Checking libflate v0.1.19 [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Compiling phf_shared v0.7.23 [INFO] [stderr] Compiling syn v0.14.9 [INFO] [stderr] Checking mime v0.3.12 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> aoc_base/src/lib.rs:8:46 [INFO] [stdout] | [INFO] [stdout] 8 | fn task_a(input: &str) -> Result>; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> aoc_base/src/lib.rs:9:46 [INFO] [stdout] | [INFO] [stdout] 9 | fn task_b(input: &str) -> Result>; [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking aoc_2018_day12 v0.1.0 (/opt/rustwide/workdir/day12) [INFO] [stderr] Checking aoc_2018_day08 v0.1.0 (/opt/rustwide/workdir/day08) [INFO] [stderr] Checking aoc_2018_day09 v0.1.0 (/opt/rustwide/workdir/day09) [INFO] [stderr] Checking aoc_2018_day02 v0.1.0 (/opt/rustwide/workdir/day02) [INFO] [stderr] Checking aoc_2018_day01 v0.1.0 (/opt/rustwide/workdir/day01) [INFO] [stderr] Checking aoc_2018_day10 v0.1.0 (/opt/rustwide/workdir/day10) [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking tokio-timer v0.2.8 [INFO] [stderr] Checking tokio-current-thread v0.1.4 [INFO] [stderr] Checking want v0.0.6 [INFO] [stderr] Compiling pest_meta v2.0.3 [INFO] [stderr] Checking phf v0.7.23 [INFO] [stderr] Compiling synstructure v0.10.1 [INFO] [stderr] Checking crossbeam-epoch v0.6.1 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day01/src/lib.rs:17:47 [INFO] [stdout] | [INFO] [stdout] 17 | fn task_a(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day01/src/lib.rs:24:47 [INFO] [stdout] | [INFO] [stdout] 24 | fn task_b(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> day08/src/tree.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day08/src/lib.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | fn task_a(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day08/src/lib.rs:20:49 [INFO] [stdout] | [INFO] [stdout] 20 | fn task_b(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> day08/src/tree.rs:47:45 [INFO] [stdout] | [INFO] [stdout] 43 | / fn rec_parse<'a, 'b, I>(iter: &'a mut I) -> Result [INFO] [stdout] 44 | | where I: Iterator, [INFO] [stdout] 45 | | 'b: 'a, [INFO] [stdout] 46 | | { [INFO] [stdout] 47 | | let child_count: usize = iter.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 59 | | }) [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> day08/src/tree.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 43 | / fn rec_parse<'a, 'b, I>(iter: &'a mut I) -> Result [INFO] [stdout] 44 | | where I: Iterator, [INFO] [stdout] 45 | | 'b: 'a, [INFO] [stdout] 46 | | { [INFO] [stdout] 47 | | let child_count: usize = iter.next()?.parse()?; [INFO] [stdout] 48 | | let meta_count: usize = iter.next()?.parse()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 59 | | }) [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.39 [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> day08/src/tree.rs:54:59 [INFO] [stdout] | [INFO] [stdout] 43 | / fn rec_parse<'a, 'b, I>(iter: &'a mut I) -> Result [INFO] [stdout] 44 | | where I: Iterator, [INFO] [stdout] 45 | | 'b: 'a, [INFO] [stdout] 46 | | { [INFO] [stdout] ... | [INFO] [stdout] 54 | | .collect::>>()??; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 59 | | }) [INFO] [stdout] 60 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling backtrace-sys v0.1.24 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day12/src/lib.rs:92:47 [INFO] [stdout] | [INFO] [stdout] 92 | fn task_a(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking from-pest v0.3.1 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day12/src/lib.rs:96:47 [INFO] [stdout] | [INFO] [stdout] 96 | fn task_b(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc_2018_day08` due to 5 previous errors; 2 warnings emitted [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day10/src/lib.rs:123:50 [INFO] [stdout] | [INFO] [stdout] 123 | fn task_a(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day10/src/lib.rs:128:47 [INFO] [stdout] | [INFO] [stdout] 128 | fn task_b(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day09/src/lib.rs:26:59 [INFO] [stdout] | [INFO] [stdout] 26 | fn parse_input(input: &str) -> Result<(usize, usize), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day09/src/lib.rs:59:49 [INFO] [stdout] | [INFO] [stdout] 59 | fn task_a(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day09/src/lib.rs:64:49 [INFO] [stdout] | [INFO] [stdout] 64 | fn task_b(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day02/src/lib.rs:9:48 [INFO] [stdout] | [INFO] [stdout] 9 | fn task_a(inputs: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> day02/src/lib.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 41 | fn task_b(ids: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> day02/src/lib.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | let mut id = String::from(s1.as_ref()); [INFO] [stdout] | ^^^^^^^^^^^^ cannot infer type for reference `&_` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `String: From<&_>` found in the `alloc` crate: [INFO] [stdout] - impl<> From<&String> for String; [INFO] [stdout] - impl<> From<&str> for String; [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> day02/src/lib.rs:61:50 [INFO] [stdout] | [INFO] [stdout] 61 | let mut id = String::from(s1.as_ref()); [INFO] [stdout] | ---^^^^^^-- [INFO] [stdout] | | | [INFO] [stdout] | | cannot infer type for type parameter `T` declared on the trait `AsRef` [INFO] [stdout] | this method call resolves to `&T` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `str: AsRef<_>` found in the following crates: `core`, `std`: [INFO] [stdout] - impl AsRef for str; [INFO] [stdout] - impl AsRef for str; [INFO] [stdout] - impl AsRef<[u8]> for str; [INFO] [stdout] - impl AsRef for str; [INFO] [stdout] help: use the fully qualified path for the potential candidates [INFO] [stdout] | [INFO] [stdout] 61 | let mut id = String::from(>::as_ref(s1)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 61 | let mut id = String::from(>::as_ref(s1)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 61 | let mut id = String::from(>::as_ref(s1)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] 61 | let mut id = String::from(>::as_ref(s1)); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "0211977b4864912f482f364f4bf71da64d5d33d9d064c535fd94ac7ab4ba3625", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0211977b4864912f482f364f4bf71da64d5d33d9d064c535fd94ac7ab4ba3625", kill_on_drop: false }` [INFO] [stdout] 0211977b4864912f482f364f4bf71da64d5d33d9d064c535fd94ac7ab4ba3625