about summary refs log tree commit diff
path: root/src/librustdoc/json
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2023-10-26 10:14:29 -0700
committerDavid Tolnay <dtolnay@gmail.com>2023-10-29 22:42:32 -0700
commit2fe7d17bd9aabe3948b8693c2a3d4841ce9fbd14 (patch)
treec8006b654e380b47fdea85fea88f84cb3e9b8d37 /src/librustdoc/json
parent5c7cf837395db7221bd1061eee230fd27f81e6ad (diff)
Store version of `deprecated` attribute in structured form
Diffstat (limited to 'src/librustdoc/json')
-rw-r--r--src/librustdoc/json/conversions.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs
index 563e0cffddd..ff2e6b1ebc9 100644
--- a/src/librustdoc/json/conversions.rs
+++ b/src/librustdoc/json/conversions.rs
@@ -138,8 +138,7 @@ where
 }
 
 pub(crate) fn from_deprecation(deprecation: rustc_attr::Deprecation) -> Deprecation {
-    #[rustfmt::skip]
-    let rustc_attr::Deprecation { since, note, is_since_rustc_version: _, suggestion: _ } = deprecation;
+    let rustc_attr::Deprecation { since, note, suggestion: _ } = deprecation;
     Deprecation { since: since.map(|s| s.to_string()), note: note.map(|s| s.to_string()) }
 }