@@ -147,7 +147,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
147
147
// Propagate unstability. This can happen even for non-staged-api crates in case
148
148
// -Zforce-unstable-if-unmarked is set.
149
149
if let Some ( stab) = self . parent_stab {
150
- if inherit_deprecation. yes ( ) && stab. level . is_unstable ( ) {
150
+ if inherit_deprecation. yes ( ) && stab. is_unstable ( ) {
151
151
self . index . stab_map . insert ( def_id, stab) ;
152
152
}
153
153
}
@@ -190,7 +190,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
190
190
if const_stab. is_none ( ) {
191
191
debug ! ( "annotate: const_stab not found, parent = {:?}" , self . parent_const_stab) ;
192
192
if let Some ( parent) = self . parent_const_stab {
193
- if parent. level . is_unstable ( ) {
193
+ if parent. is_const_unstable ( ) {
194
194
self . index . const_stab_map . insert ( def_id, parent) ;
195
195
}
196
196
}
@@ -272,9 +272,7 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
272
272
if stab. is_none ( ) {
273
273
debug ! ( "annotate: stab not found, parent = {:?}" , self . parent_stab) ;
274
274
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 ( ) {
278
276
self . index . stab_map . insert ( def_id, stab) ;
279
277
}
280
278
}
0 commit comments