Skip to content

Commit 53991b5

Browse files
committed
---
yaml --- r: 94192 b: refs/heads/try c: fdd6750 h: refs/heads/master v: v3
1 parent 016c732 commit 53991b5

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: f08f3a757643aa16b05ec7dee73ecff216354ddf
5+
refs/heads/try: fdd6750570cf1434264a601fd2b749d7fe01dee8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/compiletest/compiletest.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,19 +325,17 @@ pub fn make_test_name(config: &config, testfile: &Path) -> test::TestName {
325325
}
326326

327327
pub fn make_test_closure(config: &config, testfile: &Path) -> test::TestFn {
328-
use std::cell::Cell;
329-
let config = Cell::new((*config).clone());
328+
let config = (*config).clone();
330329
// FIXME (#9639): This needs to handle non-utf8 paths
331-
let testfile = Cell::new(testfile.as_str().unwrap().to_owned());
332-
test::DynTestFn(proc() { runtest::run(config.take(), testfile.take()) })
330+
let testfile = testfile.as_str().unwrap().to_owned();
331+
test::DynTestFn(proc() { runtest::run(config, testfile) })
333332
}
334333

335334
pub fn make_metrics_test_closure(config: &config, testfile: &Path) -> test::TestFn {
336-
use std::cell::Cell;
337-
let config = Cell::new((*config).clone());
335+
let config = (*config).clone();
338336
// FIXME (#9639): This needs to handle non-utf8 paths
339-
let testfile = Cell::new(testfile.as_str().unwrap().to_owned());
337+
let testfile = testfile.as_str().unwrap().to_owned();
340338
test::DynMetricFn(proc(mm) {
341-
runtest::run_metrics(config.take(), testfile.take(), mm)
339+
runtest::run_metrics(config, testfile, mm)
342340
})
343341
}

0 commit comments

Comments
 (0)