File tree Expand file tree Collapse file tree 3 files changed +51
-24
lines changed Expand file tree Collapse file tree 3 files changed +51
-24
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " cargo"
4+ directory : " /"
5+ schedule :
6+ interval : " monthly"
7+ labels :
8+ - " dependencies"
9+ - " skip changelog"
10+ groups :
11+ rust-dependencies :
12+ update-types :
13+ - " minor"
14+ - " patch"
15+ - package-ecosystem : " github-actions"
16+ directory : " /"
17+ schedule :
18+ interval : " monthly"
19+ labels :
20+ - " skip changelog"
21+ groups :
22+ github-actions :
23+ update-types :
24+ - " minor"
25+ - " patch"
Original file line number Diff line number Diff line change @@ -13,18 +13,17 @@ help: consider restricting type parameter `T` with trait `PartialEq`
1313error[E0277]: `T` doesn't implement `std::fmt::Display`
1414 --> tests/fails/generic_missing_bounds.rs:3:10
1515 |
16- 3 | #[derive(CacheDiff)]
17- | ^^^^^^^^^ `T` cannot be formatted with the default formatter
18- |
19- = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
20- = note: required for `&T` to implement `std::fmt::Display`
16+ 3 | #[derive(CacheDiff)]
17+ | ^^^^^^^^^ the trait `std::fmt::Display` is not implemented for `T`
18+ |
19+ = note: required for `&T` to implement `std::fmt::Display`
2120note: required by a bound in `fmt_value`
22- --> src/lib.rs
23- |
24- | fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
25- | ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
26- = note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
21+ --> src/lib.rs
22+ |
23+ | fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
24+ | ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
25+ = note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
2726help: consider restricting type parameter `T` with trait `Display`
28- |
29- 4 | struct Example<T: std::fmt::Display> {
30- | +++++++++++++++++++
27+ |
28+ 4 | struct Example<T: std::fmt::Display> {
29+ | +++++++++++++++++++
Original file line number Diff line number Diff line change 11error[E0277]: `NotDisplay` doesn't implement `std::fmt::Display`
22 --> tests/fails/missing_display.rs:5:10
33 |
4- 5 | #[derive(CacheDiff)]
5- | ^^^^^^^^^ `NotDisplay` cannot be formatted with the default formatter
6- |
7- = help: the trait `std::fmt::Display` is not implemented for `NotDisplay`
8- = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
9- = note: required for `&NotDisplay` to implement `std::fmt::Display`
4+ 5 | #[derive(CacheDiff)]
5+ | ^^^^^^^^^ unsatisfied trait bound
6+ |
7+ help: the trait `std::fmt::Display` is not implemented for `NotDisplay`
8+ --> tests/fails/missing_display.rs:3:1
9+ |
10+ 3 | struct NotDisplay;
11+ | ^^^^^^^^^^^^^^^^^
12+ = note: required for `&NotDisplay` to implement `std::fmt::Display`
1013note: required by a bound in `fmt_value`
11- --> src/lib.rs
12- |
13- | fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
14- | ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
15- = note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
14+ --> src/lib.rs
15+ |
16+ | fn fmt_value<T: std::fmt::Display>(&self, value: &T) -> String {
17+ | ^^^^^^^^^^^^^^^^^ required by this bound in `CacheDiff::fmt_value`
18+ = note: this error originates in the derive macro `CacheDiff` (in Nightly builds, run with -Z macro-backtrace for more info)
You can’t perform that action at this time.
0 commit comments