summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_middle/src/traits/select.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_middle/src/traits/select.rs')
-rw-r--r--compiler/rustc_middle/src/traits/select.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/traits/select.rs b/compiler/rustc_middle/src/traits/select.rs
index 90bc5dd8f..f33421bba 100644
--- a/compiler/rustc_middle/src/traits/select.rs
+++ b/compiler/rustc_middle/src/traits/select.rs
@@ -136,14 +136,18 @@ pub enum SelectionCandidate<'tcx> {
is_const: bool,
},
- /// Implementation of a `Generator` trait by one of the anonymous types
- /// generated for a generator.
- GeneratorCandidate,
+ /// Implementation of a `Coroutine` trait by one of the anonymous types
+ /// generated for a coroutine.
+ CoroutineCandidate,
- /// Implementation of a `Future` trait by one of the generator types
+ /// Implementation of a `Future` trait by one of the coroutine types
/// generated for an async construct.
FutureCandidate,
+ /// Implementation of an `Iterator` trait by one of the generator types
+ /// generated for a gen construct.
+ IteratorCandidate,
+
/// Implementation of a `Fn`-family trait by one of the anonymous
/// types generated for a fn pointer type (e.g., `fn(int) -> int`)
FnPointerCandidate {