You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #100098 - compiler-errors:field-suggestion-fixups, r=davidtwco
Some "this expression has a field"-related fixes
Each commit does something different and is worth reviewing, but the final diff from `master..HEAD` contains the sum of the changes to the UI tests, since some commits added UI tests "regressions" which were later removed in other commits.
The only change I could see adding on top of this is suppressing `Clone::clone` from the "this expression has a field that has this method" suggestion, since it's so commonly implemented by types that it's not worthwhile suggesting in general.
Copy file name to clipboardExpand all lines: src/test/ui/hrtb/issue-30786.stderr
-8
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,6 @@ note: the following trait bounds were not satisfied:
18
18
|
19
19
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
20
20
| --------- - ^^^^^^ unsatisfied trait bound introduced here
21
-
help: one of the expressions' fields has a method of the same name
22
-
|
23
-
LL | let filter = map.stream.filterx(|x: &_| true);
24
-
| +++++++
25
21
26
22
error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, for<'r> fn(&'r u64) -> &'r u64 {identity::<u64>}>, [closure@$DIR/issue-30786.rs:129:30: 129:37]>`, but its trait bounds were not satisfied
27
23
--> $DIR/issue-30786.rs:130:24
@@ -43,10 +39,6 @@ note: the following trait bounds were not satisfied:
43
39
|
44
40
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {}
45
41
| --------- - ^^^^^^ unsatisfied trait bound introduced here
46
-
help: one of the expressions' fields has a method of the same name
0 commit comments