-
Notifications
You must be signed in to change notification settings - Fork 151
Prevent panics statically #202
Copy link
Copy link
Open
Labels
compatibility-nonbreakingChanges that are (likely to be) non-breakingChanges that are (likely to be) non-breakingexperience-easyThis issue is easy, and shouldn't require much experienceThis issue is easy, and shouldn't require much experienceexperience-mediumThis issue is of medium difficulty, and requires some experienceThis issue is of medium difficulty, and requires some experiencehelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
compatibility-nonbreakingChanges that are (likely to be) non-breakingChanges that are (likely to be) non-breakingexperience-easyThis issue is easy, and shouldn't require much experienceThis issue is easy, and shouldn't require much experienceexperience-mediumThis issue is of medium difficulty, and requires some experienceThis issue is of medium difficulty, and requires some experiencehelp wantedExtra attention is neededExtra attention is needed
Issues like #200 demonstrate that the compiler is sometimes not smart enough to optimize out panics that we can prove statically won't happen. It would be good if we could:
See also #325, #1125
Mentoring instructions
if: matrix.crate == 'zerocopy' && matrix.toolchain == 'nightly'#[redpen::dont_panic]