mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-15 17:49:46 +00:00
b050bd874a
Just use salsa::Id for the most part.
16 lines
1.1 KiB
Text
16 lines
1.1 KiB
Text
error[E0277]: the trait bound `MyInterned: TrackedStructInDb<dyn Db>` is not satisfied
|
|
--> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-interned.rs:21:1
|
|
|
|
|
21 | #[salsa::tracked(jar = Jar, specify)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInterned`
|
|
|
|
|
= help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked`
|
|
note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record`
|
|
--> $WORKSPACE/components/salsa-2022/src/function/specify.rs
|
|
|
|
|
| pub fn specify_and_record<'db>(&self, db: &'db DynDb<'db, C>, key: Id, value: C::Value)
|
|
| ------------------ required by a bound in this associated function
|
|
| where
|
|
| C::Input: TrackedStructInDb<DynDb<'db, C>>,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record`
|
|
= note: this error originates in the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)
|