You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
c_import: translated facade code warns "redundant unsafe prefix inside unsafe context" on every compile (an unsafe *(&raw const __param_…) deref inside an unsafe { … } block) #1704
(seen on test/behavior/behav_c_facade_retained_callback.w, behav_c_facade_statement_cache.w, behav_c_facade_thread_send.w and 25 other facade fixtures — their stdout is right; the warning is stderr noise from generated code). Generated code must compile clean: the translator wraps the call in unsafe { … } and also spells the record deref with an unsafe prefix. Drop the inner prefix when the expression is already emitted inside an unsafe block (CiPrint's CIE_UNSAFE prints the block form; the prefix form comes from the by-value record parameter rendering). Found sweeping the facade corpus for #1653.
Activity
c_import: an expression inside a translated `unsafe { … }` prints its…
ehartford commentedon Sep 26, 2026
Fixed on main by #1707 (37d87fc): all 57 facade fixtures compile warning-free.