next.js
157be190 - Remove TraceRawVcs (#98953)

Commit
67 days ago
Remove TraceRawVcs (#98953) ## What? Remove the repository-wide `TraceRawVcs` trait, implementations, bounds, and derive support. Persistent-to-transient task errors now report the parent and callee names without recursively inspecting task inputs. The existing field-assertion escape hatch is renamed from `trace_ignore` to `unsafe_ignore`. It remains available to `NonLocalValue` and `OperationValue`, making its remaining purpose explicit without retaining a connection to tracing. The stripped release `next-napi-bindings` binary decreases by 307,648 bytes (0.301%), from 102,325,280 to 102,017,632 bytes. ## Why? `TraceRawVcs` was introduced for a garbage-collection design that is no longer being pursued. Its only remaining runtime benefit was a more detailed version of an extremely rare diagnostic, which did not justify maintaining tracing implementations across the Rust workspace. ## How? The tracing module and proc macro are removed along with generated and manual implementations. APIs that previously required tracing now keep only the bounds they actively need. The backend diagnostic retains actionable task names while dropping its recursive cause graph, and the transient-collectible coverage is updated for the simplified message. ## Verification - `cargo fmt --all -- --check` - `cargo check --workspace --all-targets` - `cargo test -p turbo-tasks-backend --test transient_collectible` - `cargo test -p turbo-tasks-macros-tests` - `cargo test --doc -p turbo-tasks` <!-- NEXT_JS_LLM --> <!-- fleet 6de62cf9-27cd-4f08-8fce-7d495c71e7e8 --> Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by: Luke Sandberg <210140+lukesandberg@users.noreply.github.com>
Author
Parents
Loading