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
Discovery context: I hit this bug while developing another project
with AI assistance, then asked the AI to extract a minimal reproducer
from the failing codebase. I (the human) verified the reproducer
reproduces the failure locally against main@c8b3103, but did not
independently audit the root-cause analysis, candidate patch, or
follow-up plan below — those are AI-generated and should be read
skeptically as a starting point, not a verified diagnosis.
Summary
A #[kernel] whose body delegates to a #[inline(always)] pub fn
helper defined in a sibling source file fails PTX codegen with Type translation not yet implemented for: RigidTy(Str). The exact
same body inlined directly inside the kernel builds fine. The &str
appears to be traced from DisjointSlice::get_mut's internal
panic-message globals — the device-function lowering path doesn't
strip / handle them the way the kernel-entry path does.
Concrete error site: crates/mir-importer/src/translator/types.rs:705-708
— the catch-all Type translation not yet implemented for: {:?} arm.
The &str reaches this arm because translate_pointer_like falls
through on the Str pointee.
Activity
fix(collector): actionable diagnostics for heap allocation and missin…