Some random things

This commit is contained in:
Nick Cameron 2015-01-11 18:45:59 +13:00
parent 22a059ddd1
commit bc3a330abb
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ impl<'a> FileSearch<'a> {
debug!("filesearch: searching lib path");
let tlib_path = make_target_lib_path(self.sysroot,
self.triple);
self.triple);
if !visited_dirs.contains(tlib_path.as_vec()) {
match f(&tlib_path) {
FileMatches => found = true,

View File

@ -10,7 +10,7 @@
use std::slice;
#[derive(Clone)]
#[derive(Clone, Show)]
pub struct SearchPaths {
paths: Vec<(PathKind, Path)>,
}
@ -20,7 +20,7 @@ pub struct Iter<'a> {
iter: slice::Iter<'a, (PathKind, Path)>,
}
#[derive(Eq, PartialEq, Clone, Copy)]
#[derive(Eq, PartialEq, Clone, Copy, Show)]
pub enum PathKind {
Native,
Crate,

View File

@ -186,7 +186,7 @@ fn run_compiler(args: &[String]) {
list_metadata(&sess, &(*ifile), &mut stdout).unwrap();
}
Input::Str(_) => {
early_error("can not list metadata for stdin");
early_error("cannot list metadata for stdin");
}
}
return;