rust/compiler
bors eaadb8947b Auto merge of #100591 - est31:stabilization_placeholder, r=Mark-Simulacrum
Require stabilizations to use a placeholder instead of writing out stabilization version

Implements the idea from [this](https://rust-lang.zulipchat.com/#narrow/stream/241545-t-release/topic/libs.20stabilization.20placeholder) zulip stream.

It's a common phenomenon that feature stabilizations don't make it into a particular release, but the version is still inaccurate. Often this is caught in the PR, but it can also require subsequent changes to adjust/correct the version. A list with examples of such PRs is given in #100577, but it's far from complete.

This PR requires stabilization PRs to use the placeholder `CURRENT_RUSTC_VERSION`, enforced via tidy tooling. The PR also adds a tool that replaces the placeholder with the version number. It can be invoked via `./x.py run src/tools/replace-version-placeholder` and is supposed to be ran upon beta branching as well as version bumping and any backports to the beta branch.  I filed PRs to the dev guide and forge to document these changes in the release and stabilization workflows:

* The [dev guide](https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#determining-the-stabilization-version) PR: https://github.com/rust-lang/rustc-dev-guide/pull/1443
* The [std dev guide](https://std-dev-guide.rust-lang.org/) PR: https://github.com/rust-lang/std-dev-guide/pull/43
* The [forge](https://github.com/rust-lang/rust-forge) PR: https://github.com/rust-lang/rust-forge/pull/643

Alternative to #100577 which added checking.
2022-08-27 16:57:19 +00:00
..
rustc
rustc_apfloat
rustc_arena Rollup merge of #100822 - WaffleLapkin:no_offset_question_mark, r=scottmcm 2022-08-21 16:54:07 +02:00
rustc_ast Rollup merge of #100978 - nnethercote:fix-100948, r=petrochenkov 2022-08-26 09:51:46 +09:00
rustc_ast_lowering Rollup merge of #100724 - JeanCASPAR:migrate-ast_lowering-to-session-diagnostic, r=davidtwco 2022-08-26 15:56:21 -07:00
rustc_ast_passes Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petrochenkov 2022-08-25 08:50:54 +09:00
rustc_ast_pretty
rustc_attr Move LitKind logic to session_diagnostics module 2022-08-22 20:19:20 +02:00
rustc_borrowck diag-mig 2022-08-26 10:32:59 +08:00
rustc_builtin_macros Rollup merge of #100909 - nnethercote:minor-ast-LitKind-improvement, r=petrochenkov 2022-08-23 20:40:09 +05:30
rustc_codegen_cranelift Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_codegen_gcc Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_codegen_llvm Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_codegen_ssa Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_const_eval Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_data_structures get rid of RefCell in TransitiveRelation 2022-08-22 18:08:46 +08:00
rustc_driver Code cleaning 2022-08-25 19:04:00 +02:00
rustc_error_codes Stabilize #![feature(label_break_value)] 2022-08-23 21:14:12 -05:00
rustc_error_messages Rollup merge of #100900 - AndyJado:diag-migrate, r=davidtwco 2022-08-26 15:56:30 -07:00
rustc_errors errors: IntoDiagnosticArg for io::Error/paths 2022-08-24 06:50:44 +09:00
rustc_expand Remove the symbol from ast::LitKind::Err. 2022-08-23 16:56:24 +10:00
rustc_feature Adjust label break value stabilization version to CURRENT_RUSTC_VERSION 2022-08-27 17:36:13 +02:00
rustc_fs_util
rustc_graphviz
rustc_hir Merge implementations of HIR fn_decl and fn_sig. 2022-08-26 21:38:20 +02:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petrochenkov 2022-08-25 08:50:54 +09:00
rustc_interface Rollup merge of #100808 - SkiFire13:migrate_diagnostics_rustc_interface, r=davidtwco 2022-08-25 08:50:58 +09:00
rustc_lexer
rustc_lint Rollup merge of #100776 - Rejyr:diagnostic-migration-rustc-lint, r=davidtwco 2022-08-26 15:56:25 -07:00
rustc_lint_defs Rollup merge of #99784 - est31:deny_cfg_attr_crate_type_name, r=Mark-Simulacrum 2022-08-27 13:14:16 +09:00
rustc_llvm Auto merge of #100627 - krasimirgg:lto-llvm-16, r=cuviper 2022-08-21 07:19:49 +00:00
rustc_log
rustc_macros Auto merge of #100946 - jyn514:query-system-3, r=cjgillot 2022-08-27 08:53:24 +00:00
rustc_metadata Implementation of import_name_type 2022-08-26 09:15:35 -07:00
rustc_middle Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_mir_build Auto merge of #100944 - nnethercote:shrink-thir-Expr, r=cjgillot 2022-08-26 10:00:27 +00:00
rustc_mir_dataflow Rollup merge of #100744 - 5225225:migrate-rustc-mir-dataflow, r=davidtwco 2022-08-26 15:56:24 -07:00
rustc_mir_transform Rollup merge of #101057 - cjgillot:one-fn-sig, r=compiler-errors 2022-08-27 13:14:24 +09:00
rustc_monomorphize Minor syntax and formatting update to doc comment 2022-08-19 10:53:18 -07:00
rustc_parse Rollup merge of #100188 - chenyukang:fix-issue-100165, r=estebank 2022-08-25 08:50:56 +09:00
rustc_parse_format Fix rustc_parse_format precision & width spans 2022-08-21 20:21:45 +00:00
rustc_passes Expand the version placeholder to the current version in stability attribute parsing 2022-08-27 17:08:52 +02:00
rustc_plugin_impl Migrate rustc_plugin_impl to SessionDiagnostic 2022-08-22 16:35:05 +01:00
rustc_privacy Replace #[lint/warning/error] with #[diag] 2022-08-21 09:17:43 +02:00
rustc_query_impl Auto merge of #100946 - jyn514:query-system-3, r=cjgillot 2022-08-27 08:53:24 +00:00
rustc_query_system add depth_limit in QueryVTable 2022-08-24 09:42:12 +08:00
rustc_resolve Rollup merge of #100817 - vincenzopalazzo:macros/bool_spelling_sugg, r=davidtwco 2022-08-26 15:56:26 -07:00
rustc_save_analysis save_analysis: Migrate diagnostics 2022-08-24 06:50:16 +09:00
rustc_serialize Adding support for rustc_serialize encode and decode for Box and Vec that use a custom allocator 2022-08-25 20:19:49 +00:00
rustc_session Auto merge of #100732 - dpaoliello:import_name_type, r=wesleywiser 2022-08-27 03:19:12 +00:00
rustc_smir
rustc_span Implementation of import_name_type 2022-08-26 09:15:35 -07:00
rustc_symbol_mangling Change FnAbi::fixed_count to a u32. 2022-08-26 10:29:40 +10:00
rustc_target Auto merge of #100999 - nnethercote:shrink-FnAbi, r=bjorn3 2022-08-27 14:00:53 +00:00
rustc_trait_selection Auto merge of #100989 - lcnr:implied-bounds-uwu, r=spastorino 2022-08-27 11:37:06 +00:00
rustc_traits
rustc_transmute Rollup merge of #100604 - dtolnay:okorerr, r=m-ou-se 2022-08-26 09:51:44 +09:00
rustc_ty_utils Migrate rustc_ty_utils to use SessionDiagnostic 2022-08-26 14:36:51 +01:00
rustc_type_ir
rustc_typeck Rollup merge of #101057 - cjgillot:one-fn-sig, r=compiler-errors 2022-08-27 13:14:24 +09:00