about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-06-16 10:59:40 +0000
committerbors <bors@rust-lang.org>2018-06-16 10:59:40 +0000
commit61ba0180933485cf8a2bc6b7230a4c70b82bb063 (patch)
tree5aff6e18e3b8252bbc742272ad633866b779c912 /src/test/ui
parenta385095f9a6d4d068102b6c72fbdc86ac2667e51 (diff)
parente2aef92c19a95d6a0b8e75b473023f77de6150f0 (diff)
downloadrust-61ba0180933485cf8a2bc6b7230a4c70b82bb063.tar.gz
rust-61ba0180933485cf8a2bc6b7230a4c70b82bb063.zip
Auto merge of #51562 - SimonSapin:transparent, r=cramertj
Stabilize #[repr(transparent)]

Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318
Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/feature-gate-repr_transparent.rs14
-rw-r--r--src/test/ui/feature-gate-repr_transparent.stderr11
-rw-r--r--src/test/ui/lint-ctypes.rs2
3 files changed, 1 insertions, 26 deletions
diff --git a/src/test/ui/feature-gate-repr_transparent.rs b/src/test/ui/feature-gate-repr_transparent.rs
deleted file mode 100644
index deadf2e535d..00000000000
--- a/src/test/ui/feature-gate-repr_transparent.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2017 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.
-
-#[repr(transparent)] //~ error: the `#[repr(transparent)]` attribute is experimental
-struct Foo(u64);
-
-fn main() {}
diff --git a/src/test/ui/feature-gate-repr_transparent.stderr b/src/test/ui/feature-gate-repr_transparent.stderr
deleted file mode 100644
index a4ffaa26690..00000000000
--- a/src/test/ui/feature-gate-repr_transparent.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0658]: the `#[repr(transparent)]` attribute is experimental (see issue #43036)
-  --> $DIR/feature-gate-repr_transparent.rs:11:1
-   |
-LL | #[repr(transparent)] //~ error: the `#[repr(transparent)]` attribute is experimental
-   | ^^^^^^^^^^^^^^^^^^^^
-   |
-   = help: add #![feature(repr_transparent)] to the crate attributes to enable
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0658`.
diff --git a/src/test/ui/lint-ctypes.rs b/src/test/ui/lint-ctypes.rs
index 85957831653..4b20001457f 100644
--- a/src/test/ui/lint-ctypes.rs
+++ b/src/test/ui/lint-ctypes.rs
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #![deny(improper_ctypes)]
-#![feature(libc, repr_transparent)]
+#![feature(libc)]
 
 extern crate libc;