about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-03-16 20:15:56 -0500
committerMark Mansi <markm@cs.wisc.edu>2018-03-26 08:37:56 -0500
commitdb7d9ea480e16c7135c997f56b44d3c0a657cc9d (patch)
tree53d11378eae87a1b1f56d9835aa69e410fc1b82b /src/libsyntax
parent33d9d8e0c62e6eeb3c9406a251312c630c2b3596 (diff)
downloadrust-db7d9ea480e16c7135c997f56b44d3c0a657cc9d.tar.gz
rust-db7d9ea480e16c7135c997f56b44d3c0a657cc9d.zip
Stabilize i128 feature too
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostic_list.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs
index 1f87c1b94c5..3246dc47701 100644
--- a/src/libsyntax/diagnostic_list.rs
+++ b/src/libsyntax/diagnostic_list.rs
@@ -250,7 +250,10 @@ An unstable feature was used.
 Erroneous code example:
 
 ```compile_fail,E658
-let x = ::std::u128::MAX; // error: use of unstable library feature 'i128'
+#[repr(u128)] // error: use of unstable library feature 'i128'
+enum Foo {
+    Bar(u64),
+}
 ```
 
 If you're using a stable or a beta version of rustc, you won't be able to use
@@ -261,10 +264,11 @@ If you're using a nightly version of rustc, just add the corresponding feature
 to be able to use it:
 
 ```
-#![feature(i128)]
+#![feature(repri128)]
 
-fn main() {
-    let x = ::std::u128::MAX; // ok!
+#[repr(u128)] // ok!
+enum Foo {
+    Bar(u64),
 }
 ```
 "##,