s/Generator/Coroutine/
This commit is contained in:
@@ -765,7 +765,7 @@ fn switch_on_enum_discriminant<'mir, 'tcx>(
|
||||
// `Rvalue::Discriminant` is also used to get the active yield point for a
|
||||
// generator, but we do not need edge-specific effects in that case. This may
|
||||
// change in the future.
|
||||
ty::Generator(..) => return None,
|
||||
ty::Coroutine(..) => return None,
|
||||
|
||||
t => bug!("`discriminant` called on unexpected type {:?}", t),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user