Skip to content

No method named remove_item #118

@rien333

Description

@rien333

I'm quite new to rust, so sorry if this is problem purely caused by my incompetence.

Still, whenever I try to build this program, I get the following error(s):

$ cargo install --no-default-features hunter
...
Compiling derivative v1.0.4
Compiling strum_macros v0.15.0
Compiling failure v0.1.8
Compiling async_value v0.2.7
error[E0599]: no method named `remove_item` found for struct `Vec<files::File>` in the current scope
   --> /home/rw/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/hunter-1.3.5/src/files.rs:520:43
    |
520 |             .map(|placeholder| self.files.remove_item(&placeholder));
    |                                           ^^^^^^^^^^^ method not found in `Vec<files::File>`

error[E0599]: no method named `remove_item` found for struct `Vec<PathBuf>` in the current scope
    --> /home/rw/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/hunter-1.3.5/src/files.rs:1079:40
     |
1079 |             false => { TAGS.write()?.1.remove_item(&self.path); },
     |                                        ^^^^^^^^^^^ method not found in `Vec<PathBuf>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0599`.
error: failed to compile `hunter v1.3.5`, intermediate artifacts can be found at `/tmp/cargo-install3Wenh4`

Caused by:
  could not compile `hunter`

To learn more, run the command again with --verbose.

I'm running Arch linux (kernel version 5.10.11), and rustup (1.23.1), and rustup show shows me I'm using nightly (not using nightly also doesn't work ofc, though that gives a different error):

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/rw/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)

active toolchain
----------------

nightly-x86_64-unknown-linux-gnu (default)
rustc 1.51.0-nightly (04caa632d 2021-01-30)

I've ran rustup update as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions