about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2021-07-26 12:29:18 +0800
committerDeadbeef <ent3rm4n@gmail.com>2021-08-13 09:28:51 +0000
commit869daad8fce326a4a6976cbd51964da5efacec28 (patch)
tree1e7e2f905b34ae6bd8a09cbbd66470990567c0c1 /compiler/rustc_trait_selection/src/traits
parent6b6ad781f8cae57aef80d35b1c5b7f36f239ed62 (diff)
Fix tests
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index f7c66f8b284..4c7ee5382d0 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -1063,8 +1063,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
                         }) => {}
                         // auto trait impl
                         AutoImplCandidate(..) => {}
-                        // FIXME check if this is right, but this would allow Sized impls
-                        // BuiltinCandidate { .. } => {}
+                        // generator, this will raise error in other places
+                        // or ignore error with const_async_blocks feature
+                        GeneratorCandidate => {}
                         _ => {
                             // reject all other types of candidates
                             return Err(Unimplemented);