diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-08 16:09:01 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2016-02-11 12:34:48 +0100 |
| commit | ccf48bcd4054ecb4e205a18b1ac582ef3ac3a905 (patch) | |
| tree | 6a8f3b5bf12f7540c2f31575a9b1a6a31cbac231 /src/libsyntax/ast.rs | |
| parent | 80bf9ae18a133571d694aa866b824dcaea875d32 (diff) | |
| download | rust-ccf48bcd4054ecb4e205a18b1ac582ef3ac3a905.tar.gz rust-ccf48bcd4054ecb4e205a18b1ac582ef3ac3a905.zip | |
[breaking-change] don't glob export ast::FloatTy variants
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 36543bd35ca..a43874f9990 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -10,7 +10,6 @@ // The Rust abstract syntax tree. -pub use self::FloatTy::*; pub use self::ForeignItem_::*; pub use self::IntTy::*; pub use self::Item_::*; @@ -1509,8 +1508,8 @@ impl fmt::Display for UintTy { #[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Copy)] pub enum FloatTy { - TyF32, - TyF64, + F32, + F64, } impl fmt::Debug for FloatTy { @@ -1528,15 +1527,15 @@ impl fmt::Display for FloatTy { impl FloatTy { pub fn ty_to_string(&self) -> &'static str { match *self { - TyF32 => "f32", - TyF64 => "f64", + FloatTy::F32 => "f32", + FloatTy::F64 => "f64", } } pub fn bit_width(&self) -> usize { match *self { - TyF32 => 32, - TyF64 => 64, + FloatTy::F32 => 32, + FloatTy::F64 => 64, } } } |
