Files
next.js/turbopack/crates/turbo-tasks-macros-tests/tests/value/fail_non_local.stderr
Luke SandbergandGitHub 38c4caf22a [turbopack] Don't execute inventory_submit in rust analyzer (#83447)
### 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

![image.png](https://app.graphite.dev/user-attachments/assets/2fe87f23-8717-4615-a86d-94c1b19ae099.png)

Because the inventory code does not affect any API surfaces this is safe and if anything should improve rust-analyzer performance
2025-09-04 13:31:50 -07:00

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)