]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/vec.rs
Remove unchecked inline attribute, remove unused functions, make chache mod private...
[rust.git] / src / liballoc / vec.rs
index 8892e186d0a3ff4e1982521fa9ffeed67dd67933..1a700b990569c39ac854f72150200a3131e64463 100644 (file)
@@ -2703,6 +2703,9 @@ fn is_empty(&self) -> bool {
     }
 }
 
+#[unstable(feature = "trusted_len", issue = "37572")]
+unsafe impl<T> TrustedLen for Drain<'_, T> {}
+
 #[stable(feature = "fused", since = "1.26.0")]
 impl<T> FusedIterator for Drain<'_, T> {}