about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-27 18:48:21 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-03-01 00:12:34 +1100
commit218eae06ab7c7858057cc6bbd28fb4e0db9f5264 (patch)
treed5aeeb2e58f3c30ba64f35c7d8a1f0eddb55ca8e /src/libsyntax
parentfbdd3b2ef6196f236a8333b7435f1b31390c0194 (diff)
downloadrust-218eae06ab7c7858057cc6bbd28fb4e0db9f5264.tar.gz
rust-218eae06ab7c7858057cc6bbd28fb4e0db9f5264.zip
Publicise types/add #[allow(visible_private_types)] to a variety of places.
There's a lot of these types in the compiler libraries, and a few of the
older or private stdlib ones. Some types are obviously meant to be
public, others not so much.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/abi.rs4
-rw-r--r--src/libsyntax/lib.rs1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/abi.rs b/src/libsyntax/abi.rs
index c01f3721fad..861cd8ae7d3 100644
--- a/src/libsyntax/abi.rs
+++ b/src/libsyntax/abi.rs
@@ -48,7 +48,7 @@ pub enum Architecture {
 static IntelBits: u32 = (1 << (X86 as uint)) | (1 << (X86_64 as uint));
 static ArmBits: u32 = (1 << (Arm as uint));
 
-struct AbiData {
+pub struct AbiData {
     abi: Abi,
 
     // Name of this ABI as we like it called.
@@ -59,7 +59,7 @@ struct AbiData {
     abi_arch: AbiArchitecture
 }
 
-enum AbiArchitecture {
+pub enum AbiArchitecture {
     RustArch,   // Not a real ABI (e.g., intrinsic)
     AllArch,    // An ABI that specifies cross-platform defaults (e.g., "C")
     Archs(u32)  // Multiple architectures (bitset)
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index 42c9ab461aa..260375b5f81 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -31,6 +31,7 @@ This API is completely unstable and subject to change.
 #[feature(quote)];
 
 #[deny(non_camel_case_types)];
+#[allow(visible_private_types)];
 
 extern crate serialize;
 extern crate term;