From 6eb9cb0d1bd3aaf13555ef2c30631c2542ec2f48 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 2 Apr 2024 06:52:38 -0400 Subject: [PATCH] complete comment --- components/salsa-2022/src/tracked_struct.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/salsa-2022/src/tracked_struct.rs b/components/salsa-2022/src/tracked_struct.rs index a0fec752..25589bc6 100644 --- a/components/salsa-2022/src/tracked_struct.rs +++ b/components/salsa-2022/src/tracked_struct.rs @@ -33,7 +33,9 @@ pub trait Configuration { type Fields; /// A array of [`Revision`][] values, one per each of the value fields. - /// When a struct is re-recreated in a new revision, the + /// When a struct is re-recreated in a new revision, the corresponding + /// entries for each field are updated to the new revision if their + /// values have changed (or if the field is marked as `#[no_eq]`). type Revisions; fn id_fields(fields: &Self::Fields) -> impl Hash;