about summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorbstrie <bstrie@thinwsl>2020-12-09 18:26:42 -0500
committerbstrie <bstrie@thinwsl>2020-12-16 13:21:24 -0500
commit1e1ca28f395b4c43cc2781676dafffd4f3269989 (patch)
treed6e6fe077ae1416f3e3876f06a51738655214416 /src/librustdoc/html/render
parent2ba7ca2bbbff6cd424aebc654308febc00b9497a (diff)
downloadrust-1e1ca28f395b4c43cc2781676dafffd4f3269989.tar.gz
rust-1e1ca28f395b4c43cc2781676dafffd4f3269989.zip
Allow `since="TBD"` for rustc_deprecated
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index 88c5e94c276..00294878fe5 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -2279,7 +2279,11 @@ fn short_item_info(item: &clean::Item, cx: &Context, parent: Option<&clean::Item
         let mut message = if let Some(since) = since {
             let since = &since.as_str();
             if !stability::deprecation_in_effect(is_since_rustc_version, Some(since)) {
-                format!("Deprecating in {}", Escape(since))
+                if *since == "TBD" {
+                    format!("Deprecating in a future Rust version")
+                } else {
+                    format!("Deprecating in {}", Escape(since))
+                }
             } else {
                 format!("Deprecated since {}", Escape(since))
             }