Skip to content

Commit 11d8667

Browse files
authored
Rollup merge of #143359 - clubby789:fallback-2024-doc, r=ibraheemdev
Link to 2024 edition page for `!` fallback changes Closes #143207
2 parents 11b24c1 + 21c8715 commit 11d8667

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

library/core/src/primitive_docs.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,14 +304,12 @@ mod prim_bool {}
304304
/// This is what is known as "never type fallback".
305305
///
306306
/// Historically, the fallback type was [`()`], causing confusing behavior where `!` spontaneously
307-
/// coerced to `()`, even when it would not infer `()` without the fallback. There are plans to
308-
/// change it in the [2024 edition] (and possibly in all editions on a later date); see
309-
/// [Tracking Issue for making `!` fall back to `!`][fallback-ti].
307+
/// coerced to `()`, even when it would not infer `()` without the fallback. The fallback was changed
308+
/// to `!` in the [2024 edition], and will be changed in all editions at a later date.
310309
///
311310
/// [coercion site]: <https://doc.rust-lang.org/reference/type-coercions.html#coercion-sites>
312311
/// [`()`]: prim@unit
313-
/// [fallback-ti]: <https://github.com/rust-lang/rust/issues/123748>
314-
/// [2024 edition]: <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html>
312+
/// [2024 edition]: <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html>
315313
///
316314
#[unstable(feature = "never_type", issue = "35121")]
317315
mod prim_never {}

0 commit comments

Comments
 (0)