Skip to content

Commit 473aae0

Browse files
author
Kyle Strand
committed
TODO about warnings
1 parent e472f0c commit 473aae0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rfcs/0000-longjmp-pof-annotation.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[project-group]: https://github.com/rust-lang/project-ffi-unwind
88

9-
<!-- XXX for now, content is copied from prior drafts of the "C unwind" RFC. -->
9+
<!-- TODO for now, content is copied from prior drafts of the "C unwind" RFC. -->
1010

1111
# Motivation
1212
[motivation]: #motivation
@@ -57,6 +57,10 @@ Conversely, if, due to a bug, `longjmp` were called unconditionally, then this
5757
code would have undefined behavior on all platforms when `c` is false, because
5858
`foo` would not be a POF.
5959

60+
<!-- TODO the above only talks about UB, but we want warnings to be more
61+
conservative: the compiler should warn in any scenario where a frame is not
62+
guaranteed to be a POF at the time it calls a "cancelable" function. -->
63+
6064
# Reference-level explanation
6165
[reference-level-explanation]: #reference-level-explanation
6266

0 commit comments

Comments
 (0)