From a4df35f2bcb9a399b2d4a1aa3c1def7682f9cb62 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 23 May 2013 09:39:24 -0700 Subject: cleanup warnings from libsyntax --- src/libsyntax/ast.rs | 3 +-- src/libsyntax/ext/pipes/ast_builder.rs | 2 -- src/libsyntax/parse/parser.rs | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'src/libsyntax') 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 { -- cgit 1.4.1-3-g733a5