salsa/tests/compile-fail
Niko Matsakis daaa78056a switch to new database design
Under this design, *all* databases are a
`DatabaseImpl<U>`, where the `U` implements
`UserData` (you can use `()` if there is none).

Code would default to `&dyn salsa::Database` but
if you want to give access to the userdata, you
can define a custom database trait
`MyDatabase: salsa::Databse` so long as you

* annotate `MyDatabase` trait definition of
  impls of `MyDatabase` with `#[salsa::db]`
* implement `MyDatabase` for `DatabaseImpl<U>`
  where `U` is your userdata (this could be a
  blanket impl, if you don't know the precise
  userdata type).

The `tests/common/mod.rs` shows the pattern.
2024-07-28 12:47:50 +00:00
..
accumulator_incompatibles.rs wip: accum, privacy for inputs 2024-07-19 07:08:24 -04:00
accumulator_incompatibles.stderr wip: accum, privacy for inputs 2024-07-19 07:08:24 -04:00
get-on-private-interned-field.rs wip privacy on interned 2024-07-19 07:14:57 -04:00
get-on-private-interned-field.stderr wip privacy on interned 2024-07-19 07:14:57 -04:00
get-on-private-tracked-field.rs wip privacy for tracked structs 2024-07-19 07:12:07 -04:00
get-on-private-tracked-field.stderr wip privacy for tracked structs 2024-07-19 07:12:07 -04:00
get-set-on-private-input-field.rs switch to new database design 2024-07-28 12:47:50 +00:00
get-set-on-private-input-field.stderr wip: accum, privacy for inputs 2024-07-19 07:08:24 -04:00
input_struct_incompatibles.rs wip 2024-07-19 07:29:18 -04:00
input_struct_incompatibles.stderr wip 2024-07-19 07:29:18 -04:00
interned_struct_incompatibles.rs wip 2024-07-19 07:29:18 -04:00
interned_struct_incompatibles.stderr wip 2024-07-19 07:29:18 -04:00
lru_can_not_be_used_with_specify.rs wip 2024-07-19 08:05:39 -04:00
lru_can_not_be_used_with_specify.stderr wip 2024-07-19 08:05:39 -04:00
panic-when-reading-fields-of-tracked-structs-from-older-revisions.rs switch to new database design 2024-07-28 12:47:50 +00:00
panic-when-reading-fields-of-tracked-structs-from-older-revisions.stderr wip 2024-07-19 08:05:39 -04:00
salsa_fields_incompatibles.rs wip 2024-07-19 08:05:39 -04:00
salsa_fields_incompatibles.stderr wip 2024-07-19 08:05:39 -04:00
singleton_only_for_input.rs wip 2024-07-19 08:05:39 -04:00
singleton_only_for_input.stderr wip 2024-07-19 08:05:39 -04:00
span-input-setter.rs switch to new database design 2024-07-28 12:47:50 +00:00
span-input-setter.stderr wip 2024-07-19 08:05:39 -04:00
span-tracked-getter.rs switch to new database design 2024-07-28 12:47:50 +00:00
span-tracked-getter.stderr switch to new database design 2024-07-28 12:47:50 +00:00
specify-does-not-work-if-the-key-is-a-salsa-input.rs wip 2024-07-19 08:05:39 -04:00
specify-does-not-work-if-the-key-is-a-salsa-input.stderr wip 2024-07-19 08:05:39 -04:00
specify-does-not-work-if-the-key-is-a-salsa-interned.rs wip 2024-07-19 08:05:39 -04:00
specify-does-not-work-if-the-key-is-a-salsa-interned.stderr Allow interned values as tracked function arguments 2024-07-20 09:03:57 +02:00
tracked_fn_incompatibles.rs wip 2024-07-19 08:05:39 -04:00
tracked_fn_incompatibles.stderr wip 2024-07-19 08:05:39 -04:00
tracked_impl_incompatibles.rs wip 2024-07-19 08:05:39 -04:00
tracked_impl_incompatibles.stderr wip 2024-07-19 08:05:39 -04:00
tracked_method_incompatibles.rs wip 2024-07-19 08:05:39 -04:00
tracked_method_incompatibles.stderr wip 2024-07-19 08:05:39 -04:00
tracked_method_on_untracked_impl.rs wip 2024-07-19 08:05:39 -04:00
tracked_method_on_untracked_impl.stderr wip 2024-07-19 08:05:39 -04:00
tracked_struct_incompatibles.rs wip 2024-07-19 08:05:39 -04:00
tracked_struct_incompatibles.stderr wip 2024-07-19 08:05:39 -04:00