Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 63 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions cache_diff/tests/fails/generic_missing_bounds.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ help: consider restricting type parameter `T` with trait `PartialEq`
error[E0277]: `T` doesn't implement `std::fmt::Display`
--> tests/fails/generic_missing_bounds.rs:3:10
|
3 | #[derive(CacheDiff)]
| ^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `T`
|
= note: required for `&T` to implement `std::fmt::Display`
3 | #[derive(CacheDiff)]
| ^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `T`
|
= note: required for `&T` to implement `std::fmt::Display`
note: required by a bound in `fmt_value`
--> src/lib.rs
|
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
--> src/lib.rs
|
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider restricting type parameter `T` with trait `Display`
|
4 | struct Example<T: std::fmt::Display> {
| +++++++++++++++++++
|
4 | struct Example<T: std::fmt::Display> {
| +++++++++++++++++++
26 changes: 13 additions & 13 deletions cache_diff/tests/fails/missing_display.stderr
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
error[E0277]: `NotDisplay` doesn't implement `std::fmt::Display`
--> tests/fails/missing_display.rs:5:10
|
5 | #[derive(CacheDiff)]
| ^^^^^^^^^ unsatisfied trait bound
|
5 | #[derive(CacheDiff)]
| ^^^^^^^^^ unsatisfied trait bound
|
help: the trait `std::fmt::Display` is not implemented for `NotDisplay`
--> tests/fails/missing_display.rs:3:1
|
3 | struct NotDisplay;
| ^^^^^^^^^^^^^^^^^
= note: required for `&NotDisplay` to implement `std::fmt::Display`
--> tests/fails/missing_display.rs:3:1
|
3 | struct NotDisplay;
| ^^^^^^^^^^^^^^^^^
= note: required for `&NotDisplay` to implement `std::fmt::Display`
note: required by a bound in `fmt_value`
--> src/lib.rs
|
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
--> src/lib.rs
|
| fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
| ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
= note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
Loading