Auto merge of #51127 - frewsxcv:frewsxcv-discriminant, r=GuillaumeGomez

Add doc link from discriminant struct to function.

None
This commit is contained in:
bors 2018-05-31 06:38:24 +00:00
commit a47b2d09d6

View File

@ -835,7 +835,9 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
/// Opaque type representing the discriminant of an enum.
///
/// See the `discriminant` function in this module for more information.
/// See the [`discriminant`] function in this module for more information.
///
/// [`discriminant`]: fn.discriminant.html
#[stable(feature = "discriminant_value", since = "1.21.0")]
pub struct Discriminant<T>(u64, PhantomData<fn() -> T>);