Skip to content

Commit

Permalink
add a rustdoc comment to the reservation impl
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored and arielb1 committed Sep 24, 2019
1 parent 167ab04 commit 99dc545
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libcore/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,11 @@ impl<T> From<T> for T {
fn from(t: T) -> T { t }
}

/// **Stability note:** This impl does not yet exist, but we are
/// "reserving space" to add it in the future. See
/// [rust-lang/rust#64715][#64715] for details.
///
/// [#64715]: https://github.com/rust-lang/rust/issues/64715
#[stable(feature = "convert_infallible", since = "1.34.0")]
#[cfg(not(boostrap_stdarch_ignore_this))]
#[rustc_reservation_impl="permitting this impl would forbid us from adding \
Expand Down

0 comments on commit 99dc545

Please sign in to comment.