Skip to content

Commit fb952b8

Browse files
Fix tests
1 parent 4e069c3 commit fb952b8

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed
Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error[E0277]: the trait bound `NotPersistable<'_>: Serialize` is not satisfied
2-
--> tests/compile-fail/incomplete_persistence.rs:1:1
1+
error[E0277]: the trait bound `NotPersistable<'_>: serde::Serialize` is not satisfied
2+
--> tests/compile-fail/incomplete_persistence.rs:1:1
33
|
44
1 | #[salsa::tracked(persist)]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -22,8 +22,8 @@ error[E0277]: the trait bound `NotPersistable<'_>: Serialize` is not satisfied
2222
= note: required for `(NotPersistable<'_>,)` to implement `Serialize`
2323
= note: this error originates in the macro `salsa::plumbing::setup_tracked_struct` which comes from the expansion of the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)
2424

25-
error[E0277]: the trait bound `NotPersistable<'_>: Deserialize<'_>` is not satisfied
26-
--> tests/compile-fail/incomplete_persistence.rs:1:1
25+
error[E0277]: the trait bound `NotPersistable<'_>: serde::Deserialize<'de>` is not satisfied
26+
--> tests/compile-fail/incomplete_persistence.rs:1:1
2727
|
2828
1 | #[salsa::tracked(persist)]
2929
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `NotPersistable<'_>`
@@ -43,58 +43,58 @@ error[E0277]: the trait bound `NotPersistable<'_>: Deserialize<'_>` is not satis
4343
= note: required for `(NotPersistable<'_>,)` to implement `Deserialize<'_>`
4444
= note: this error originates in the macro `salsa::plumbing::setup_tracked_struct` which comes from the expansion of the attribute macro `salsa::tracked` (in Nightly builds, run with -Z macro-backtrace for more info)
4545

46-
error[E0277]: the trait bound `NotPersistable<'db>: Serialize` is not satisfied
46+
error[E0277]: the trait bound `NotPersistable<'db>: serde::Serialize` is not satisfied
4747
--> tests/compile-fail/incomplete_persistence.rs:12:45
48-
|
48+
|
4949
12 | fn query(_db: &dyn salsa::Database, _input: NotPersistable<'_>) {}
50-
| ^^^^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `NotPersistable<'db>`
51-
|
52-
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `NotPersistable<'db>` type
53-
= note: for types from other crates check whether the crate offers a `serde` feature flag
54-
= help: the following other types implement trait `Serialize`:
55-
&'a T
56-
&'a mut T
57-
()
58-
(T,)
59-
(T0, T1)
60-
(T0, T1, T2)
61-
(T0, T1, T2, T3)
62-
(T0, T1, T2, T3, T4)
63-
and $N others
50+
| ^^^^^^^^^^^^^^^^^^ the trait `Serialize` is not implemented for `NotPersistable<'db>`
51+
|
52+
= note: for local types consider adding `#[derive(serde::Serialize)]` to your `NotPersistable<'db>` type
53+
= note: for types from other crates check whether the crate offers a `serde` feature flag
54+
= help: the following other types implement trait `Serialize`:
55+
&'a T
56+
&'a mut T
57+
()
58+
(T,)
59+
(T0, T1)
60+
(T0, T1, T2)
61+
(T0, T1, T2, T3)
62+
(T0, T1, T2, T3, T4)
63+
and $N others
6464
note: required by a bound in `query_input_is_persistable`
6565
--> tests/compile-fail/incomplete_persistence.rs:11:1
66-
|
66+
|
6767
11 | #[salsa::tracked(persist)]
68-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
69-
| |
70-
| required by a bound in this function
71-
| required by this bound in `query_input_is_persistable`
72-
= 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)
68+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
69+
| |
70+
| required by a bound in this function
71+
| required by this bound in `query_input_is_persistable`
72+
= 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)
7373

74-
error[E0277]: the trait bound `for<'de> NotPersistable<'db>: Deserialize<'de>` is not satisfied
74+
error[E0277]: the trait bound `NotPersistable<'db>: serde::Deserialize<'de>` is not satisfied
7575
--> tests/compile-fail/incomplete_persistence.rs:12:45
76-
|
76+
|
7777
12 | fn query(_db: &dyn salsa::Database, _input: NotPersistable<'_>) {}
78-
| ^^^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `NotPersistable<'db>`
79-
|
80-
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NotPersistable<'db>` type
81-
= note: for types from other crates check whether the crate offers a `serde` feature flag
82-
= help: the following other types implement trait `Deserialize<'de>`:
83-
&'a Path
84-
&'a [u8]
85-
&'a str
86-
()
87-
(T,)
88-
(T0, T1)
89-
(T0, T1, T2)
90-
(T0, T1, T2, T3)
91-
and $N others
78+
| ^^^^^^^^^^^^^^^^^^ the trait `for<'de> Deserialize<'de>` is not implemented for `NotPersistable<'db>`
79+
|
80+
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `NotPersistable<'db>` type
81+
= note: for types from other crates check whether the crate offers a `serde` feature flag
82+
= help: the following other types implement trait `Deserialize<'de>`:
83+
&'a Path
84+
&'a [u8]
85+
&'a str
86+
()
87+
(T,)
88+
(T0, T1)
89+
(T0, T1, T2)
90+
(T0, T1, T2, T3)
91+
and $N others
9292
note: required by a bound in `query_input_is_persistable`
9393
--> tests/compile-fail/incomplete_persistence.rs:11:1
94-
|
94+
|
9595
11 | #[salsa::tracked(persist)]
96-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
97-
| |
98-
| required by a bound in this function
99-
| required by this bound in `query_input_is_persistable`
100-
= 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)
96+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
97+
| |
98+
| required by a bound in this function
99+
| required by this bound in `query_input_is_persistable`
100+
= 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)

0 commit comments

Comments
 (0)