diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-10-26 10:14:29 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-10-29 22:42:32 -0700 |
| commit | 2fe7d17bd9aabe3948b8693c2a3d4841ce9fbd14 (patch) | |
| tree | c8006b654e380b47fdea85fea88f84cb3e9b8d37 /src/librustdoc/json | |
| parent | 5c7cf837395db7221bd1061eee230fd27f81e6ad (diff) | |
Store version of `deprecated` attribute in structured form
Diffstat (limited to 'src/librustdoc/json')
| -rw-r--r-- | src/librustdoc/json/conversions.rs | 3 |
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()) } } |
