]> git.lizzy.rs Git - rust.git/commitdiff
Reference issue 1763 in the comment.
authorVytautas Astrauskas <vastrauskas@gmail.com>
Sun, 11 Apr 2021 11:39:03 +0000 (13:39 +0200)
committerVytautas Astrauskas <vastrauskas@gmail.com>
Sun, 11 Apr 2021 11:39:03 +0000 (13:39 +0200)
src/thread.rs

index e744ac519dd022420e2aa42b2d589fbfaf7e09b8..0d4fcbd49ff66eb1a4e297827592208cd283e8f2 100644 (file)
@@ -714,10 +714,12 @@ fn run_timeout_callback(&mut self) -> InterpResult<'tcx> {
             if let Some((thread, callback)) = this.machine.threads.get_ready_callback() {
                 (thread, callback)
             } else {
-                // get_ready_callback can return None if the computer's clock was
-                // shifted after calling the scheduler and before the call
-                // to get_ready_callback. In this case, just do nothing, which
-                // effectively just returns to the scheduler.
+                // get_ready_callback can return None if the computer's clock
+                // was shifted after calling the scheduler and before the call
+                // to get_ready_callback (see issue
+                // https://github.com/rust-lang/miri/issues/1763). In this case,
+                // just do nothing, which effectively just returns to the
+                // scheduler.
                 return Ok(());
             };
         // This back-and-forth with `set_active_thread` is here because of two