tarpc icon indicating copy to clipboard operation
tarpc copied to clipboard

windows 10 latest rust nightly rustc_term v0.0.1 error[E0658]: use of unstable library feature 'rustc_private'

Open omac777 opened this issue 6 years ago • 1 comments

windows 10 bug surfaced when building tarpc:

davidm@IO-04 2019-05-03_10:53:25_EDT : /c/Users/davidm/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_term-0.0.1
$ cargo build --release
   Compiling rustc_term v0.0.1 (C:\Users\davidm\.cargo\registry\src\github.com-1ecc6299db9ec823\rustc_term-0.0.1)
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
 --> win.rs:5:1
  |
5 | extern crate libc;
  | ^^^^^^^^^^^^^^^^^^
  |
  = note: for more information, see https://github.com/rust-lang/rust/issues/27812
  = help: add #![feature(rustc_private)] to the crate attributes to enable

FIX: added #![feature(rustc_private)] to top of

cd /c/Users/davidm/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_term-0.0.1/lib.rs

BTW there was a similar line commented out.

cd ~/tarpc
cargo build --release

builds successfully after that.

omac777 avatar May 03 '19 15:05 omac777

Thanks for the report! If I understand correctly, this is a problem with rustc_term? You may want to file against https://github.com/rust-lang/libtest?

tikue avatar May 06 '19 17:05 tikue

Closing due to lack of activity, but if you are still having this issue, please feel free to reopen!

tikue avatar Feb 04 '24 08:02 tikue