Error: language items are subject to change

Need help to resolve the stated error..

<Error Snip>
C:\Users\rufsharm\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.23\sr
c\dox.rs:137:20: 137:20 help: add #![feature(lang_items)] to the crate attribute
s to enable
C:\Users\rufsharm\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.23\sr
c\dox.rs:153:5: 153:20 error: language items are subject to change
C:\Users\rufsharm\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.23\sr
c\dox.rs:153     #[lang = "not"]

                 ^~~~~~~~~~~~~~~
C:\Users\rufsharm\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.23\sr
c\dox.rs:153:20: 153:20 help: add #![feature(lang_items)] to the crate attribute
s to enable
error: aborting due to 10 previous errors
Could not compile `libc`.

Caused by:
  Process didn't exit successfully: `rustc C:\Users\rufsharm\.cargo\registry\src
\github.com-1ecc6299db9ec823\libc-0.2.23\src\lib.rs --crate-name libc --crate-ty
pe lib -g --cfg feature="default" --cfg feature="use_std" -C metadata=10dc2d0b51
2312ca -C extra-filename=-10dc2d0b512312ca --out-dir C:\Users\rufsharm\Documents
\Rust_projects\guess\target\debug\deps --emit=dep-info,link -L dependency=C:\Use
rs\rufsharm\Documents\Rust_projects\guess\target\debug\deps -L dependency=C:\Use
rs\rufsharm\Documents\Rust_projects\guess\target\debug\deps -Awarnings` (exit co
de: 101)

</Error Snip>
Cargo.toml

[package]
name = "guess"
version = "0.0.1"
authors = ["Rufus Chakravarthy Sharma <rufus5576@gmail.com>"]

[dependencies]
rand = "0.3.0"

Environment : Windows 7 Service Pack 1
1 Like

It looks like you are somehow enabling the dox cfg item of the libc crate, which is doing some really weird stuff that most people should not be seeing.

3 Likes

I had the same problem. I was following the 1.0.0 getting started rust guide. The problem is that the guide starts out by letting you install a 1.0 beta version which doesn't work anymore. Follow the newer getting started guide and download the lastest rust installer.

1 Like