Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 964c58a

Browse files
committedJan 21, 2025
Ensure we always get a constant, even without mir opts
1 parent 8876cf7 commit 964c58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/codegen/slice-init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub fn option_none_init() -> [Option<u8>; N] {
8686
// CHECK-NOT: switch
8787
// CHECK: icmp
8888
// CHECK-NOT: call void @llvm.memset.p0
89-
[None; N]
89+
[const { None }; N]
9090
}
9191

9292
// Use an opaque function to prevent rustc from removing useless drops.

0 commit comments

Comments
 (0)
Please sign in to comment.