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
Found this while refactoring my library after the Vector -> Slice rename
STR:
use std::{mem, raw};fnmain(){let a = &[1,2,3i];let raw::Slice{data: ptr,len: len }: raw::Slice<int> = unsafe{ mem::transmute(a)};let b = unsafe{ mem::transmute(Slice{data: ptr,len: len })};// ICE ^~~ forgot the `raw::` qualifier}
I think it's no longer ICEing because the current Slice in the prelude is std::ops::Slice, whereas at the moment of the bug report the Slice in the prelude was core::slice::Slice. I wonder if the ICE trigger was the number of generic parameters that the trait accepts? (two for ops::Slice vs one for slice::Slice)
Anyhow, I'm closing this issue since it no longer contains a valid STR.
Found this while refactoring my library after the
Vector
->Slice
renameSTR:
Backtrace:
Version:
The text was updated successfully, but these errors were encountered: