]> git.lizzy.rs Git - rust.git/commitdiff
add a rustdoc comment to the reservation impl
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 24 Sep 2019 15:10:42 +0000 (11:10 -0400)
committerAriel Ben-Yehuda <ariel.byd@gmail.com>
Tue, 24 Sep 2019 18:11:51 +0000 (21:11 +0300)
src/libcore/convert.rs

index 71edea561b8bb1fb4b5b5976ad39339af70be908..f639309db87918a8ec4fc5e64c17a2a83090a836 100644 (file)
@@ -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 \