syntax and rustc: fix some warnings
This commit is contained in:
parent
e48ca19bc5
commit
5b2c1c543f
@ -14,7 +14,7 @@ use metadata::cstore;
|
||||
use metadata::filesearch;
|
||||
|
||||
use std::hashmap::HashSet;
|
||||
use std::{num, os, path, uint, util, vec};
|
||||
use std::{os, util, vec};
|
||||
|
||||
fn not_win32(os: session::os) -> bool {
|
||||
os != session::os_win32
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
use std::option;
|
||||
use std::os;
|
||||
use std::{result, str};
|
||||
use std::hashmap::HashSet;
|
||||
|
||||
// A module for searching for libraries
|
||||
|
@ -685,7 +685,7 @@ pub fn expand_syntax_ext(ecx: @ExtCtxt, sp: span,
|
||||
};
|
||||
cx.fmtsp = efmt.span;
|
||||
let fmt = expr_to_str(ecx, efmt,
|
||||
~"first argument to ifmt! must be a string literal.");
|
||||
"first argument to ifmt! must be a string literal.");
|
||||
|
||||
let mut err = false;
|
||||
do parse::parse_error::cond.trap(|m| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user