diff options
| author | Michael Sullivan <sully@msully.net> | 2012-06-04 14:31:25 -0700 |
|---|---|---|
| committer | Michael Sullivan <sully@msully.net> | 2012-06-04 16:35:32 -0700 |
| commit | 6d9dd055d15a631a9fb685eb4c9bc0e6d8ddd64a (patch) | |
| tree | 4b674c83c5b697ba9d631fdef0336bca38bef3ef /src/libstd | |
| parent | 4d5d43beaee01fbec830365b12d893ac3ca6b7ad (diff) | |
Get rid of warnings from instantiating typarams with non-implicitly copyable types.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/test.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/test.rs b/src/libstd/test.rs index adf91d4c16d..77de2cc1d15 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -290,7 +290,7 @@ fn run_tests(opts: test_opts, tests: [test_desc], while done_idx < total { while wait_idx < concurrency && run_idx < total { - let test = vec::shift(filtered_tests); + let test = copy filtered_tests[run_idx]; if concurrency == 1u { // We are doing one test at a time so we can print the name // of the test before we run it. Useful for debugging tests @@ -327,6 +327,7 @@ fn get_concurrency() -> uint { else { threads * sched_overcommit } } +#[warn(no_non_implicitly_copyable_typarams)] fn filter_tests(opts: test_opts, tests: [test_desc]) -> [test_desc] { let mut filtered = copy tests; |
