Remove unwanted auto-linking and update
This commit is contained in:
parent
a3ed2abed7
commit
05275dafaa
@ -998,7 +998,7 @@ fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F>
|
||||
/// an extra layer of indirection. `flat_map()` will remove this extra layer
|
||||
/// 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()`.
|
||||
///
|
||||
/// Another way of thinking about `flat_map()`: [`map`]'s closure returns
|
||||
|
@ -258,7 +258,7 @@ pub struct CharSearcher<'a> {
|
||||
|
||||
/// `finger` is the current byte index of the forward search.
|
||||
/// 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
|
||||
finger: usize,
|
||||
/// `finger_back` is the current byte index of the reverse search.
|
||||
|
@ -1550,7 +1550,7 @@ pub fn builtin_deref(&self, explicit: bool) -> Option<TypeAndMut<'tcx>> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the type of ty[i]
|
||||
/// Returns the type of `ty[i]`.
|
||||
pub fn builtin_index(&self) -> Option<Ty<'tcx>> {
|
||||
match self.sty {
|
||||
TyArray(ty, _) | TySlice(ty) => Some(ty),
|
||||
|
@ -61,7 +61,7 @@
|
||||
/// # Conversions
|
||||
///
|
||||
/// 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
|
||||
@ -74,6 +74,7 @@
|
||||
/// [`new`]: #method.new
|
||||
/// [`push`]: #method.push
|
||||
/// [`as_os_str`]: #method.as_os_str
|
||||
/// [conversions]: index.html#conversions
|
||||
#[derive(Clone)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct OsString {
|
||||
@ -89,7 +90,7 @@ pub struct OsString {
|
||||
/// references; the latter are owned strings.
|
||||
///
|
||||
/// 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
|
||||
/// [`&str`]: ../primitive.str.html
|
||||
|
@ -787,13 +787,13 @@ macro_rules! assert {
|
||||
}
|
||||
}
|
||||
|
||||
/// 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
|
||||
/// of a cascade of `#[cfg]` cases, emitting the implementation which matches
|
||||
/// 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.
|
||||
macro_rules! cfg_if {
|
||||
($(
|
||||
|
@ -8,9 +8,9 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// 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,
|
||||
//! and definition contexts*. J. Funct. Program. 22, 2 (March 2012), 181-216.
|
||||
//! DOI=10.1017/S0956796812000093 <http://dx.doi.org/10.1017/S0956796812000093>
|
||||
|
@ -8,13 +8,13 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// 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
|
||||
/// of a cascade of `#[cfg]` cases, emitting the implementation which matches
|
||||
/// 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.
|
||||
macro_rules! cfg_if {
|
||||
($(
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
//`#[cfg]` on struct field permits empty unusable struct
|
||||
// `#[cfg]` on struct field permits empty unusable struct
|
||||
|
||||
struct S {
|
||||
#[cfg(untrue)]
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// must-compile-successfully
|
||||
// compile-pass
|
||||
|
||||
//! Test with [Foo::baz], [Bar::foo], [Uniooon::X]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user