about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-03-17 11:46:31 -0500
committerMark Mansi <markm@cs.wisc.edu>2018-03-26 08:37:56 -0500
commit07104692d5df1401fe0109fca800e4efe4e81a6c (patch)
treee7856e54c9046533f10a6d78cd06b53a1a2adebc /src/test
parentea89b507b37e089e87af5646042b911c84656b4a (diff)
downloadrust-07104692d5df1401fe0109fca800e4efe4e81a6c.tar.gz
rust-07104692d5df1401fe0109fca800e4efe4e81a6c.zip
Fix missed i128 feature gates
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/saturating-float-casts.rs2
-rw-r--r--src/test/run-pass/u128-as-f32.rs2
-rw-r--r--src/test/ui/feature-gate-i128_type2.rs34
-rw-r--r--src/test/ui/feature-gate-i128_type2.stderr13
4 files changed, 2 insertions, 49 deletions
diff --git a/src/test/run-pass/saturating-float-casts.rs b/src/test/run-pass/saturating-float-casts.rs
index d1a0901bb3d..ad3b4b17259 100644
--- a/src/test/run-pass/saturating-float-casts.rs
+++ b/src/test/run-pass/saturating-float-casts.rs
@@ -11,7 +11,7 @@
 // Tests saturating float->int casts. See u128-as-f32.rs for the opposite direction.
 // compile-flags: -Z saturating-float-casts
 
-#![feature(test, i128, stmt_expr_attributes)]
+#![feature(test, stmt_expr_attributes)]
 #![deny(overflowing_literals)]
 extern crate test;
 
diff --git a/src/test/run-pass/u128-as-f32.rs b/src/test/run-pass/u128-as-f32.rs
index 3531a961bef..2848fb2d51a 100644
--- a/src/test/run-pass/u128-as-f32.rs
+++ b/src/test/run-pass/u128-as-f32.rs
@@ -10,7 +10,7 @@
 
 // ignore-emscripten u128 not supported
 
-#![feature(test, i128)]
+#![feature(test)]
 #![deny(overflowing_literals)]
 extern crate test;
 
diff --git a/src/test/ui/feature-gate-i128_type2.rs b/src/test/ui/feature-gate-i128_type2.rs
deleted file mode 100644
index cd65b9d9223..00000000000
--- a/src/test/ui/feature-gate-i128_type2.rs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// gate-test-i128_type
-
-fn test1() -> i128 {
-    0
-}
-
-fn test1_2() -> u128 {
-    0
-}
-
-fn test3() {
-    let x: i128 = 0;
-}
-
-fn test3_2() {
-    let x: u128 = 0;
-}
-
-#[repr(u128)]
-enum A { //~ ERROR 128-bit type is unstable
-    A(u64)
-}
-
-fn main() {}
diff --git a/src/test/ui/feature-gate-i128_type2.stderr b/src/test/ui/feature-gate-i128_type2.stderr
deleted file mode 100644
index fe4557899ac..00000000000
--- a/src/test/ui/feature-gate-i128_type2.stderr
+++ /dev/null
@@ -1,13 +0,0 @@
-error[E0658]: repr with 128-bit type is unstable (see issue #35118)
-  --> $DIR/feature-gate-i128_type2.rs:30:1
-   |
-LL | / enum A { //~ ERROR 128-bit type is unstable
-LL | |     A(u64)
-LL | | }
-   | |_^
-   |
-   = help: add #![feature(repr128)] to the crate attributes to enable
-
-error: aborting due to 5 previous errors
-
-For more information about this error, try `rustc --explain E0658`.