Skip to content

Commit 21a3d29

Browse files
rustc_depr no longer needs to be connected to stability
We can deprecate non-stable/unstable items.
1 parent c5cc29b commit 21a3d29

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/librustc_attr/builtin.rs

-16
Original file line numberDiff line numberDiff line change
@@ -495,22 +495,6 @@ where
495495
}
496496
}
497497

498-
// Merge the deprecation info into the stability info
499-
if let Some(rustc_depr) = rustc_depr {
500-
if let Some(ref mut stab) = stab {
501-
stab.rustc_depr = Some(rustc_depr);
502-
} else {
503-
struct_span_err!(
504-
diagnostic,
505-
item_sp,
506-
E0549,
507-
"rustc_deprecated attribute must be paired with \
508-
either stable or unstable attribute"
509-
)
510-
.emit();
511-
}
512-
}
513-
514498
// Merge the const-unstable info into the stability info
515499
if promotable || allow_const_fn_ptr {
516500
if let Some(ref mut stab) = const_stab {

0 commit comments

Comments
 (0)