]> git.lizzy.rs Git - rust.git/commitdiff
convert to doc comments
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 13 Mar 2020 18:33:37 +0000 (14:33 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 26 Mar 2020 10:52:58 +0000 (06:52 -0400)
src/libcore/clone.rs
src/libcore/marker.rs

index 629c197e37691d06b06d066658479ba1af9a0459..eb101fc72fd9e4f0078da7c99e2d12eb322bcf2b 100644 (file)
@@ -219,7 +219,7 @@ fn clone(&self) -> Self {
         }
     }
 
-    // Shared references can be cloned, but mutable references *cannot*!
+    /// Shared references can be cloned, but mutable references *cannot*!
     #[stable(feature = "rust1", since = "1.0.0")]
     impl<T: ?Sized> Clone for &T {
         #[inline]
@@ -228,7 +228,7 @@ fn clone(&self) -> Self {
         }
     }
 
-    // Shared references can be cloned, but mutable references *cannot*!
+    /// Shared references can be cloned, but mutable references *cannot*!
     #[stable(feature = "rust1", since = "1.0.0")]
     #[cfg(not(bootstrap))]
     impl<T: ?Sized> !Clone for &mut T {}
index 2b908f07af8da585f6cdbe7f9ff2590709662d05..549f80de36aa5ea885edd9b5c51b7309d8fd6105 100644 (file)
@@ -87,7 +87,7 @@ impl<T: ?Sized> !Send for *mut T {}
     message = "the size for values of type `{Self}` cannot be known at compilation time",
     label = "doesn't have a size known at compile-time",
     note = "to learn more, visit <https://doc.rust-lang.org/book/\
-          ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>"
+            ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>"
 )]
 #[fundamental] // for Default, for example, which requires that `[T]: !Default` be evaluatable
 #[cfg_attr(not(bootstrap), rustc_specialization_trait)]
@@ -790,7 +790,7 @@ impl<T: ?Sized> Copy for *const T {}
     #[stable(feature = "rust1", since = "1.0.0")]
     impl<T: ?Sized> Copy for *mut T {}
 
-    // Shared references can be copied, but mutable references *cannot*!
+    /// Shared references can be copied, but mutable references *cannot*!
     #[stable(feature = "rust1", since = "1.0.0")]
     impl<T: ?Sized> Copy for &T {}
 }