Skip to content

Commit 585f39f

Browse files
authored
Rollup merge of rust-lang#54207 - QuietMisdreavus:never-docs-stab, r=kennytm
re-mark the never docs as unstable Fixes rust-lang#54198 This stability attribute was removed in rust-lang#47630, but not replaced with a `#[stable]` attribute, and when rust-lang#50121 reverted that stabilization, it didn't set the docs back to unstable. I'm concerned as to why it was allowed to not have the stability attribute at all, but at least this can put it back. I'm nominating this for beta backport because it's a really small change, and right now our docs are in an awkward position where the `!` type is technically unstable to use, but the docs don't say so the same way any other library feature would. (And this is also the case *on stable* now, but i'm not suggesting a stable backport for a docs fix.)
2 parents ae8410b + dda7e0d commit 585f39f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/primitive_docs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ mod prim_bool { }
250250
/// [`Default`]: default/trait.Default.html
251251
/// [`default()`]: default/trait.Default.html#tymethod.default
252252
///
253+
#[unstable(feature = "never_type", issue = "35121")]
253254
mod prim_never { }
254255

255256
#[doc(primitive = "char")]

0 commit comments

Comments
 (0)