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
fn f(x: int) -> int { x }
static mut F: extern fn(x: int) -> int = f;
fn main() {
unsafe { F(1) }
}
error: internal compiler error: Cannot translate def def_static({crate: 0, node: 23}, true) to a callable thing!
Seems to have been resolved a while ago (#4523), but is still occurring. @Aatch has said this should be an easy fix, it just needs to be done. This is important for the OpengGL function loader.
The text was updated successfully, but these errors were encountered:
`indexing_slicing` should not fire if a valid array index comes from a constant function that is evaluated at compile-time
fixrust-lang#8348
changelog: [`indexing_slicing`] fewer false positives in `const` contexts and with `const` indices
Seems to have been resolved a while ago (#4523), but is still occurring. @Aatch has said this should be an easy fix, it just needs to be done. This is important for the OpengGL function loader.
The text was updated successfully, but these errors were encountered: