regexident / cargo-modules

Visualize/analyze a Rust crate's internal structure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rustc-ap-rustc_data_structures fails to compile

ArekPiekarz opened this issue · comments

cargo-modules fails to compile when building its dependency rustc-ap-rustc_data_structures. It probably should use a newer version - 692.0.0 instead of 673.0.0.

Checked on rustc 1.50.0-nightly (e792288df 2020-12-05).

cargo +nightly install cargo-modules
(...)
Compiling rustc-ap-rustc_data_structures v673.0.0
error[E0557]: feature has been removed
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-673.0.0/lib.rs:16:12
   |
16 | #![feature(optin_builtin_traits)]
   |            ^^^^^^^^^^^^^^^^^^^^ feature has been removed
   |
   = note: renamed to `auto_traits`

error[E0658]: auto traits are experimental and possibly buggy
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-673.0.0/sync.rs:30:9
   |
30 |         pub auto trait Send {}
   |         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #13231 <https://github.com/rust-lang/rust/issues/13231> for more information
   = help: add `#![feature(auto_traits)]` to the crate attributes to enable

error[E0658]: auto traits are experimental and possibly buggy
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_data_structures-673.0.0/sync.rs:31:9
   |
31 |         pub auto trait Sync {}
   |         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #13231 <https://github.com/rust-lang/rust/issues/13231> for more information
   = help: add `#![feature(auto_traits)]` to the crate attributes to enable

   Compiling structopt v0.3.21
error: aborting due to 3 previous errors

Some errors have detailed explanations: E0557, E0658.
For more information about an error, try `rustc --explain E0557`.
error: failed to compile `cargo-modules v0.4.9`, intermediate artifacts can be found at `/tmp/cargo-installK6pcGj`

Caused by:
  could not compile `rustc-ap-rustc_data_structures`

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

Fixed with v0.4.10