We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5cc29b commit 21a3d29Copy full SHA for 21a3d29
src/librustc_attr/builtin.rs
@@ -495,22 +495,6 @@ where
495
}
496
497
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
-
514
// Merge the const-unstable info into the stability info
515
if promotable || allow_const_fn_ptr {
516
if let Some(ref mut stab) = const_stab {
0 commit comments