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
let val = &mut vec!(1u);
let slice1 = val.as_slice(); // OK
let slice2 = val[]; // error: cannot take a slice of a value with type `&mut collections::vec::Vec<uint>`
(If I use core::ops::Slice, as_slice_() works but as_slice() stops working. I don't understand how that works either.)
The RFC says "uses of this notation will auto-deref just as if they were method invocations", so I think this is a bug.
The text was updated successfully, but these errors were encountered:
…r, r=Veykril
internal: Move and split flycheck crate into rust-analyzer main crate
The crate no longer is about flychecking, it mainly hosts common command process handling shared by flycheck, test explorer and now project discovery. This re-organizes that into the main crate.
(If I
use core::ops::Slice
,as_slice_()
works butas_slice()
stops working. I don't understand how that works either.)The RFC says "uses of this notation will auto-deref just as if they were method invocations", so I think this is a bug.
The text was updated successfully, but these errors were encountered: