Skip to content

Change deprecated constants into hidden constants #876

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
Dec 17, 2017

Conversation

asomers
Copy link
Contributor

@asomers asomers commented Dec 17, 2017

rustc, an important libc consumer, has a policy that they can't use any
crates with deprecated symbols. Replace libc's two deprecated symbols
with hidden symbols instead.

rustc, an important libc consumer, has a policy that they can't use any
crates with deprecated symbols.  Replace libc's two deprecated symbols
with hidden symbols instead.
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Dec 17, 2017

📌 Commit 6e8e7cf has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Dec 17, 2017

⌛ Testing commit 6e8e7cf with merge ef9eefb...

bors added a commit that referenced this pull request Dec 17, 2017
Change deprecated constants into hidden constants

rustc, an important libc consumer, has a policy that they can't use any
crates with deprecated symbols.  Replace libc's two deprecated symbols
with hidden symbols instead.
@bors
Copy link
Contributor

bors commented Dec 17, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing ef9eefb to master...

@bors bors merged commit 6e8e7cf into rust-lang:master Dec 17, 2017
semarie referenced this pull request in ruuda/thread-id Dec 18, 2017
The libc crate started using the #[deprecated] attribute, which is not
supported on Rust 1.8.0 stable, and results in a compile error. This
change was presumably introduced in commit 13ce9f8 [1] as part of pull
request 859 [2].

The solution is to put Cargo.lock under source control and freeze all
dependency versions, to be more resilient to external changes.

[1]: rust-lang/libc@13ce9f8
[2]: rust-lang/libc#859
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.

3 participants