-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fulfillment, not evaluate, during method probe
- Loading branch information
1 parent
a3f98bb
commit fea073f
Showing
22 changed files
with
245 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,14 @@ error[E0599]: the method `filterx` exists for struct `Map<Repeat, {closure@issue | |
--> $DIR/issue-30786.rs:120:22 | ||
| | ||
LL | pub struct Map<S, F> { | ||
| -------------------- method `filterx` not found for this struct because it doesn't satisfy `_: StreamExt` | ||
| -------------------- method `filterx` not found for this struct | ||
... | ||
LL | let filter = map.filterx(|x: &_| true); | ||
| ^^^^^^^ method cannot be called on `Map<Repeat, {[email protected]:119:27}>` due to unsatisfied trait bounds | ||
| | ||
note: the following trait bounds were not satisfied: | ||
`&'a mut &Map<Repeat, {closure@$DIR/issue-30786.rs:119:27: 119:34}>: Stream` | ||
`&'a mut &mut Map<Repeat, {closure@$DIR/issue-30786.rs:119:27: 119:34}>: Stream` | ||
`&'a mut Map<Repeat, {closure@$DIR/issue-30786.rs:119:27: 119:34}>: Stream` | ||
--> $DIR/issue-30786.rs:98:50 | ||
| | ||
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {} | ||
|
@@ -26,15 +25,14 @@ error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, fn(&u64) | |
--> $DIR/issue-30786.rs:132:24 | ||
| | ||
LL | pub struct Filter<S, F> { | ||
| ----------------------- method `countx` not found for this struct because it doesn't satisfy `_: StreamExt` | ||
| ----------------------- method `countx` not found for this struct | ||
... | ||
LL | let count = filter.countx(); | ||
| ^^^^^^ method cannot be called due to unsatisfied trait bounds | ||
| | ||
note: the following trait bounds were not satisfied: | ||
`&'a mut &Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, {closure@$DIR/issue-30786.rs:131:30: 131:37}>: Stream` | ||
`&'a mut &mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, {closure@$DIR/issue-30786.rs:131:30: 131:37}>: Stream` | ||
`&'a mut Filter<Map<Repeat, for<'a> fn(&'a u64) -> &'a u64 {identity::<u64>}>, {closure@$DIR/issue-30786.rs:131:30: 131:37}>: Stream` | ||
--> $DIR/issue-30786.rs:98:50 | ||
| | ||
LL | impl<T> StreamExt for T where for<'a> &'a mut T: Stream {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,29 @@ | ||
error[E0275]: overflow assigning `_` to `Option<_>` | ||
--> $DIR/issue-84073.rs:32:22 | ||
error[E0599]: the method `when` exists for struct `RaceBuilder<_, Never<_>>`, but its trait bounds were not satisfied | ||
--> $DIR/issue-84073.rs:32:27 | ||
| | ||
LL | pub struct Never<T>(PhantomData<T>); | ||
| ------------------- doesn't satisfy `Never<_>: StatefulFuture<Option<_>>` | ||
... | ||
LL | pub struct RaceBuilder<F, S> { | ||
| ---------------------------- method `when` not found for this struct | ||
... | ||
LL | Race::new(|race| race.when()); | ||
| ^^^^ | ||
| ^^^^ method cannot be called on `RaceBuilder<_, Never<_>>` due to unsatisfied trait bounds | ||
| | ||
note: trait bound `Never<_>: StatefulFuture<Option<_>>` was not satisfied | ||
--> $DIR/issue-84073.rs:14:8 | ||
| | ||
LL | impl<T, F> RaceBuilder<T, F> | ||
| ----------------- | ||
LL | where | ||
LL | F: StatefulFuture<Option<T>>, | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here | ||
note: the trait `StatefulFuture` must be implemented | ||
--> $DIR/issue-84073.rs:3:1 | ||
| | ||
LL | pub trait StatefulFuture<S> {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0275`. | ||
For more information about this error, try `rustc --explain E0599`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.