diff --git a/node-graph/libraries/core-types/src/record/run.rs b/node-graph/libraries/core-types/src/record/run.rs index f2f34b6127..8e848c5d7f 100644 --- a/node-graph/libraries/core-types/src/record/run.rs +++ b/node-graph/libraries/core-types/src/record/run.rs @@ -151,9 +151,7 @@ struct OwnedLanes { fields: Vec<(usize, Vec>)>, } -// SAFETY: the same argument as for `RecordValue`. The element bounds and the -// parking discipline make the record bytes thread-safe, and their validity -// is tied to the shared arena. +// SAFETY: as for `RecordValue`. unsafe impl Send for GroupItem<'_> {} // SAFETY: as `Send`. unsafe impl Sync for GroupItem<'_> {} diff --git a/node-graph/libraries/graphic-types/src/graphic/paint.rs b/node-graph/libraries/graphic-types/src/graphic/paint.rs index 4f85160718..c84349716d 100644 --- a/node-graph/libraries/graphic-types/src/graphic/paint.rs +++ b/node-graph/libraries/graphic-types/src/graphic/paint.rs @@ -183,10 +183,7 @@ fn forced_paint<'a, A: Attribute>(paint: LanePaint<'a>) -> Option> size_of::>>>(), "the paint value form must span the marker's value" ); - // SAFETY: the census admits one value type per attribute name and panics on - // a conflict at registration, and the asserts above re-check it, so a marker - // named `fill` or `stroke` carries this crate's `Option<&List>` - // value form at the same size. + // SAFETY: the census admits one value type per attribute name, so a `fill` or `stroke` marker carries this crate's `Option<&List>` at the asserted size. Some(unsafe { std::mem::transmute_copy::>, A::Value<'a>>(&Some(slot)) }) }