Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/tracked_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ where
// to meet its safety invariant.
unsafe {
if C::update_fields(
current_revision,
current_deps.changed_at,
&mut data.revisions,
self.to_self_ptr(std::ptr::addr_of_mut!(data.fields)),
fields,
Expand All @@ -568,7 +568,7 @@ where
}
}
if current_deps.durability < data.durability {
data.revisions = C::new_revisions(current_revision);
data.revisions = C::new_revisions(current_deps.changed_at);
data.created_at = current_revision;
Comment on lines +571 to 572
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be a bit surprising that crated_at can now be larger than changed_at

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is already the case when we allocate the struct

}
data.durability = current_deps.durability;
Expand Down
Loading