diff options
| author | bors <bors@rust-lang.org> | 2016-11-01 19:38:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-01 19:38:16 -0700 |
| commit | 3fba503bf50b4a83dbc20e002b1e1e2c00fe1054 (patch) | |
| tree | 889f76780cf9967c5d16dbcf924d7549dd38e23d /src/libcore | |
| parent | 7c69b0d5ae8c404c4847fa214126ebd7c0246277 (diff) | |
| parent | f5c192a4b7f1bb7661c1625d9ff66771a79c9e6e (diff) | |
| download | rust-3fba503bf50b4a83dbc20e002b1e1e2c00fe1054.tar.gz rust-3fba503bf50b4a83dbc20e002b1e1e2c00fe1054.zip | |
Auto merge of #37514 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 7 pull requests - Successful merges: #36849, #37059, #37296, #37316, #37484, #37485, #37495 - Failed merges:
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/convert.rs | 6 | ||||
| -rw-r--r-- | src/libcore/macros.rs | 7 | ||||
| -rw-r--r-- | src/libcore/marker.rs | 4 | ||||
| -rw-r--r-- | src/libcore/ops.rs | 6 | ||||
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
5 files changed, 13 insertions, 12 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 5f16a4f2435..830bbc079ad 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -145,7 +145,7 @@ pub trait AsMut<T: ?Sized> { /// /// # Generic Impls /// -/// - `[From<T>][From] for U` implies `Into<U> for T` +/// - [`From<T>`][From]` for U` implies `Into<U> for T` /// - [`into()`] is reflexive, which means that `Into<T> for T` is implemented /// /// [`TryInto`]: trait.TryInto.html @@ -178,14 +178,14 @@ pub trait Into<T>: Sized { /// ``` /// # Generic impls /// -/// - `From<T> for U` implies `[Into<U>] for T` +/// - `From<T> for U` implies [`Into<U>`]` for T` /// - [`from()`] is reflexive, which means that `From<T> for T` is implemented /// /// [`TryFrom`]: trait.TryFrom.html /// [`Option<T>`]: ../../std/option/enum.Option.html /// [`Result<T, E>`]: ../../std/result/enum.Result.html /// [`String`]: ../../std/string/struct.String.html -/// [Into<U>]: trait.Into.html +/// [`Into<U>`]: trait.Into.html /// [`from()`]: trait.From.html#tymethod.from #[stable(feature = "rust1", since = "1.0.0")] pub trait From<T>: Sized { diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index e6c3f549ec8..f69a60d9e1f 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -42,12 +42,13 @@ macro_rules! panic { /// Unsafe code relies on `assert!` to enforce run-time invariants that, if /// violated could lead to unsafety. /// -/// Other use-cases of `assert!` include -/// [testing](https://doc.rust-lang.org/book/testing.html) and enforcing -/// run-time invariants in safe code (whose violation cannot result in unsafety). +/// Other use-cases of `assert!` include [testing] and enforcing run-time +/// invariants in safe code (whose violation cannot result in unsafety). /// /// This macro has a second version, where a custom panic message can be provided. /// +/// [testing]: ../book/testing.html +/// /// # Examples /// /// ``` diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 03d8af1563d..bdb0dd8e7d1 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -241,8 +241,8 @@ pub trait Unsize<T: ?Sized> { /// compile-time error. Specifically, with structs you'll get [E0204] and with enums you'll get /// [E0205]. /// -/// [E0204]: https://doc.rust-lang.org/error-index.html#E0204 -/// [E0205]: https://doc.rust-lang.org/error-index.html#E0205 +/// [E0204]: ../../error-index.html#E0204 +/// [E0205]: ../../error-index.html#E0205 /// /// ## When *should* my type be `Copy`? /// diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 62aa57bbbbf..e177963fade 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -182,11 +182,11 @@ pub trait Drop { /// After this function is over, the memory of `self` will be deallocated. /// /// This function cannot be called explicitly. This is compiler error - /// [0040]. However, the [`std::mem::drop`] function in the prelude can be + /// [E0040]. However, the [`std::mem::drop`] function in the prelude can be /// used to call the argument's `Drop` implementation. /// - /// [0040]: https://doc.rust-lang.org/error-index.html#E0040 - /// [`std::mem::drop`]: https://doc.rust-lang.org/std/mem/fn.drop.html + /// [E0040]: ../../error-index.html#E0040 + /// [`std::mem::drop`]: ../../std/mem/fn.drop.html /// /// # Panics /// diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index d63d2d64fe1..196750254af 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -132,7 +132,7 @@ impl Utf8Error { /// verified. /// /// It is the maximum index such that `from_utf8(input[..index])` - /// would return `Some(_)`. + /// would return `Ok(_)`. /// /// # Examples /// |
