We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RETURN_CODE_DROPPED
future.read
1 parent 172b20a commit b30271cCopy full SHA for b30271c
1 file changed
runtime/src/lib.rs
@@ -778,8 +778,10 @@ mod async_ {
778
.unwrap()
779
} else {
780
let code = code & 0xF;
781
- if let RETURN_CODE_COMPLETED | RETURN_CODE_DROPPED = code {
782
- unsafe { ty.lift(&mut call, buffer) }
+ match code {
+ RETURN_CODE_COMPLETED => unsafe { ty.lift(&mut call, buffer) },
783
+ RETURN_CODE_DROPPED => unreachable!(),
784
+ _ => todo!("handle cancellation"),
785
}
786
OK_CONSTRUCTOR
787
.get()
0 commit comments