ICE: improper_ctypes: Option nonnull optimization not applied? #79787
Labels
A-FFI
Area: Foreign function interface (FFI)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Code from playground linked in this comment. Apparently, since that discussion took place the
#[repr(no_niche)]
flag got implemented and was added toUnsafeCell
, yet the code for checking FFI-safety was perhaps not updated accordingly.Meta
Error output
Backtrace
The text was updated successfully, but these errors were encountered: