mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
14 lines
289 B
Rust
14 lines
289 B
Rust
//@ compile-flags: -O
|
|
//@ ignore-debug
|
|
#![crate_type = "lib"]
|
|
|
|
use std::collections::binary_heap::PeekMut;
|
|
|
|
// CHECK-LABEL: @peek_mut_pop
|
|
#[no_mangle]
|
|
pub fn peek_mut_pop(peek_mut: PeekMut<u32>) -> u32 {
|
|
// CHECK-NOT: panic
|
|
// CHECK-NOT: unwrap_failed
|
|
PeekMut::pop(peek_mut)
|
|
}
|