salsa/tests/compile-fail/tracked_impl_incompatibles.stderr

54 lines
1.6 KiB
Text
Raw Normal View History

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)]
| ^^^^^^^^^^
error: `specify` option not allowed here
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:13:18
|
2024-05-24 01:16:30 +00:00
13 | #[salsa::tracked(specify)]
| ^^^^^^^
error: `no_eq` option not allowed here
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:18:18
|
2024-05-24 01:16:30 +00:00
18 | #[salsa::tracked(no_eq)]
| ^^^^^
error: `data` option not allowed here
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:23:18
|
2024-05-24 01:16:30 +00:00
23 | #[salsa::tracked(data = Data)]
| ^^^^
error: `db` option not allowed here
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:28:18
|
2024-05-24 01:16:30 +00:00
28 | #[salsa::tracked(db = Db)]
| ^^
error: unrecognized option `recover_fn`
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:33:18
|
2024-05-24 01:16:30 +00:00
33 | #[salsa::tracked(recover_fn = recover)]
| ^^^^^^^^^^
error: `lru` option not allowed here
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:38:18
|
2024-05-24 01:16:30 +00:00
38 | #[salsa::tracked(lru = 32)]
| ^^^
error: `constructor` option not allowed here
2024-05-24 01:16:30 +00:00
--> tests/compile-fail/tracked_impl_incompatibles.rs:43:18
|
2024-05-24 01:16:30 +00:00
43 | #[salsa::tracked(constructor = Constructor)]
| ^^^^^^^^^^^
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
|
2024-05-24 01:16:30 +00:00
48 | impl<'db> std::default::Default for [MyTracked<'db>; 12] {
| ^^^^^^^^^^^^^^^^^^^^