Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions library/core/src/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ const impl AsMut<str> for str {
/// }
/// ```
///
/// Note: since CURRENT_RUSTC_VERSION this is an alias to `!`. If targeting that or future versions,
/// prefer using the never type directly.
/// Note: Since [`!`] (the "never" type) was stabilized in Rust CURRENT_RUSTC_VERSION, it is
/// preferred to use `!` directly unless targeting older Rust versions. `Infallible` may be
/// deprecated in a future Rust version.
#[stable(feature = "convert_infallible", since = "1.34.0")]
pub type Infallible = !;
Loading