Skip to content

Made external_crates feature work again. #21966

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

Merged
merged 1 commit into from
Feb 7, 2015
Merged

Conversation

scialex
Copy link
Contributor

@scialex scialex commented Feb 5, 2015

Also added test for it.

Fixes #21928

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -78,7 +78,6 @@
#[macro_use]
extern crate core;

#[cfg(all(not(feature = "external_funcs"), not(feature = "external_crate")))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That removes the error but links to libc instead. Adding #[allow(unused_features)] is a way better 'fix' (it still allows it globally...) without introducing a pointless platform specific dependency. IMHO the real problem is that it isn't possible to add #![feature(libc)] only when no other features are present...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aggreed

@alexcrichton
Copy link
Member

@bors: r+ 8fded29 rollup

@scialex
Copy link
Contributor Author

scialex commented Feb 5, 2015

@alexcrichton Could I get just a regular r+, This is a bug that actually breaks some code...

@alexcrichton
Copy link
Member

@bors: rollup-

Sure thing!

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 6, 2015
@bors bors merged commit 8fded29 into rust-lang:master Feb 7, 2015
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

Successfully merging this pull request may close these issues.

liballoc doesn't compile with --features external_crate anymore
5 participants