Some random things
This commit is contained in:
parent
22a059ddd1
commit
bc3a330abb
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user