1
Fork 0

Remove unwanted auto-linking and update

This commit is contained in:
Guillaume Gomez 2018-04-15 16:17:18 +02:00
parent a3ed2abed7
commit 05275dafaa
9 changed files with 14 additions and 13 deletions

View file

@ -998,7 +998,7 @@ pub trait Iterator {
/// an extra layer of indirection. `flat_map()` will remove this extra layer /// an extra layer of indirection. `flat_map()` will remove this extra layer
/// on its own. /// on its own.
/// ///
/// You can think of [`flat_map(f)`][flat_map] as the semantic equivalent /// You can think of `flat_map(f)` as the semantic equivalent
/// of [`map`]ping, and then [`flatten`]ing as in `map(f).flatten()`. /// of [`map`]ping, and then [`flatten`]ing as in `map(f).flatten()`.
/// ///
/// Another way of thinking about `flat_map()`: [`map`]'s closure returns /// Another way of thinking about `flat_map()`: [`map`]'s closure returns

View file

@ -258,7 +258,7 @@ pub struct CharSearcher<'a> {
/// `finger` is the current byte index of the forward search. /// `finger` is the current byte index of the forward search.
/// Imagine that it exists before the byte at its index, i.e. /// Imagine that it exists before the byte at its index, i.e.
/// haystack[finger] is the first byte of the slice we must inspect during /// `haystack[finger]` is the first byte of the slice we must inspect during
/// forward searching /// forward searching
finger: usize, finger: usize,
/// `finger_back` is the current byte index of the reverse search. /// `finger_back` is the current byte index of the reverse search.

View file

@ -1550,7 +1550,7 @@ impl<'a, 'gcx, 'tcx> TyS<'tcx> {
} }
} }
/// Returns the type of ty[i] /// Returns the type of `ty[i]`.
pub fn builtin_index(&self) -> Option<Ty<'tcx>> { pub fn builtin_index(&self) -> Option<Ty<'tcx>> {
match self.sty { match self.sty {
TyArray(ty, _) | TySlice(ty) => Some(ty), TyArray(ty, _) | TySlice(ty) => Some(ty),

View file

@ -61,7 +61,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
/// # Conversions /// # Conversions
/// ///
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on /// See the [module's toplevel documentation about conversions][conversions] for a discussion on
/// the traits which `OsString` implements for conversions from/to native representations. /// the traits which `OsString` implements for [conversions] from/to native representations.
/// ///
/// [`OsStr`]: struct.OsStr.html /// [`OsStr`]: struct.OsStr.html
/// [`&OsStr`]: struct.OsStr.html /// [`&OsStr`]: struct.OsStr.html
@ -74,6 +74,7 @@ use sys_common::{AsInner, IntoInner, FromInner};
/// [`new`]: #method.new /// [`new`]: #method.new
/// [`push`]: #method.push /// [`push`]: #method.push
/// [`as_os_str`]: #method.as_os_str /// [`as_os_str`]: #method.as_os_str
/// [conversions]: index.html#conversions
#[derive(Clone)] #[derive(Clone)]
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub struct OsString { pub struct OsString {
@ -89,7 +90,7 @@ pub struct OsString {
/// references; the latter are owned strings. /// references; the latter are owned strings.
/// ///
/// See the [module's toplevel documentation about conversions][conversions] for a discussion on /// See the [module's toplevel documentation about conversions][conversions] for a discussion on
/// the traits which `OsStr` implements for conversions from/to native representations. /// the traits which `OsStr` implements for [conversions] from/to native representations.
/// ///
/// [`OsString`]: struct.OsString.html /// [`OsString`]: struct.OsString.html
/// [`&str`]: ../primitive.str.html /// [`&str`]: ../primitive.str.html

View file

@ -787,13 +787,13 @@ pub mod builtin {
} }
} }
/// A macro for defining #[cfg] if-else statements. /// A macro for defining `#[cfg]` if-else statements.
/// ///
/// This is similar to the `if/elif` C preprocessor macro by allowing definition /// This is similar to the `if/elif` C preprocessor macro by allowing definition
/// of a cascade of `#[cfg]` cases, emitting the implementation which matches /// of a cascade of `#[cfg]` cases, emitting the implementation which matches
/// first. /// first.
/// ///
/// This allows you to conveniently provide a long list #[cfg]'d blocks of code /// This allows you to conveniently provide a long list `#[cfg]`'d blocks of code
/// without having to rewrite each clause multiple times. /// without having to rewrite each clause multiple times.
macro_rules! cfg_if { macro_rules! cfg_if {
($( ($(

View file

@ -8,9 +8,9 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
//! Machinery for hygienic macros, inspired by the MTWT[1] paper. //! Machinery for hygienic macros, inspired by the `MTWT[1]` paper.
//! //!
//! [1] Matthew Flatt, Ryan Culpepper, David Darais, and Robert Bruce Findler. 2012. //! `[1]` Matthew Flatt, Ryan Culpepper, David Darais, and Robert Bruce Findler. 2012.
//! *Macros that work together: Compile-time bindings, partial expansion, //! *Macros that work together: Compile-time bindings, partial expansion,
//! and definition contexts*. J. Funct. Program. 22, 2 (March 2012), 181-216. //! and definition contexts*. J. Funct. Program. 22, 2 (March 2012), 181-216.
//! DOI=10.1017/S0956796812000093 <http://dx.doi.org/10.1017/S0956796812000093> //! DOI=10.1017/S0956796812000093 <http://dx.doi.org/10.1017/S0956796812000093>

View file

@ -8,13 +8,13 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
/// A macro for defining #[cfg] if-else statements. /// A macro for defining `#[cfg]` if-else statements.
/// ///
/// This is similar to the `if/elif` C preprocessor macro by allowing definition /// This is similar to the `if/elif` C preprocessor macro by allowing definition
/// of a cascade of `#[cfg]` cases, emitting the implementation which matches /// of a cascade of `#[cfg]` cases, emitting the implementation which matches
/// first. /// first.
/// ///
/// This allows you to conveniently provide a long list #[cfg]'d blocks of code /// This allows you to conveniently provide a long list `#[cfg]`'d blocks of code
/// without having to rewrite each clause multiple times. /// without having to rewrite each clause multiple times.
macro_rules! cfg_if { macro_rules! cfg_if {
($( ($(

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
//`#[cfg]` on struct field permits empty unusable struct // `#[cfg]` on struct field permits empty unusable struct
struct S { struct S {
#[cfg(untrue)] #[cfg(untrue)]

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
// must-compile-successfully // compile-pass
//! Test with [Foo::baz], [Bar::foo], [Uniooon::X] //! Test with [Foo::baz], [Bar::foo], [Uniooon::X]