Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ disallowed-methods = [
disallowed-types = [
{ path = "std::collections::HashMap", reason = "compiler data is trusted; use fxhash::FxHashMap (or the crate HashMap alias) to avoid RandomState overhead" },
{ path = "std::collections::HashSet", reason = "compiler data is trusted; use fxhash::FxHashSet (or the crate HashSet alias) to avoid RandomState overhead" },
{ path = "std::cell::RefCell", reason = "state is owned and passed explicitly: take &mut, return results, or key caches by all their inputs instead of mutating shared state behind shared references" },
{ path = "std::cell::Cell", reason = "state is owned and passed explicitly: take &mut, return results, or key caches by all their inputs instead of mutating shared state behind shared references" },
]
3 changes: 2 additions & 1 deletion crates/celox-sv-analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
test,
allow(
clippy::disallowed_macros,
reason = "thread-local counters exist only in unit tests; non-test library builds enforce the ban"
clippy::disallowed_types,
reason = "thread-local counters and their cells exist only in unit tests; non-test library builds enforce the bans"
)
)]
//! SystemVerilog analyzer for Celox.
Expand Down
4 changes: 4 additions & 0 deletions crates/celox-vpi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
not(any(target_arch = "x86_64", target_arch = "aarch64")),
allow(dead_code)
)]
#![allow(
clippy::disallowed_types,
reason = "VPI callbacks re-enter the layer from C while it holds the simulation, so its state is shared behind the C boundary"
)]

#[cfg(not(any(target_arch = "x86_64", target_arch = "aarch64")))]
compile_error!("celox-vpi currently supports only x86-64 and AArch64");
Expand Down
Loading