Skip to content

Commit 44ad8fd

Browse files
committed
Shorten deprecation note
1 parent 101e17d commit 44ad8fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/render.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<S
21132113
since,
21142114
MarkdownHtml(&deprecated_reason))
21152115
} else {
2116-
format!("This will be deprecated in {}{}",
2116+
format!("Deprecating in {}{}",
21172117
Escape(&stab.deprecated_since),
21182118
MarkdownHtml(&deprecated_reason))
21192119
};
@@ -2171,7 +2171,7 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<S
21712171
since,
21722172
MarkdownHtml(&note))
21732173
} else {
2174-
format!("This will be deprecated in {}{}",
2174+
format!("Deprecating in {}{}",
21752175
Escape(&depr.since),
21762176
MarkdownHtml(&note))
21772177
};

src/test/rustdoc/deprecated-future.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
#![feature(deprecated)]
1212

1313
// @has deprecated_future/struct.S.html '//*[@class="stab deprecated"]' \
14-
// 'This will be deprecated in 99.99.99: effectively never'
14+
// 'Deprecating in 99.99.99: effectively never'
1515
#[deprecated(since = "99.99.99", note = "effectively never")]
1616
pub struct S;

0 commit comments

Comments
 (0)