Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677050 - dev-util/cbindgen-0.7.1 - src_compile(): error[E0407]: method `source` is not a member of trait `error::Error`
Summary: dev-util/cbindgen-0.7.1 - src_compile(): error[E0407]: method `source` is not...
Status: RESOLVED DUPLICATE of bug 676914
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-01 14:44 UTC by piotr5
Modified: 2019-02-01 23:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piotr5 2019-02-01 14:44:06 UTC
using dev-lang/rust-1.32.0 I get

error[E0407]: method `source` is not a member of trait `error::Error`
  --> src/bindgen/cargo/cargo_expand.rs:49:5
  --> src/bindgen/cargo/cargo_metadata.rs:119:5
  --> src/bindgen/cargo/cargo_toml.rs:44:5
  --> src/bindgen/error.rs:78:5

and

error[E0599]: no method named `trim_start_matches` found for type `&str` in the current scope
   --> src/bindgen/utilities.rs:270:34

when executing

      cargo build -j $(makeopts_jobs) $(usex debug "" --release) "$@" || die "cargo build failed"

dev-util/cbindgen-0.6.7 works fine. do I need newer rust version? anyway, just mask dev-util/cbindgen-0.7.1 with ** I guess...
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-02-01 14:53:40 UTC
Have you selected the latest rust with 'eselect rust'? It sounds like an old version..

See also bug 676914
Comment 2 piotr5 2019-02-01 22:17:17 UTC
sorry I didn't think of checking that. in my case I did not notice that I also have dev-lang/rust-bin-1.29.1-r1 installed and just assumed that with rust-1.32.0 being the only version I have, eselect would use the right version. thanks for clearing that up -- guess emerge --depclean will clear that up then. still it's strange that some package installed in 2018-12-28 would drag in rust-bin instead of using the already installed rust...
Comment 3 Brian Evans (RETIRED) gentoo-dev 2019-02-01 23:18:05 UTC

*** This bug has been marked as a duplicate of bug 676914 ***