]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to rustc 1.41.0-nightly (5c5c8eb86 2019-12-07)
authorbjorn3 <bjorn3@users.noreply.github.com>
Sun, 8 Dec 2019 10:32:03 +0000 (11:32 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sun, 8 Dec 2019 10:32:03 +0000 (11:32 +0100)
patches/0017-Fix-libtest-compilation.patch

index c76e2e2f8b42d64a6a30bb3d70117e79f96ef2fb..ffde7ec3b622283ea1b80368bb90ebe0e1bedc9f 100644 (file)
@@ -71,9 +71,9 @@ index 8b76080..9e65de2 100644
      // Buffer for capturing standard I/O
      let data = Arc::new(Mutex::new(Vec::new()));
 @@ -1623,7 +1611,7 @@ fn run_test_in_process(desc: TestDesc,
-     } else {
-         None
      };
+     let start = report_time.then(Instant::now);
 -    let result = catch_unwind(AssertUnwindSafe(testfn));
 +    let result = Ok::<(), Box<dyn std::any::Any + Send>>(testfn());
      let exec_time = start.map(|start| {
@@ -93,4 +93,3 @@ index 8b76080..9e65de2 100644
          let test_result = match panic_info {
 -- 
 2.20.1
-