Skip to content

Commit 726b949

Browse files
committed
---
yaml --- r: 92214 b: refs/heads/auto c: fdd6750 h: refs/heads/master v: v3
1 parent 3f7775e commit 726b949

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: f08f3a757643aa16b05ec7dee73ecff216354ddf
16+
refs/heads/auto: fdd6750570cf1434264a601fd2b749d7fe01dee8
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)