Skip to content

Commit 5b2c1c5

Browse files
committed
syntax and rustc: fix some warnings
1 parent e48ca19 commit 5b2c1c5

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/librustc/back/rpath.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use metadata::cstore;
1414
use metadata::filesearch;
1515

1616
use std::hashmap::HashSet;
17-
use std::{num, os, path, uint, util, vec};
17+
use std::{os, util, vec};
1818

1919
fn not_win32(os: session::os) -> bool {
2020
os != session::os_win32

src/librustc/metadata/filesearch.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use std::option;
1313
use std::os;
14-
use std::{result, str};
1514
use std::hashmap::HashSet;
1615

1716
// A module for searching for libraries

src/libsyntax/ext/ifmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ pub fn expand_syntax_ext(ecx: @ExtCtxt, sp: span,
685685
};
686686
cx.fmtsp = efmt.span;
687687
let fmt = expr_to_str(ecx, efmt,
688-
~"first argument to ifmt! must be a string literal.");
688+
"first argument to ifmt! must be a string literal.");
689689

690690
let mut err = false;
691691
do parse::parse_error::cond.trap(|m| {

0 commit comments

Comments
 (0)