diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-07-07 03:26:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 03:26:07 +0200 |
| commit | 11d8667f212cdd4c884bd8bf97c5faaabca7328b (patch) | |
| tree | 0f858ece908ded68892a02c047515a5158951609 | |
| parent | 11b24c108da6eaea35b785e8b0fc5f688d13c4bf (diff) | |
| parent | 21c8715bf735da40636ddd443f6139d923cc67d2 (diff) | |
| download | rust-11d8667f212cdd4c884bd8bf97c5faaabca7328b.tar.gz rust-11d8667f212cdd4c884bd8bf97c5faaabca7328b.zip | |
Rollup merge of #143359 - clubby789:fallback-2024-doc, r=ibraheemdev
Link to 2024 edition page for `!` fallback changes Closes rust-lang/rust#143207
| -rw-r--r-- | library/core/src/primitive_docs.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs index f55bdfeb354..2c77c55745b 100644 --- a/library/core/src/primitive_docs.rs +++ b/library/core/src/primitive_docs.rs @@ -304,14 +304,12 @@ mod prim_bool {} /// This is what is known as "never type fallback". /// /// Historically, the fallback type was [`()`], causing confusing behavior where `!` spontaneously -/// coerced to `()`, even when it would not infer `()` without the fallback. There are plans to -/// change it in the [2024 edition] (and possibly in all editions on a later date); see -/// [Tracking Issue for making `!` fall back to `!`][fallback-ti]. +/// coerced to `()`, even when it would not infer `()` without the fallback. The fallback was changed +/// to `!` in the [2024 edition], and will be changed in all editions at a later date. /// /// [coercion site]: <https://doc.rust-lang.org/reference/type-coercions.html#coercion-sites> /// [`()`]: prim@unit -/// [fallback-ti]: <https://github.com/rust-lang/rust/issues/123748> -/// [2024 edition]: <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/index.html> +/// [2024 edition]: <https://doc.rust-lang.org/edition-guide/rust-2024/never-type-fallback.html> /// #[unstable(feature = "never_type", issue = "35121")] mod prim_never {} |
