diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2022-04-07 23:44:55 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2022-04-14 21:19:44 -0400 |
| commit | e46f8b23dd2c4ddf3b68feaddad2c4b0b6e1c186 (patch) | |
| tree | cc6e307197c71885776f0350e72443b982707d0d /src/librustdoc/html/render | |
| parent | 4fbe73e0b79afb9e2b352438bac743104f0d2ba6 (diff) | |
| download | rust-e46f8b23dd2c4ddf3b68feaddad2c4b0b6e1c186.tar.gz rust-e46f8b23dd2c4ddf3b68feaddad2c4b0b6e1c186.zip | |
Error on `#[rustc_deprecated]`
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index a4cc42e2a01..27b13a158ad 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -659,8 +659,8 @@ fn short_item_info( if let Some(depr @ Deprecation { note, since, is_since_rustc_version: _, suggestion: _ }) = item.deprecation(cx.tcx()) { - // We display deprecation messages for #[deprecated] and #[rustc_deprecated] - // but only display the future-deprecation messages for #[rustc_deprecated]. + // We display deprecation messages for #[deprecated], but only display + // the future-deprecation messages for rustc versions. let mut message = if let Some(since) = since { let since = since.as_str(); if !stability::deprecation_in_effect(&depr) { |
