summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e34b72)
Found while working on https://github.com/rust-lang/rust/pull/77351;
these are just the ones that could be fixed automatically.
- total_run = total_run + loop_run;
// Longest we ever run for is 3s.
if total_run > Duration::from_secs(3) {
return summ5;
// Longest we ever run for is 3s.
if total_run > Duration::from_secs(3) {
return summ5;
stdouts.push_str(&format!("---- {} stdout ----\n", f.name));
let output = String::from_utf8_lossy(stdout);
stdouts.push_str(&output);
stdouts.push_str(&format!("---- {} stdout ----\n", f.name));
let output = String::from_utf8_lossy(stdout);
stdouts.push_str(&output);
- stdouts.push_str("\n");
}
}
if !stdouts.is_empty() {
}
}
if !stdouts.is_empty() {
stdouts.push_str(&format!("---- {} stdout ----\n", f.name));
let output = String::from_utf8_lossy(stdout);
stdouts.push_str(&output);
stdouts.push_str(&format!("---- {} stdout ----\n", f.name));
let output = String::from_utf8_lossy(stdout);
stdouts.push_str(&output);
- stdouts.push_str("\n");
}
}
if !stdouts.is_empty() {
}
}
if !stdouts.is_empty() {
fail_out.push_str(&format!("---- {} stdout ----\n", f.name));
let output = String::from_utf8_lossy(stdout);
fail_out.push_str(&output);
fail_out.push_str(&format!("---- {} stdout ----\n", f.name));
let output = String::from_utf8_lossy(stdout);
fail_out.push_str(&output);
- fail_out.push_str("\n");
}
}
if !fail_out.is_empty() {
}
}
if !fail_out.is_empty() {
let event = TestEvent::TeFiltered(filtered_descs);
notify_about_test_event(event)?;
let event = TestEvent::TeFiltered(filtered_descs);
notify_about_test_event(event)?;
- let (filtered_tests, filtered_benchs): (Vec<_>, _) =
- filtered_tests.into_iter().partition(|e| match e.testfn {
- StaticTestFn(_) | DynTestFn(_) => true,
- _ => false,
- });
+ let (filtered_tests, filtered_benchs): (Vec<_>, _) = filtered_tests
+ .into_iter()
+ .partition(|e| matches!(e.testfn, StaticTestFn(_) | DynTestFn(_)));
let concurrency = opts.test_threads.unwrap_or_else(get_concurrency);
let concurrency = opts.test_threads.unwrap_or_else(get_concurrency);
let mut v: f64 = 0.0;
for s in self {
let x = *s - mean;
let mut v: f64 = 0.0;
for s in self {
let x = *s - mean;
}
// N.B., this is _supposed to be_ len-1, not len. If you
// change it back to len, you will be calculating a
}
// N.B., this is _supposed to be_ len-1, not len. If you
// change it back to len, you will be calculating a