Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ensure we always get a constant, even without mir opts
  • Loading branch information
oli-obk committed Jan 21, 2025
commit 964c58a7d96d4cd2dbda8fb40ff0f15ef10b78e3
2 changes: 1 addition & 1 deletion tests/codegen/slice-init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn option_none_init() -> [Option<u8>; N] {
// CHECK-NOT: switch
// CHECK: icmp
// CHECK-NOT: call void @llvm.memset.p0
[None; N]
[const { None }; N]
}

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