Add comment about safety of top_label
This commit is contained in:
parent
cf0dee5c18
commit
7868e77f8e
|
@ -1703,6 +1703,7 @@ fn pop_label(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn top_label(frame_stack: &StackWithLimit<BlockFrame>) -> &BlockFrame {
|
fn top_label(frame_stack: &StackWithLimit<BlockFrame>) -> &BlockFrame {
|
||||||
|
// TODO: This actually isn't safe.
|
||||||
frame_stack
|
frame_stack
|
||||||
.top()
|
.top()
|
||||||
.expect("this function can't be called with empty frame stack")
|
.expect("this function can't be called with empty frame stack")
|
||||||
|
|
Loading…
Reference in New Issue