Skip to content

Commit be8fed4

Browse files
committed
---
yaml --- r: 64592 b: refs/heads/snap-stage3 c: 2f7d86f h: refs/heads/master v: v3
1 parent 1b0d11f commit be8fed4

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 48f115e1681cdd5fa0d76400a3d23f7513286491
4+
refs/heads/snap-stage3: 2f7d86f9a86f0da23579eef50ba1275d36e6c0bc
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ pub fn make_tests(config: &config) -> ~[test::TestDescAndFn] {
242242
let mut tests = ~[];
243243
let dirs = os::list_dir_path(&config.src_base);
244244
for dirs.iter().advance |file| {
245-
let file = (*file).clone();
245+
let file = file.clone();
246246
debug!("inspecting file %s", file.to_str());
247-
if is_test(config, file) {
248-
let t = do make_test(config, file) {
247+
if is_test(config, &file) {
248+
let t = do make_test(config, &file) {
249249
match config.mode {
250-
mode_codegen => make_metrics_test_closure(config, file),
251-
_ => make_test_closure(config, file)
250+
mode_codegen => make_metrics_test_closure(config, &file),
251+
_ => make_test_closure(config, &file)
252252
}
253253
};
254254
tests.push(t)

branches/snap-stage3/src/librustc/metadata/filesearch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn search<T>(filesearch: @FileSearch, pick: pick<T>) -> Option<T> {
9494
let r = os::list_dir_path(lib_search_path);
9595
for r.iter().advance |path| {
9696
debug!("testing %s", path.to_str());
97-
let maybe_picked = pick(*path);
97+
let maybe_picked = pick(path);
9898
if maybe_picked.is_some() {
9999
debug!("picked %s", path.to_str());
100100
rslt = maybe_picked;

branches/snap-stage3/src/librustpkg/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ fn frob_source_file(workspace: &Path, pkgid: &PkgId) {
393393
}
394394
match maybe_p {
395395
Some(p) => {
396-
let w = io::file_writer(*p, &[io::Append]);
396+
let w = io::file_writer(p, &[io::Append]);
397397
match w {
398-
Err(s) => { let _ = cond.raise(((**p).clone(), fmt!("Bad path: %s", s))); }
398+
Err(s) => { let _ = cond.raise((p.clone(), fmt!("Bad path: %s", s))); }
399399
Ok(w) => w.write_line("")
400400
}
401401
}

branches/snap-stage3/src/libstd/os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ pub fn list_dir(p: &Path) -> ~[~str] {
788788
*
789789
* This version prepends each entry with the directory.
790790
*/
791-
pub fn list_dir_path(p: &Path) -> ~[~Path] {
792-
list_dir(p).map(|f| ~p.push(*f))
791+
pub fn list_dir_path(p: &Path) -> ~[Path] {
792+
list_dir(p).map(|f| p.push(*f))
793793
}
794794

795795
/// Removes a directory at the specified path, after removing

0 commit comments

Comments
 (0)