[INFO] cloning repository https://github.com/remolueoend/dotfiles [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/remolueoend/dotfiles" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fremolueoend%2Fdotfiles", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fremolueoend%2Fdotfiles'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 668666c1491f0213b66597974df1b02d1abae44c [INFO] checking remolueoend/dotfiles against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fremolueoend%2Fdotfiles" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/remolueoend/dotfiles [INFO] finished tweaking git repo https://github.com/remolueoend/dotfiles [INFO] tweaked toml for git repo https://github.com/remolueoend/dotfiles written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/remolueoend/dotfiles on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/remolueoend/dotfiles 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d055c967b4ba188c846ce99743ef7aee2f2ed746f795e2c65d5dbb714ffb00f1 [INFO] running `Command { std: "docker" "start" "-a" "d055c967b4ba188c846ce99743ef7aee2f2ed746f795e2c65d5dbb714ffb00f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d055c967b4ba188c846ce99743ef7aee2f2ed746f795e2c65d5dbb714ffb00f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d055c967b4ba188c846ce99743ef7aee2f2ed746f795e2c65d5dbb714ffb00f1", kill_on_drop: false }` [INFO] [stdout] d055c967b4ba188c846ce99743ef7aee2f2ed746f795e2c65d5dbb714ffb00f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4ebc386e823cdc46eb291f09562e6d16810c64a3f35682e495423247314d8dd [INFO] running `Command { std: "docker" "start" "-a" "a4ebc386e823cdc46eb291f09562e6d16810c64a3f35682e495423247314d8dd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking utf8parse v0.2.0 [INFO] [stderr] Checking unicode-segmentation v1.7.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking fixedbitset v0.4.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking fs_extra v1.2.0 [INFO] [stderr] Checking dirs-sys-next v0.1.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking term_size v0.3.2 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking dirs-next v1.0.2 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking petgraph v0.6.0 [INFO] [stderr] Checking rustyline v6.3.0 [INFO] [stderr] Checking promptly v0.3.0 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Checking dotfiles v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: can't compare `Mapping` with `Mapping` [INFO] [stdout] --> src/commands/add.rs:182:24 [INFO] [stdout] | [INFO] [stdout] 182 | if config.mappings.contains(&mappings_path) { [INFO] [stdout] | ^^^^^^^^ no implementation for `Mapping == Mapping` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Mapping` [INFO] [stdout] note: required by a bound in `core::slice::::contains` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(PartialEq)]` [INFO] [stdout] --> src/config.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add.rs:182:33 [INFO] [stdout] | [INFO] [stdout] 182 | if config.mappings.contains(&mappings_path) { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ expected `&Mapping`, found `&PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Mapping` [INFO] [stdout] found reference `&PathBuf` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `starts_with` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/commands/add.rs:187:24 [INFO] [stdout] | [INFO] [stdout] 187 | if mapping.starts_with(&mappings_path) { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `starts_with`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `clap::osstringext::OsStrExt2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 188 | return Err(Error::ExistingParent( [INFO] [stdout] | --------------------- arguments to this enum variant are incorrect [INFO] [stdout] 189 | mappings_path.to_owned(), [INFO] [stdout] 190 | mapping.to_owned(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/commands/add.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | ExistingParent(PathBuf, PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Mapping: AsRef` is not satisfied [INFO] [stdout] --> src/commands/add.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 192 | } else if mappings_path.starts_with(&mapping) { [INFO] [stdout] | ----------- ^^^^^^^ the trait `AsRef` is not implemented for `Mapping` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `&Mapping` to implement `AsRef` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `&&Mapping` to implement `AsRef` [INFO] [stdout] note: required by a bound in `std::path::Path::starts_with` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/path.rs:2598:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 193 | return Err(Error::ExistingChild( [INFO] [stdout] | -------------------- arguments to this enum variant are incorrect [INFO] [stdout] 194 | mappings_path.to_owned(), [INFO] [stdout] 195 | mapping.to_owned(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/commands/add.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | ExistingChild(PathBuf, PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | path: mapping, [INFO] [stdout] | ^^^^^^^ expected `&PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&PathBuf` [INFO] [stdout] found reference `&'a Mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Mapping` with `Mapping` [INFO] [stdout] --> src/commands/status.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | if mappings.contains(&rel_path) { [INFO] [stdout] | ^^^^^^^^ no implementation for `Mapping == Mapping` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Mapping` [INFO] [stdout] note: required by a bound in `core::slice::::contains` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(PartialEq)]` [INFO] [stdout] --> src/config.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | if mappings.contains(&rel_path) { [INFO] [stdout] | -------- ^^^^^^^^^ expected `&Mapping`, found `&PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Mapping` [INFO] [stdout] found reference `&PathBuf` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `starts_with` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/commands/status.rs:136:50 [INFO] [stdout] | [INFO] [stdout] 136 | } else if mappings.into_iter().any(|m| m.starts_with(&rel_path)) == false { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `starts_with`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `clap::osstringext::OsStrExt2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:151:62 [INFO] [stdout] | [INFO] [stdout] 151 | match dotfiles.binary_search_by(|(path, _)| path.cmp(mapping)) { [INFO] [stdout] | --- ^^^^^^^ expected `&PathBuf`, found `&Mapping` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&PathBuf` [INFO] [stdout] found reference `&Mapping` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/cmp.rs:979:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:153:47 [INFO] [stdout] | [INFO] [stdout] 153 | Err(pos) => dotfiles.insert(pos, (mapping.to_owned(), DotfilesEntryState::Invalid)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 26 | output.push(normalized_path); [INFO] [stdout] | ------ --------------- this argument has type `PathBuf`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `output` to have type `Vec` [INFO] [stdout] ... [INFO] [stdout] 29 | Ok(output) [INFO] [stdout] | -- ^^^^^^ expected `Vec`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] help: the type constructed contains `Vec` due to the type of the argument passed [INFO] [stdout] --> src/config.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(output) [INFO] [stdout] | ^^^------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/result.rs:553:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:86:28 [INFO] [stdout] | [INFO] [stdout] 86 | self.mappings.push(mapping); [INFO] [stdout] | ---- ^^^^^^^ expected `Mapping`, found `PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/vec/mod.rs:2571:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_absolute` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/config.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | if link.is_absolute() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 106 | if link.from.is_absolute() { [INFO] [stdout] | +++++ [INFO] [stdout] 106 | if link.to.is_absolute() { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:107:57 [INFO] [stdout] | [INFO] [stdout] 107 | return Err(AppError::ConfigAbsoluteLink(link.to_owned())); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/errors.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ConfigAbsoluteLink(PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Mapping: Clone` is not satisfied [INFO] [stdout] --> src/config.rs:120:42 [INFO] [stdout] | [INFO] [stdout] 120 | let mut mappings = self.mappings.to_vec(); [INFO] [stdout] | ^^^^^^ the trait `Clone` is not implemented for `Mapping` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `slice::::to_vec` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/slice.rs:370:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(Clone)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Mapping: Ord` is not satisfied [INFO] [stdout] --> src/config.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | mappings.sort(); [INFO] [stdout] | ^^^^ the trait `Ord` is not implemented for `Mapping` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `slice::::sort` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/slice.rs:129:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(Ord)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(Ord)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `starts_with` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/config.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | if next.starts_with(current) { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `starts_with`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `clap::osstringext::OsStrExt2` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 125 | if next.from.starts_with(current) { [INFO] [stdout] | +++++ [INFO] [stdout] 125 | if next.to.starts_with(current) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this enum variant are incorrect [INFO] [stdout] --> src/config.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | return Err(AppError::ConfigNestedLinks(next.clone(), current.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------ --------------- expected `PathBuf`, found `&Mapping` [INFO] [stdout] | | [INFO] [stdout] | expected `PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/errors.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | ConfigNestedLinks(PathBuf, PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | PathBuf::from(".config/some-other-dir"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Mapping`, found `PathBuf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Mapping` with `Mapping` [INFO] [stdout] --> src/commands/add.rs:182:24 [INFO] [stdout] | [INFO] [stdout] 182 | if config.mappings.contains(&mappings_path) { [INFO] [stdout] | ^^^^^^^^ no implementation for `Mapping == Mapping` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Mapping` [INFO] [stdout] note: required by a bound in `core::slice::::contains` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(PartialEq)]` [INFO] [stdout] --> src/config.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add.rs:182:33 [INFO] [stdout] | [INFO] [stdout] 182 | if config.mappings.contains(&mappings_path) { [INFO] [stdout] | -------- ^^^^^^^^^^^^^^ expected `&Mapping`, found `&PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Mapping` [INFO] [stdout] found reference `&PathBuf` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dotfiles` (lib test) due to 21 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `starts_with` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/commands/add.rs:187:24 [INFO] [stdout] | [INFO] [stdout] 187 | if mapping.starts_with(&mappings_path) { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `starts_with`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `clap::osstringext::OsStrExt2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 188 | return Err(Error::ExistingParent( [INFO] [stdout] | --------------------- arguments to this enum variant are incorrect [INFO] [stdout] 189 | mappings_path.to_owned(), [INFO] [stdout] 190 | mapping.to_owned(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/commands/add.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | ExistingParent(PathBuf, PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Mapping: AsRef` is not satisfied [INFO] [stdout] --> src/commands/add.rs:192:50 [INFO] [stdout] | [INFO] [stdout] 192 | } else if mappings_path.starts_with(&mapping) { [INFO] [stdout] | ----------- ^^^^^^^ the trait `AsRef` is not implemented for `Mapping` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `&Mapping` to implement `AsRef` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `&&Mapping` to implement `AsRef` [INFO] [stdout] note: required by a bound in `std::path::Path::starts_with` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/std/src/path.rs:2598:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/add.rs:195:21 [INFO] [stdout] | [INFO] [stdout] 193 | return Err(Error::ExistingChild( [INFO] [stdout] | -------------------- arguments to this enum variant are incorrect [INFO] [stdout] 194 | mappings_path.to_owned(), [INFO] [stdout] 195 | mapping.to_owned(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/commands/add.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | ExistingChild(PathBuf, PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:98:19 [INFO] [stdout] | [INFO] [stdout] 98 | path: mapping, [INFO] [stdout] | ^^^^^^^ expected `&PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&PathBuf` [INFO] [stdout] found reference `&'a Mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Mapping` with `Mapping` [INFO] [stdout] --> src/commands/status.rs:132:21 [INFO] [stdout] | [INFO] [stdout] 132 | if mappings.contains(&rel_path) { [INFO] [stdout] | ^^^^^^^^ no implementation for `Mapping == Mapping` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `Mapping` [INFO] [stdout] note: required by a bound in `core::slice::::contains` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(PartialEq)]` [INFO] [stdout] --> src/config.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(PartialEq)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 132 | if mappings.contains(&rel_path) { [INFO] [stdout] | -------- ^^^^^^^^^ expected `&Mapping`, found `&PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Mapping` [INFO] [stdout] found reference `&PathBuf` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/slice/mod.rs:2583:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `starts_with` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/commands/status.rs:136:50 [INFO] [stdout] | [INFO] [stdout] 136 | } else if mappings.into_iter().any(|m| m.starts_with(&rel_path)) == false { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `starts_with`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `clap::osstringext::OsStrExt2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:151:62 [INFO] [stdout] | [INFO] [stdout] 151 | match dotfiles.binary_search_by(|(path, _)| path.cmp(mapping)) { [INFO] [stdout] | --- ^^^^^^^ expected `&PathBuf`, found `&Mapping` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&PathBuf` [INFO] [stdout] found reference `&Mapping` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/cmp.rs:979:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/commands/status.rs:153:47 [INFO] [stdout] | [INFO] [stdout] 153 | Err(pos) => dotfiles.insert(pos, (mapping.to_owned(), DotfilesEntryState::Invalid)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 26 | output.push(normalized_path); [INFO] [stdout] | ------ --------------- this argument has type `PathBuf`... [INFO] [stdout] | | [INFO] [stdout] | ... which causes `output` to have type `Vec` [INFO] [stdout] ... [INFO] [stdout] 29 | Ok(output) [INFO] [stdout] | -- ^^^^^^ expected `Vec`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] help: the type constructed contains `Vec` due to the type of the argument passed [INFO] [stdout] --> src/config.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | Ok(output) [INFO] [stdout] | ^^^------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/core/src/result.rs:553:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:86:28 [INFO] [stdout] | [INFO] [stdout] 86 | self.mappings.push(mapping); [INFO] [stdout] | ---- ^^^^^^^ expected `Mapping`, found `PathBuf` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/vec/mod.rs:2571:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_absolute` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/config.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | if link.is_absolute() { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 106 | if link.from.is_absolute() { [INFO] [stdout] | +++++ [INFO] [stdout] 106 | if link.to.is_absolute() { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/config.rs:107:57 [INFO] [stdout] | [INFO] [stdout] 107 | return Err(AppError::ConfigAbsoluteLink(link.to_owned())); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^^^^^^ expected `PathBuf`, found `&Mapping` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/errors.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | ConfigAbsoluteLink(PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Mapping: Clone` is not satisfied [INFO] [stdout] --> src/config.rs:120:42 [INFO] [stdout] | [INFO] [stdout] 120 | let mut mappings = self.mappings.to_vec(); [INFO] [stdout] | ^^^^^^ the trait `Clone` is not implemented for `Mapping` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `slice::::to_vec` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/slice.rs:370:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(Clone)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Mapping: Ord` is not satisfied [INFO] [stdout] --> src/config.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | mappings.sort(); [INFO] [stdout] | ^^^^ the trait `Ord` is not implemented for `Mapping` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `slice::::sort` [INFO] [stdout] --> /rustc/a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d/library/alloc/src/slice.rs:129:5 [INFO] [stdout] help: consider annotating `Mapping` with `#[derive(Ord)]` [INFO] [stdout] | [INFO] [stdout] 35 + #[derive(Ord)] [INFO] [stdout] 36 | pub struct Mapping { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `starts_with` found for reference `&Mapping` in the current scope [INFO] [stdout] --> src/config.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | if next.starts_with(current) { [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&Mapping` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `starts_with`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `clap::osstringext::OsStrExt2` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 125 | if next.from.starts_with(current) { [INFO] [stdout] | +++++ [INFO] [stdout] 125 | if next.to.starts_with(current) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this enum variant are incorrect [INFO] [stdout] --> src/config.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | return Err(AppError::ConfigNestedLinks(next.clone(), current.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------ --------------- expected `PathBuf`, found `&Mapping` [INFO] [stdout] | | [INFO] [stdout] | expected `PathBuf`, found `&Mapping` [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> src/errors.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | ConfigNestedLinks(PathBuf, PathBuf), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `dotfiles` (lib) due to 20 previous errors [INFO] running `Command { std: "docker" "inspect" "a4ebc386e823cdc46eb291f09562e6d16810c64a3f35682e495423247314d8dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4ebc386e823cdc46eb291f09562e6d16810c64a3f35682e495423247314d8dd", kill_on_drop: false }` [INFO] [stdout] a4ebc386e823cdc46eb291f09562e6d16810c64a3f35682e495423247314d8dd