rustc_depr no longer needs to be connected to stability
We can deprecate non-stable/unstable items.
This commit is contained in:
parent
c5cc29b0e0
commit
21a3d294dc
1 changed files with 0 additions and 16 deletions
|
|
@ -495,22 +495,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
// Merge the deprecation info into the stability info
|
||||
if let Some(rustc_depr) = rustc_depr {
|
||||
if let Some(ref mut stab) = stab {
|
||||
stab.rustc_depr = Some(rustc_depr);
|
||||
} else {
|
||||
struct_span_err!(
|
||||
diagnostic,
|
||||
item_sp,
|
||||
E0549,
|
||||
"rustc_deprecated attribute must be paired with \
|
||||
either stable or unstable attribute"
|
||||
)
|
||||
.emit();
|
||||
}
|
||||
}
|
||||
|
||||
// Merge the const-unstable info into the stability info
|
||||
if promotable || allow_const_fn_ptr {
|
||||
if let Some(ref mut stab) = const_stab {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue