2022-09-07 19:09:33 +00:00
|
|
|
error: `return_ref` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:9:18
|
|
|
|
|
|
|
|
|
9 | #[salsa::tracked(return_ref)]
|
|
|
|
| ^^^^^^^^^^
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
|
|
error: `specify` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:13:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
13 | #[salsa::tracked(specify)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: `no_eq` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:18:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
18 | #[salsa::tracked(no_eq)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: `data` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:23:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
23 | #[salsa::tracked(data = Data)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: `db` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:28:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
28 | #[salsa::tracked(db = Db)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: unrecognized option `recover_fn`
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:33:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
33 | #[salsa::tracked(recover_fn = recover)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: `lru` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:38:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
38 | #[salsa::tracked(lru = 32)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: `constructor` option not allowed here
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:43:18
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
43 | #[salsa::tracked(constructor = Constructor)]
|
2022-09-07 19:09:33 +00:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: #[salsa::tracked] can only be applied to salsa structs
|
2024-05-24 01:16:30 +00:00
|
|
|
--> tests/compile-fail/tracked_impl_incompatibles.rs:48:37
|
2022-09-07 19:09:33 +00:00
|
|
|
|
|
2024-05-24 01:16:30 +00:00
|
|
|
48 | impl<'db> std::default::Default for [MyTracked<'db>; 12] {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|