salsa/tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-interned.stderr
Niko Matsakis 68a3a7fceb wip
2024-07-19 08:05:39 -04:00

26 lines
1.8 KiB
Text

error[E0277]: the trait bound `MyInterned<'_>: LookupId<'_>` is not satisfied
--> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-interned.rs:15:1
|
15 | #[salsa::tracked(specify)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromId` is not implemented for `MyInterned<'_>`, which is required by `MyInterned<'_>: LookupId<'_>`
|
= help: the trait `LookupId<'db>` is implemented for `MyTracked<'db>`
= note: required for `MyInterned<'_>` to implement `LookupId<'_>`
= note: this error originates in the macro `salsa::plumbing::setup_tracked_fn` which comes from the expansion of the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `MyInterned<'_>: TrackedStructInDb` is not satisfied
--> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-interned.rs:15:1
|
15 | #[salsa::tracked(specify)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb` is not implemented for `MyInterned<'_>`
|
= help: the trait `TrackedStructInDb` is implemented for `MyTracked<'_>`
note: required by a bound in `salsa::function::specify::<impl salsa::plumbing::function::IngredientImpl<C>>::specify_and_record`
--> src/function/specify.rs
|
| pub fn specify_and_record<'db>(&'db self, db: &'db C::DbView, key: Id, value: C::Output<'db>)
| ------------------ required by a bound in this associated function
| where
| C::Input<'db>: TrackedStructInDb,
| ^^^^^^^^^^^^^^^^^ required by this bound in `salsa::function::specify::<impl IngredientImpl<C>>::specify_and_record`
= note: this error originates in the macro `salsa::plumbing::setup_tracked_fn` which comes from the expansion of the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)