From 30f75e396a82d9c84372d14708822d68f7cd36b3 Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Sun, 13 Nov 2016 15:56:23 -0500 Subject: do not use deprecated text for unstable docs --- src/libsyntax/attr.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 57a936bf9b0..2977e340a3c 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -789,9 +789,6 @@ fn find_stability_generic<'a, I>(diagnostic: &Handler, // Merge the deprecation info into the stability info if let Some(rustc_depr) = rustc_depr { if let Some(ref mut stab) = stab { - if let Unstable {reason: ref mut reason @ None, ..} = stab.level { - *reason = Some(rustc_depr.reason.clone()) - } stab.rustc_depr = Some(rustc_depr); } else { span_err!(diagnostic, item_sp, E0549, -- cgit 1.4.1-3-g733a5