Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo build rails on rust nightly 1.13.0 (type macros are experimental) #1214

Closed
philippkeller opened this issue Sep 3, 2016 · 3 comments
Closed

Comments

@philippkeller
Copy link

my config: rustup show yields

Default host: x86_64-apple-darwin

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

stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

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

nightly-x86_64-apple-darwin (default)
rustc 1.13.0-nightly (ef9786ce0 2016-09-02)

I get the following error: type macros are experimental, full error message:

> cargo build
   Compiling rustc-serialize v0.3.19
   Compiling unicode-normalization v0.1.2
   Compiling nom v1.2.4
   Compiling quine-mc_cluskey v0.2.4
   Compiling semver v0.2.3
   Compiling regex-syntax v0.3.4
   Compiling matches v0.1.2
   Compiling toml v0.1.30
   Compiling clippy_lints v0.0.87 (file:///private/var/tmp/rust-clippy-0.0.87/clippy_lints)
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
clippy_lints/src/utils/conf.rs:91:27: 91:63 error: type macros are experimental (see issue #27245)
clippy_lints/src/utils/conf.rs:91             $(#[$doc] pub $rust_name: define_Conf!(TY $($ty)+),)+
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clippy_lints/src/utils/conf.rs:163:1: 180:2 note: in this expansion of define_Conf! (defined in clippy_lints/src/utils/conf.rs)
clippy_lints/src/utils/conf.rs:91:27: 91:63 help: add #![feature(type_macros)] to the crate attributes to enable
error: aborting due to 8 previous errors
error: Could not compile `clippy_lints`.

any hints?

@mcarton
Copy link
Member

mcarton commented Sep 4, 2016

type_macros has been stabilized a few days ago, which gave a new warning about the unused attribute in Clippy, so I removed it.
Clippy master and v0.0.87 compile fine for me and for Travis on ef9786ce0 2016-09-02.

It looks like you have two nightly toolchains installed. nightly-x86_64-apple-darwin being the default, and rustc 1.13.0-nightly (ef9786ce0 2016-09-02). Is ``nightly-x86_64-apple-darwin` up-to-date?

@philippkeller
Copy link
Author

right, somehow the default was set to nightly-x86_64-apple-darwin. I've managed to set it to yesterdays nightly:

rustup show
Default host: x86_64-apple-darwin

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

stable-x86_64-apple-darwin
nightly-2016-09-03-x86_64-apple-darwin (default)
nightly-x86_64-apple-darwin

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

nightly-2016-09-03-x86_64-apple-darwin (default)
rustc 1.13.0-nightly (ef9786ce0 2016-09-02)

but still the error remains..

@philippkeller
Copy link
Author

after running rustc --version printed rustc 1.12.0-nightly (5e18b4bad 2016-07-08) it was clear that I somehow had two competing rust installations. So I ran rustup self uninstall and sudo /usr/local/lib/rustlib/uninstall.sh to uninstall and curl https://sh.rustup.rs -sSf | sh and rustup default nightly to reinstall / switch to nightly. Now it compiles. Sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants