@@ -147,7 +147,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
147147 // Propagate unstability. This can happen even for non-staged-api crates in case
148148 // -Zforce-unstable-if-unmarked is set.
149149 if let Some ( stab) = self . parent_stab {
150- if inherit_deprecation. yes ( ) && stab. level . is_unstable ( ) {
150+ if inherit_deprecation. yes ( ) && stab. is_unstable ( ) {
151151 self . index . stab_map . insert ( def_id, stab) ;
152152 }
153153 }
@@ -190,7 +190,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
190190 if const_stab. is_none ( ) {
191191 debug ! ( "annotate: const_stab not found, parent = {:?}" , self . parent_const_stab) ;
192192 if let Some ( parent) = self . parent_const_stab {
193- if parent. level . is_unstable ( ) {
193+ if parent. is_const_unstable ( ) {
194194 self . index . const_stab_map . insert ( def_id, parent) ;
195195 }
196196 }
@@ -272,9 +272,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
272272 if stab. is_none ( ) {
273273 debug ! ( "annotate: stab not found, parent = {:?}" , self . parent_stab) ;
274274 if let Some ( stab) = self . parent_stab {
275- if inherit_deprecation. yes ( ) && stab. level . is_unstable ( )
276- || inherit_from_parent. yes ( )
277- {
275+ if inherit_deprecation. yes ( ) && stab. is_unstable ( ) || inherit_from_parent. yes ( ) {
278276 self . index . stab_map . insert ( def_id, stab) ;
279277 }
280278 }
0 commit comments