Skip to content

Commit 294fdb8

Browse files
committed
clippy
1 parent 51087d2 commit 294fdb8

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/tools/miri/cargo-miri/src/phases.rs

+2
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
666666
match phase {
667667
RunnerPhase::Rustdoc => {
668668
cmd.stdin(std::process::Stdio::piped());
669+
// the warning is wrong, we have a `wait` inside the `scope` closure.
670+
#[expect(clippy::zombie_processes)]
669671
let mut child = cmd.spawn().expect("failed to spawn process");
670672
let child_stdin = child.stdin.take().unwrap();
671673
// Write stdin in a background thread, as it may block.

src/tools/miri/src/borrow_tracker/stacked_borrows/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl NewPermission {
171171
/// F2b: No `SharedReadWrite` or `Unique` will ever be added on top of our `SharedReadOnly`.
172172
/// F3: If an access happens with an `&` outside `UnsafeCell`,
173173
/// it requires the `SharedReadOnly` to still be in the stack.
174-
174+
///
175175
/// Core relation on `Permission` to define which accesses are allowed
176176
impl Permission {
177177
/// This defines for a given permission, whether it permits the given kind of access.

src/tools/miri/src/shims/unix/linux/epoll.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -401,19 +401,19 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
401401
/// list about file descriptors in the interest list that have some
402402
/// events available. Up to `maxevents` are returned by `epoll_wait()`.
403403
/// The `maxevents` argument must be greater than zero.
404-
404+
///
405405
/// The `timeout` argument specifies the number of milliseconds that
406406
/// `epoll_wait()` will block. Time is measured against the
407407
/// CLOCK_MONOTONIC clock. If the timeout is zero, the function will not block,
408408
/// while if the timeout is -1, the function will block
409409
/// until at least one event has been retrieved (or an error
410410
/// occurred).
411-
411+
///
412412
/// A call to `epoll_wait()` will block until either:
413413
/// • a file descriptor delivers an event;
414414
/// • the call is interrupted by a signal handler; or
415415
/// • the timeout expires.
416-
416+
///
417417
/// Note that the timeout interval will be rounded up to the system
418418
/// clock granularity, and kernel scheduling delays mean that the
419419
/// blocking interval may overrun by a small amount. Specifying a

src/tools/miri/src/shims/unix/linux/eventfd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl FileDescription for Event {
110110
/// write either blocks until a read is performed on the
111111
/// file descriptor, or fails with the error EAGAIN if the
112112
/// file descriptor has been made nonblocking.
113-
113+
///
114114
/// A write fails with the error EINVAL if the size of the
115115
/// supplied buffer is less than 8 bytes, or if an attempt is
116116
/// made to write the value 0xffffffffffffffff.

0 commit comments

Comments
 (0)