We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb0b6c commit ced947fCopy full SHA for ced947f
src/test/codegen/function-arguments.rs
@@ -3,6 +3,8 @@
3
#![crate_type = "lib"]
4
#![feature(rustc_attrs)]
5
6
+use std::mem::MaybeUninit;
7
+
8
pub struct S {
9
_field: [i32; 8],
10
}
@@ -17,6 +19,12 @@ pub fn boolean(x: bool) -> bool {
17
19
x
18
20
21
22
+// CHECK: i8 @maybeuninit_boolean(i8 %x)
23
+#[no_mangle]
24
+pub fn maybeuninit_boolean(x: MaybeUninit<bool>) -> MaybeUninit<bool> {
25
+ x
26
+}
27
28
// CHECK: @readonly_borrow(i32* noalias readonly align 4 dereferenceable(4) %_1)
29
// FIXME #25759 This should also have `nocapture`
30
#[no_mangle]
0 commit comments