about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-05-23 09:39:24 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-05-23 17:57:07 -0700
commita4df35f2bcb9a399b2d4a1aa3c1def7682f9cb62 (patch)
tree60562a6b2d88d860ea8412b31da889a0e89e62e0 /src/libsyntax
parent609a9e69e1c1def4d570cfb3c31640200ef738c9 (diff)
downloadrust-a4df35f2bcb9a399b2d4a1aa3c1def7682f9cb62.tar.gz
rust-a4df35f2bcb9a399b2d4a1aa3c1def7682f9cb62.zip
cleanup warnings from libsyntax
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs3
-rw-r--r--src/libsyntax/ext/pipes/ast_builder.rs2
-rw-r--r--src/libsyntax/parse/parser.rs6
3 files changed, 4 insertions, 7 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 9ab6f13bb4b..a71f0ef2064 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -17,9 +17,8 @@ use abi::AbiSet;
 use opt_vec::OptVec;
 use parse::token::get_ident_interner;
 
-use core::cast;
 use core::hashmap::HashMap;
-use core::option::{Option};
+use core::option::Option;
 use core::to_bytes::IterBytes;
 use core::to_bytes;
 use core::to_str::ToStr;
diff --git a/src/libsyntax/ext/pipes/ast_builder.rs b/src/libsyntax/ext/pipes/ast_builder.rs
index 545b5338ab1..da59059a0cc 100644
--- a/src/libsyntax/ext/pipes/ast_builder.rs
+++ b/src/libsyntax/ext/pipes/ast_builder.rs
@@ -15,11 +15,9 @@
 
 use core::prelude::*;
 
-use abi::AbiSet;
 use ast::ident;
 use ast;
 use codemap::span;
-// use ext::quote::rt::*;
 
 // Transitional reexports so qquote can find the paths it is looking for
 mod syntax {
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 0a2d0ed924e..b8993520ae4 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2752,7 +2752,7 @@ pub impl Parser {
             match *self.token {
                 token::SEMI => {
                     if !vec::is_empty(attributes_box) {
-                        self.span_err(*self.last_span,~"expected item after attributes");
+                        self.span_err(*self.last_span, "expected item after attributes");
                         attributes_box = ~[];
                     }
                     self.bump(); // empty
@@ -2823,7 +2823,7 @@ pub impl Parser {
         }
 
         if !vec::is_empty(attributes_box) {
-            self.span_err(*self.last_span,~"expected item after attributes");
+            self.span_err(*self.last_span, "expected item after attributes");
         }
 
         let hi = self.span.hi;
@@ -3742,7 +3742,7 @@ pub impl Parser {
         } = self.parse_foreign_items(first_item_attrs, true);
         if (! attrs_remaining.is_empty()) {
             self.span_err(*self.last_span,
-                          ~"expected item after attributes");
+                          "expected item after attributes");
         }
         assert!(*self.token == token::RBRACE);
         ast::foreign_mod {