about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-02-25 15:26:53 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-02-25 15:26:53 -0600
commitd6f22a248106b0ade754ad1e3573fac2ebb8f182 (patch)
treea598095ebbc5a6b38459bc52790d47bdde5f65ec
parent968ce252a849e1890e5701ed92b8861ce4ac1fe2 (diff)
downloadrust-d6f22a248106b0ade754ad1e3573fac2ebb8f182.tar.gz
rust-d6f22a248106b0ade754ad1e3573fac2ebb8f182.zip
Make comment into a doc comment and change readme ref
-rw-r--r--src/librustc/traits/specialize/mod.rs18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/librustc/traits/specialize/mod.rs b/src/librustc/traits/specialize/mod.rs
index afe29cc0e7b..72d9dd9012c 100644
--- a/src/librustc/traits/specialize/mod.rs
+++ b/src/librustc/traits/specialize/mod.rs
@@ -8,14 +8,16 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// Logic and data structures related to impl specialization, explained in
-// greater detail below.
-//
-// At the moment, this implementation support only the simple "chain" rule:
-// If any two impls overlap, one must be a strict subset of the other.
-//
-// See traits/README.md for a bit more detail on how specialization
-// fits together with the rest of the trait machinery.
+//! Logic and data structures related to impl specialization, explained in
+//! greater detail below.
+//!
+//! At the moment, this implementation support only the simple "chain" rule:
+//! If any two impls overlap, one must be a strict subset of the other.
+//!
+//! See the [rustc guide] for a bit more detail on how specialization
+//! fits together with the rest of the trait machinery.
+//!
+//! [rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/trait-specialization.html
 
 use super::{SelectionContext, FulfillmentContext};
 use super::util::impl_trait_ref_and_oblig;