Files
reims-vgpu/clippy.toml
T
Anees Iqbal 910aabdf50 🐛 Refuse a guest op where the platform would end the process
The graphics lane's rule is that no guest input ends QEMU, but a platform
refusal at a call (the Vulkan runtime refusing a pipeline's compile, a texture,
an encode) dies there, which is the paravirt device's contract. msi's fbt10
boot died so at WindowServer's first RenderBox pipeline.

Core gets a refusal scope (raise::refusals): inside it a death on the thread
unwinds to the scope as a Refusal instead of ending the process. Outside every
scope the death path is unchanged, and only the graphics lane opens one, so
the paravirt device dies where it always did.

The lane runs each op in a scope: ring 0's creates and the queues' command
buffers on their threads, and the pool's compiles and library makes. A refused
pipeline answers a refused reflection, a library its COMPLETE status, a create
makes nothing, and a command buffer fails with an error completion, its open
encoder ended first (Metal asserts on an encoder released without its end).
Each refusal is one WARN line with its reason.
2026-11-05 21:58:31 -08:00

22 lines
1.2 KiB
TOML

# Architecture 17.4. reims-vgpu-core denies clippy::disallowed_types and
# clippy::disallowed_methods; other crates see them as warnings.
disallowed-types = [
{ path = "std::sync::Mutex", reason = "use sync::Mutex (parking_lot) (7.1)" },
{ path = "std::sync::RwLock", reason = "use parking_lot or sync::WriterPrefRwLock (7.1)" },
]
disallowed-methods = [
{ path = "std::process::abort", reason = "use raise::death::fatal (6.4)" },
{ path = "std::thread::spawn", reason = "core's threads come from the platform's Threads: rt::thread::spawn_named (7.1)" },
{ path = "std::time::Instant::now", reason = "use Clock (7.5)" },
{ path = "std::time::SystemTime::now", reason = "use Clock (7.5)" },
{ path = "std::panic::catch_unwind", reason = "allowed only in the testkit (capture, death, launcher), an isolated task's trap (tasks::isolation::life) (6.5), the graphics lane's refusal scope (raise::refusals), the pipeline resolver's callback inside Metal (spi::classes, 6.3) and the C API's catch on Linux (ffi::catch, 6.7)" },
]
# Tests may unwrap, index and panic: a failure is the assertion (architecture 17.4).
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
allow-indexing-slicing-in-tests = true