mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? In #83074 we changed how turbo task objects were registered to use the `inventory` crate. This PR adds a new `inventory_submit!` macro that wraps the existing `inventory::submit` function with a `#[cfg(not(rust_analyzer))]` attribute to prevent Rust Analyzer choking on the generated code. See example error  Because the inventory code does not affect any API surfaces this is safe and if anything should improve rust-analyzer performance
23 lines
993 B
Plaintext
23 lines
993 B
Plaintext
error[E0277]: the trait bound `Vc<i32>: NonLocalValue` is not satisfied
|
|
--> tests/value/fail_non_local.rs:9:12
|
|
|
|
|
9 | value: Vc<i32>,
|
|
| ^^^^^^^ the trait `NonLocalValue` is not implemented for `Vc<i32>`
|
|
|
|
|
= help: the following other types implement trait `NonLocalValue`:
|
|
&T
|
|
&mut T
|
|
()
|
|
(A, Z, Y, X, W, V, U, T)
|
|
(B, A, Z, Y, X, W, V, U, T)
|
|
(C, B, A, Z, Y, X, W, V, U, T)
|
|
(D, C, B, A, Z, Y, X, W, V, U, T)
|
|
(E, D, C, B, A, Z, Y, X, W, V, U, T)
|
|
and $N others
|
|
note: required by a bound in `DeriveNonLocalValueAssertion::assert_impl_NonLocalValue`
|
|
--> tests/value/fail_non_local.rs:7:1
|
|
|
|
|
7 | #[turbo_tasks::value]
|
|
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `DeriveNonLocalValueAssertion::assert_impl_NonLocalValue`
|
|
= note: this error originates in the derive macro `turbo_tasks::NonLocalValue` (in Nightly builds, run with -Z macro-backtrace for more info)
|