Skip to content

Commit 7f07d24

Browse files
authored
Merge pull request #151 from Rust-for-Linux/dev/panic
internal: use `loop {}` to produce never value
2 parents ef7ae2e + e360934 commit 7f07d24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ fn make_field_check(
354354
::core::ptr::write(slot, #path {
355355
#(
356356
#(#field_attrs)*
357-
#field_name: ::core::panic!(),
357+
#field_name: loop {},
358358
)*
359359
#zeroing_trailer
360360
})

0 commit comments

Comments
 (0)