-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Bound errors span label cleanup #120400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bound errors span label cleanup #120400
Changes from 2 commits
3691ab8
757b726
7df4a09
fc964fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,7 @@ error[E0599]: the method `insert` exists for struct `HashSet<Value>`, but its tr | |
--> $DIR/issue-91550.rs:8:8 | ||
| | ||
LL | struct Value(u32); | ||
| ------------ | ||
| | | ||
| doesn't satisfy `Value: Eq` | ||
| doesn't satisfy `Value: Hash` | ||
| doesn't satisfy `Value: PartialEq` | ||
| ------------ doesn't satisfy `Value: Eq`, `Value: Hash` or `Value: PartialEq` | ||
... | ||
LL | hs.insert(Value(0)); | ||
| ^^^^^^ | ||
|
@@ -26,10 +22,7 @@ error[E0599]: the method `use_eq` exists for struct `Object<NoDerives>`, but its | |
--> $DIR/issue-91550.rs:26:9 | ||
| | ||
LL | pub struct NoDerives; | ||
| -------------------- | ||
| | | ||
| doesn't satisfy `NoDerives: Eq` | ||
| doesn't satisfy `NoDerives: PartialEq` | ||
| -------------------- doesn't satisfy `NoDerives: Eq` or `NoDerives: PartialEq` | ||
LL | | ||
LL | struct Object<T>(T); | ||
| ---------------- method `use_eq` not found for this struct | ||
|
@@ -57,12 +50,7 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it | |
--> $DIR/issue-91550.rs:27:9 | ||
| | ||
LL | pub struct NoDerives; | ||
| -------------------- | ||
| | | ||
| doesn't satisfy `NoDerives: Eq` | ||
| doesn't satisfy `NoDerives: Ord` | ||
| doesn't satisfy `NoDerives: PartialEq` | ||
| doesn't satisfy `NoDerives: PartialOrd` | ||
| -------------------- doesn't satisfy `NoDerives: Eq`, `NoDerives: Ord`, `NoDerives: PartialEq` or `NoDerives: PartialOrd` | ||
LL | | ||
LL | struct Object<T>(T); | ||
| ---------------- method `use_ord` not found for this struct | ||
|
@@ -94,12 +82,7 @@ error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object<NoD | |
--> $DIR/issue-91550.rs:28:9 | ||
| | ||
LL | pub struct NoDerives; | ||
| -------------------- | ||
| | | ||
| doesn't satisfy `NoDerives: Eq` | ||
| doesn't satisfy `NoDerives: Ord` | ||
| doesn't satisfy `NoDerives: PartialEq` | ||
| doesn't satisfy `NoDerives: PartialOrd` | ||
| -------------------- doesn't satisfy `NoDerives: Eq`, `NoDerives: Ord`, `NoDerives: PartialEq` or `NoDerives: PartialOrd` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would be nice to have a single " There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather we did that as part of its own PR to make reviewing easier :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea makes sense |
||
LL | | ||
LL | struct Object<T>(T); | ||
| ---------------- method `use_ord_and_partial_ord` not found for this struct | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,7 @@ error[E0599]: the method `count` exists for struct `Filter<Fuse<Once<&str>>, {cl | |
LL | once::<&str>("str").fuse().filter(|a: &str| true).count(); | ||
| --------- ^^^^^ method cannot be called due to unsatisfied trait bounds | ||
| | | ||
| doesn't satisfy `<_ as FnOnce<(&&str,)>>::Output = bool` | ||
| doesn't satisfy `_: FnMut<(&&str,)>` | ||
--> $SRC_DIR/core/src/iter/adapters/filter.rs:LL:COL | ||
| | ||
= note: doesn't satisfy `_: Iterator` | ||
| doesn't satisfy `<_ as FnOnce<(&&str,)>>::Output = bool` or `_: FnMut<(&&str,)>` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't really an improvement imo. The vertical list is easier to read There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the real issue here is that we need to special case closure trait mismatches to talk in terms that are clearer, instead of just "list of bounds" like we do here. |
||
| | ||
= note: the following trait bounds were not satisfied: | ||
`<{closure@$DIR/issue-36053-2.rs:7:39: 7:48} as FnOnce<(&&str,)>>::Output = bool` | ||
|
Uh oh!
There was an error while loading. Please reload this page.