diff options
| author | bstrie <bstrie@thinwsl> | 2020-12-09 18:26:42 -0500 |
|---|---|---|
| committer | bstrie <bstrie@thinwsl> | 2020-12-16 13:21:24 -0500 |
| commit | 1e1ca28f395b4c43cc2781676dafffd4f3269989 (patch) | |
| tree | d6e6fe077ae1416f3e3876f06a51738655214416 /src/librustdoc/html/render | |
| parent | 2ba7ca2bbbff6cd424aebc654308febc00b9497a (diff) | |
| download | rust-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.rs | 6 |
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)) } |
