turbo-tasks: fix review findings in order dependency implementation
- Guard add_order_dependency with should_track_dependencies() early return
- Assert dependency != reader to give a clear error on self-referential calls
- Skip order dep edges on immutable dependency tasks (they never invalidate,
so leaf distance propagation from them is irrelevant)
- Extract push_leaf_distance_update_if_needed() helper, eliminating the
duplicated leaf-distance comparison block in try_read_task_output
- Add comment to the Initial else-arm of in_parent() explaining the invariant
- Clarify the CellDependent TODO in leaf_distance_update.rs: OrderDependent
doesn't share the cycle problem since order deps are manually set
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment