update compile fail tests for latest stable rustc

This commit is contained in:
XFFXFF 2022-11-29 12:36:03 +08:00
parent 30b5e9760a
commit 51f1f0c36d
3 changed files with 7 additions and 9 deletions

View file

@ -5,4 +5,4 @@ error[E0599]: no method named `set_id_one` found for struct `MyInput` in the cur
| -------------------------- method `set_id_one` not found for this struct | -------------------------- method `set_id_one` not found for this struct
... ...
30 | input.set_id_one(1); 30 | input.set_id_one(1);
| ^^^^^^^^^^ help: there is an associated function with a similar name: `id_one` | ^^^^^^^^^^ help: there is a method with a similar name: `id_one`

View file

@ -1,10 +1,8 @@
error[E0277]: the trait bound `MyInput: TrackedStructInDb<dyn Db>` is not satisfied error[E0277]: the trait bound `MyInput: TrackedStructInDb<dyn Db>` is not satisfied
--> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-input.rs:21:28 --> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-input.rs:20:1
| |
20 | #[salsa::tracked(jar = Jar, specify)] 20 | #[salsa::tracked(jar = Jar, specify)]
| ------------------------------------- required by a bound introduced by this call | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInput`
21 | fn tracked_fn(db: &dyn Db, input: MyInput) -> MyTracked {
| ^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInput`
| |
= help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked` = help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked`
note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record` note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record`
@ -12,3 +10,4 @@ note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::s
| |
| C::Key: TrackedStructInDb<DynDb<'db, C>>, | C::Key: TrackedStructInDb<DynDb<'db, C>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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)

View file

@ -1,10 +1,8 @@
error[E0277]: the trait bound `MyInterned: TrackedStructInDb<dyn Db>` is not satisfied 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:22:28 --> tests/compile-fail/specify-does-not-work-if-the-key-is-a-salsa-interned.rs:21:1
| |
21 | #[salsa::tracked(jar = Jar, specify)] 21 | #[salsa::tracked(jar = Jar, specify)]
| ------------------------------------- required by a bound introduced by this call | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInterned`
22 | fn tracked_fn(db: &dyn Db, input: MyInterned) -> MyTracked {
| ^^^^^ the trait `TrackedStructInDb<dyn Db>` is not implemented for `MyInterned`
| |
= help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked` = help: the trait `TrackedStructInDb<DB>` is implemented for `MyTracked`
note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record` note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record`
@ -12,3 +10,4 @@ note: required by a bound in `function::specify::<impl FunctionIngredient<C>>::s
| |
| C::Key: TrackedStructInDb<DynDb<'db, C>>, | C::Key: TrackedStructInDb<DynDb<'db, C>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `function::specify::<impl FunctionIngredient<C>>::specify_and_record` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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)