We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0346833 commit 704d598Copy full SHA for 704d598
src/librustdoc/clean/mod.rs
@@ -2700,9 +2700,14 @@ impl Clean<Stability> for attr::Stability {
2700
Some(attr::Deprecation {ref since, ..}) => since.to_string(),
2701
_=> "".to_string(),
2702
},
2703
- reason: match self.level {
2704
- attr::Unstable {reason: Some(ref reason), ..} => reason.to_string(),
2705
- _ => "".to_string(),
+ reason: {
+ if let Some(ref depr) = self.depr {
+ depr.reason.to_string()
2706
+ } else if let attr::Unstable {reason: Some(ref reason), ..} = self.level {
2707
+ reason.to_string()
2708
+ } else {
2709
+ "".to_string()
2710
+ }
2711
2712
issue: match self.level {
2713
attr::Unstable {issue, ..} => Some(issue),
0 commit comments