about summary refs log tree commit diff
path: root/src/liballoc/collections
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-11-07 09:20:44 +0900
committerGitHub <noreply@github.com>2019-11-07 09:20:44 +0900
commita2b4ad439cd11c3b9bfcc9b92c6feff6f7b0e042 (patch)
treedd846ce5449eedb50ea5b196defec5a597a81a26 /src/liballoc/collections
parent3032233bb277202a5336c2dedee999a1b3e698c3 (diff)
parent6a5931921ca751b8c6748111d15c5d97cb47fab4 (diff)
downloadrust-a2b4ad439cd11c3b9bfcc9b92c6feff6f7b0e042.tar.gz
rust-a2b4ad439cd11c3b9bfcc9b92c6feff6f7b0e042.zip
Rollup merge of #66117 - olegnn:fixed_linked_list_marker, r=RalfJung
Fixed PhantomData markers in Arc and Rc

Include owned internal structs in `PhantomData` markers in `Arc` (`PhantomData<T>` => `PhantomData<ArcInner<T>>`) and `Rc` (`PhantomData<T>` => `PhantomData<RcBox<T>>`).
Diffstat (limited to 'src/liballoc/collections')
-rw-r--r--src/liballoc/collections/linked_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs
index 48f9865b870..a0c9263673d 100644
--- a/src/liballoc/collections/linked_list.rs
+++ b/src/liballoc/collections/linked_list.rs
@@ -90,7 +90,7 @@ impl<T> Clone for Iter<'_, T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct IterMut<'a, T: 'a> {
     // We do *not* exclusively own the entire list here, references to node's `element`
-    // have been handed out by the iterator!  So be careful when using this; the methods
+    // have been handed out by the iterator! So be careful when using this; the methods
     // called must be aware that there can be aliasing pointers to `element`.
     list: &'a mut LinkedList<T>,
     head: Option<NonNull<Node<T>>>,