rust/compiler/rustc_passes/src
Matthias Krüger 313a668234
Rollup merge of #94635 - jhpratt:merge-deprecated-attrs, r=davidtwco
Merge `#[deprecated]` and `#[rustc_deprecated]`

The first commit makes "reason" an alias for "note" in `#[rustc_deprecated]`, while still prohibiting it in `#[deprecated]`.

The second commit changes "suggestion" to not just be a feature of `#[rustc_deprecated]`. This is placed behind the new `deprecated_suggestion` feature. This needs a tracking issue; let me know if this PR will be approved and I can create one.

The third commit is what permits `#[deprecated]` to be used when `#![feature(staged_api)]` is enabled. This isn't yet used in stdlib (only tests), as it would require duplicating all deprecation attributes until a bootstrap occurs. I intend to submit a follow-up PR that replaces all uses and removes the remaining `#[rustc_deprecated]` code after the next bootstrap.

`@rustbot` label +T-libs-api +C-feature-request +A-attributes +S-waiting-on-review
2022-03-10 12:20:51 +01:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Rollup merge of #94686 - ChayimFriedman2:issue-94629, r=jackh726 2022-03-09 06:38:51 +01:00
check_const.rs rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
dead.rs 5 - Make more use of let_chains 2022-02-28 15:52:36 -03:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
entry.rs Do not point at whole file missing fn main 2022-03-05 02:42:55 +00:00
hir_id_validator.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
hir_stats.rs Auto merge of #87648 - JulianKnodt:const_eq_constrain, r=oli-obk 2022-01-18 09:58:39 +00:00
intrinsicck.rs rustc_errors: let DiagnosticBuilder::emit return a "guarantee of emission". 2022-02-23 06:38:52 +00:00
lang_items.rs Clean up lang_items::extract 2022-01-09 13:41:04 -08:00
layout_test.rs Remove in_band_lifetimes for rustc_passes 2021-12-15 20:12:53 -07:00
lib.rs 5 - Make more use of let_chains 2022-02-28 15:52:36 -03:00
lib_features.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
liveness.rs 5 - Make more use of let_chains 2022-02-28 15:52:36 -03:00
loops.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
naked_functions.rs Reject unsupported naked functions 2022-01-21 17:38:21 +01:00
reachable.rs 5 - Make more use of let_chains 2022-02-28 15:52:36 -03:00
region.rs More comments and small cleanups 2022-01-18 14:25:26 -08:00
stability.rs Permit #[deprecated] in stdlib 2022-03-09 16:32:47 -05:00
upvars.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00
weak_lang_items.rs Replace NestedVisitorMap with NestedFilter 2022-01-16 16:02:36 -06:00