aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo_arc/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-10-17 16:04:10 -0500
committerGitHub <noreply@github.com>2017-10-17 16:04:10 -0500
commit0e62a5829b7c29ae2667a21a439aff1e89201bf3 (patch)
tree9732ccec4cccf1ebf7afa9027ad82d29ed064ea1 /components/servo_arc/lib.rs
parent00e2a1c62a04ae337f9008dcea8e265edd2d3ef4 (diff)
parentefc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (diff)
downloadservo-0e62a5829b7c29ae2667a21a439aff1e89201bf3.tar.gz
servo-0e62a5829b7c29ae2667a21a439aff1e89201bf3.zip
Auto merge of #18924 - mbrubeck:doc, r=Manishearth
Fix commonmark Markdown warnings in docs, part 1 Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they are doc formatting changes only <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18924) <!-- Reviewable:end -->
Diffstat (limited to 'components/servo_arc/lib.rs')
-rw-r--r--components/servo_arc/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs
index 7d17c26cd51..22d443a2db3 100644
--- a/components/servo_arc/lib.rs
+++ b/components/servo_arc/lib.rs
@@ -9,6 +9,7 @@
// except according to those terms.
//! Fork of Arc for Servo. This has the following advantages over std::Arc:
+//!
//! * We don't waste storage on the weak reference count.
//! * We don't do extra RMU operations to handle the possibility of weak references.
//! * We can experiment with arena allocation (todo).
@@ -16,7 +17,7 @@
//! * We have support for dynamically-sized types (see from_header_and_iter).
//! * We have support for thin arcs to unsized types (see ThinArc).
//!
-//! [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1360883
+//! [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1360883
// The semantics of Arc are alread documented in the Rust docs, so we don't
// duplicate those here.
@@ -83,7 +84,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
/// be thin or fat (which depends on whether or not T is sized). Given
/// that this is all a temporary hack, this restriction is fine for now.
///
-/// [1] https://github.com/rust-lang/rust/issues/27730
+/// [1]: https://github.com/rust-lang/rust/issues/27730
pub struct NonZeroPtrMut<T: ?Sized + 'static>(&'static mut T);
impl<T: ?Sized> NonZeroPtrMut<T> {
pub fn new(ptr: *mut T) -> Self {