]> git.proxmox.com Git - rustc.git/blobdiff - library/alloc/src/collections/linked_list.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / library / alloc / src / collections / linked_list.rs
index 397e774f1a03da6f6f615ff5cdf066c9c48c65af..a5481fd175e307cb5e86deb9c0bc00bd974af6b4 100644 (file)
@@ -35,6 +35,7 @@ mod tests;
 /// array-based containers are generally faster,
 /// more memory efficient, and make better use of CPU cache.
 #[stable(feature = "rust1", since = "1.0.0")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "LinkedList")]
 pub struct LinkedList<T> {
     head: Option<NonNull<Node<T>>>,
     tail: Option<NonNull<Node<T>>>,