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

Make members of {std,core}::{i128,u128} unstable #38861

Merged
merged 1 commit into from
Jan 8, 2017
Merged

Conversation

est31
Copy link
Member

@est31 est31 commented Jan 6, 2017

Fixes #38860

@rust-highfive
Copy link
Collaborator

r? @brson

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

@est31
Copy link
Member Author

est31 commented Jan 6, 2017

r? @alexcrichton

@rust-highfive rust-highfive assigned alexcrichton and unassigned brson Jan 6, 2017
Adding it in a stable form was an accident.
It thankfully only leaked to nightly.

Fixes rust-lang#38860
@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Jan 6, 2017

📌 Commit 1779ffa has been approved by alexcrichton

// except according to those terms.

fn testl() {
::std::u128::MAX; //~ ERROR use of unstable library feature 'i128'
Copy link
Contributor

Choose a reason for hiding this comment

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

The error should be u128, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, the feature is named i128, there is one for both i128 and u128.

@@ -14,4 +14,4 @@

#![unstable(feature = "i128", issue="35118")]

int_module! { i128 }
int_module! { i128, #[unstable(feature = "i128", issue="35118")] }
Copy link
Contributor

Choose a reason for hiding this comment

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

The feature name was defined to be i128_type here
https://github.com/rust-lang/rust/blob/master/src/libsyntax/feature_gate.rs#L323
Should this match that definition?

Copy link
Member Author

Choose a reason for hiding this comment

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

They are two different features. One (i128_type) gates the actual type in the language, the other (i128) gates the library members. Here we use the library gating one.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation!

@bors
Copy link
Contributor

bors commented Jan 8, 2017

⌛ Testing commit 1779ffa with merge bb7e7ef...

bors added a commit that referenced this pull request Jan 8, 2017
Make members of {std,core}::{i128,u128} unstable

Fixes #38860
@bors
Copy link
Contributor

bors commented Jan 8, 2017

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

@bors bors merged commit 1779ffa into rust-lang:master Jan 8, 2017
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.

6 participants