rust/compiler
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
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Ignore 2022-03-05 21:20:12 -05:00
rustc_ast_lowering remove unnecessary .. patterns 2022-03-07 02:18:36 +09:00
rustc_ast_passes Rollup merge of #94635 - jhpratt:merge-deprecated-attrs, r=davidtwco 2022-03-10 12:20:51 +01:00
rustc_ast_pretty Change syntax for TyAlias where clauses 2022-03-05 13:13:45 -05:00
rustc_attr Rollup merge of #94635 - jhpratt:merge-deprecated-attrs, r=davidtwco 2022-03-10 12:20:51 +01:00
rustc_borrowck Auto merge of #94737 - lcnr:pass-stuff-by-value, r=davidtwco 2022-03-10 00:15:39 +00:00
rustc_builtin_macros Change syntax for TyAlias where clauses 2022-03-05 13:13:45 -05:00
rustc_codegen_cranelift Clarify Layout interning. 2022-03-07 13:41:47 +11:00
rustc_codegen_gcc Auto merge of #94690 - nnethercote:clarify-Layout-interning, r=fee1-dead 2022-03-07 15:25:42 +00:00
rustc_codegen_llvm add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
rustc_codegen_ssa Clarify Layout interning. 2022-03-07 13:41:47 +11:00
rustc_const_eval normalization change and rebase 2022-03-09 11:33:11 +01:00
rustc_data_structures add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
rustc_driver Rollup merge of #93913 - bjorn3:remove_everybody_loops, r=jackh726 2022-03-04 02:06:38 +01:00
rustc_error_codes Rollup merge of #94555 - cuishuang:master, r=oli-obk 2022-03-03 20:01:48 +01:00
rustc_errors diagnostics: only talk about Cargo.toml if running under Cargo 2022-03-07 10:54:17 -07:00
rustc_expand Auto merge of #94096 - cjgillot:ensure-stability, r=lcnr 2022-03-04 05:49:14 +00:00
rustc_feature Rollup merge of #94635 - jhpratt:merge-deprecated-attrs, r=davidtwco 2022-03-10 12:20:51 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
rustc_hir_pretty resolve: Fix incorrect results of opt_def_kind query for some built-in macros 2022-02-24 22:54:36 +03:00
rustc_incremental all: fix some typos 2022-03-03 19:47:23 +08:00
rustc_index Add comment linking to closed PR for future optimizers 2022-03-07 19:06:42 +01:00
rustc_infer Auto merge of #94737 - lcnr:pass-stuff-by-value, r=davidtwco 2022-03-10 00:15:39 +00:00
rustc_interface Rollup merge of #94362 - Urgau:check-cfg-values, r=petrochenkov 2022-03-04 22:58:34 +01:00
rustc_lexer Improve scan_escape. 2022-02-24 17:01:01 +11:00
rustc_lint Rollup merge of #94586 - sunfishcode:sunfishcode/io-lifetimes-tests, r=davidtwco 2022-03-08 11:04:53 +01:00
rustc_lint_defs Change to lint 2022-03-05 13:15:00 -05:00
rustc_llvm Remove build_helper 2022-03-05 15:31:22 +01:00
rustc_log
rustc_macros add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
rustc_metadata Clarify Layout interning. 2022-03-07 13:41:47 +11:00
rustc_middle Auto merge of #94059 - b-naber:constantkind-val-transformation, r=lcnr 2022-03-10 05:53:59 +00:00
rustc_mir_build Auto merge of #94059 - b-naber:constantkind-val-transformation, r=lcnr 2022-03-10 05:53:59 +00:00
rustc_mir_dataflow add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
rustc_mir_transform add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
rustc_monomorphize Introduce ConstAllocation. 2022-03-07 08:25:50 +11:00
rustc_parse diagnostics: only talk about Cargo.toml if running under Cargo 2022-03-07 10:54:17 -07:00
rustc_parse_format
rustc_passes Rollup merge of #94635 - jhpratt:merge-deprecated-attrs, r=davidtwco 2022-03-10 12:20:51 +01:00
rustc_plugin_impl
rustc_privacy remove unnecessary .. patterns 2022-03-07 02:18:36 +09:00
rustc_query_impl Auto merge of #94084 - Mark-Simulacrum:drop-sharded, r=cjgillot 2022-02-27 14:04:07 +00:00
rustc_query_system rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
rustc_resolve Rollup merge of #94595 - TaKO8Ki:fix-invalid-unresolved-imports-errors-for-asterisk-wildcard-syntax, r=estebank 2022-03-04 22:58:35 +01:00
rustc_save_analysis Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_serialize
rustc_session Add miri to the well known conditional compilation names and values 2022-03-09 16:58:07 +01:00
rustc_span Rollup merge of #94635 - jhpratt:merge-deprecated-attrs, r=davidtwco 2022-03-10 12:20:51 +01:00
rustc_symbol_mangling Introduce ConstAllocation. 2022-03-07 08:25:50 +11:00
rustc_target Clarify Layout interning. 2022-03-07 13:41:47 +11:00
rustc_trait_selection normalization change and rebase 2022-03-09 11:33:11 +01:00
rustc_traits
rustc_ty_utils rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
rustc_type_ir
rustc_typeck Rollup merge of #92150 - compiler-errors:better_usize_to_wide_ptr_cast, r=petrochenkov 2022-03-10 12:20:50 +01:00