Add comment about safety of top_label

This commit is contained in:
Sergey Pepyakin 2019-04-01 17:46:58 +02:00
parent cf0dee5c18
commit 7868e77f8e
1 changed files with 1 additions and 0 deletions

View File

@ -1703,6 +1703,7 @@ fn pop_label(
}
fn top_label(frame_stack: &StackWithLimit<BlockFrame>) -> &BlockFrame {
// TODO: This actually isn't safe.
frame_stack
.top()
.expect("this function can't be called with empty frame stack")