rust/compiler
Dylan DPC d1f5f1d156
Rollup merge of #83127 - Aaron1011:time-macros-impl-warn, r=petrochenkov
Introduce `proc_macro_back_compat` lint, and emit for `time-macros-impl`

Now that future-incompat-report support has landed in nightly Cargo, we
can start to make progress towards removing the various proc-macro
back-compat hacks that have accumulated in the compiler.

This PR introduces a new lint `proc_macro_back_compat`, which results in
a future-incompat-report entry being generated. All proc-macro
back-compat warnings will be grouped under this lint. Note that this
lint will never actually become a hard error - instead, we will remove
the special cases for various macros, which will cause older versions of
those crates to emit some other error.

I've added code to fire this lint for the `time-macros-impl` case. This
is the easiest case out of all of our current back-compat hacks - the
crate was renamed to `time-macros`, so seeing a filename with
`time-macros-impl` guarantees that an older version of the parent `time`
crate is in use.

When Cargo's future-incompat-report feature gets stabilized, affected
users will start to see future-incompat warnings when they build their
crates.
2021-03-15 16:22:57 +01:00
..
rustc Rollup merge of #82642 - sfackler:jemalloc-zone, r=pnkfelix 2021-03-08 13:13:22 +01:00
rustc_apfloat bumped smallvec deps 2021-02-14 18:03:11 +03:00
rustc_arena Update to rustc-rayon 0.3.1 2021-03-10 17:53:35 -08:00
rustc_ast Rollup merge of #83127 - Aaron1011:time-macros-impl-warn, r=petrochenkov 2021-03-15 16:22:57 +01:00
rustc_ast_lowering Auto merge of #82891 - cjgillot:monoparent, r=petrochenkov 2021-03-13 12:28:04 +00:00
rustc_ast_passes rustc_target: add "unwind" payloads to Abi 2021-03-09 14:38:29 -05:00
rustc_ast_pretty Rollup merge of #82238 - petrochenkov:nocratemod, r=Aaron1011 2021-02-19 02:49:08 +01:00
rustc_attr Auto merge of #71481 - estebank:inherit-stability, r=nikomatsakis 2021-03-05 05:28:07 +00:00
rustc_builtin_macros Bump recursion_limit in a few places 2021-03-14 23:02:01 -04:00
rustc_codegen_cranelift Auto merge of #76570 - cratelyn:implement-rfc-2945-c-unwind-abi, r=Amanieu 2021-03-10 16:44:04 +00:00
rustc_codegen_llvm Add support for storing code model to LLVM module IR 2021-03-12 11:02:25 +09:00
rustc_codegen_ssa Do not emit alloca for ZST local even if it is uninitialized 2021-03-13 18:01:14 -05:00
rustc_data_structures Auto merge of #82999 - cuviper:rustc-rayon-0.3.1, r=Mark-Simulacrum 2021-03-15 08:49:25 +00:00
rustc_driver Add -Z unpretty flag for the THIR 2021-03-11 19:42:40 +01:00
rustc_error_codes Rollup merge of #80527 - jyn514:rustdoc-lints, r=GuillaumeGomez 2021-03-04 20:01:01 +09:00
rustc_errors Change x64 size checks to not apply to x32. 2021-03-06 16:02:48 +00:00
rustc_expand Introduce proc_macro_back_compat lint, and emit for time-macros-impl 2021-03-14 21:31:46 -04:00
rustc_feature Auto merge of #76570 - cratelyn:implement-rfc-2945-c-unwind-abi, r=Amanieu 2021-03-10 16:44:04 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Remove unused opt_local_def_id_to_hir_id function 2021-03-14 01:37:13 -05:00
rustc_hir_pretty Use BTreeMap to store attributes. 2021-03-09 19:28:01 +01:00
rustc_incremental Deduplicate unchecked_attrs errors. 2021-03-09 19:28:00 +01:00
rustc_index Remove useless Clone bound in IndexVec. 2021-03-09 18:51:36 +01:00
rustc_infer Change x64 size checks to not apply to x32. 2021-03-06 16:02:48 +00:00
rustc_interface Auto merge of #82999 - cuviper:rustc-rayon-0.3.1, r=Mark-Simulacrum 2021-03-15 08:49:25 +00:00
rustc_lexer
rustc_lint Introduce proc_macro_back_compat lint, and emit for time-macros-impl 2021-03-14 21:31:46 -04:00
rustc_lint_defs Introduce proc_macro_back_compat lint, and emit for time-macros-impl 2021-03-14 21:31:46 -04:00
rustc_llvm Auto merge of #83044 - kubo39:set-llvm-code-model, r=nikic 2021-03-14 11:46:57 +00:00
rustc_macros Add inlining. 2021-03-11 12:24:43 +01:00
rustc_metadata Iterate on crate_inherent_impls for metadata. 2021-03-13 14:17:55 +01:00
rustc_middle Rollup merge of #83108 - jyn514:remove-unused, r=estebank 2021-03-15 16:22:53 +01:00
rustc_mir remove unnecessary condition 2021-03-14 20:21:20 -04:00
rustc_mir_build Remove duplicate asserts, replace eq assert with assert_eq 2021-03-14 17:06:18 +03:00
rustc_parse Auto merge of #83074 - Aaron1011:new-sort-fix, r=jackh726 2021-03-15 06:20:24 +00:00
rustc_parse_format
rustc_passes Rollup merge of #83098 - camelid:more-doc-attr-check, r=davidtwco 2021-03-15 16:22:52 +01:00
rustc_plugin_impl Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
rustc_privacy Remove hir::MacroDef::attrs. 2021-03-09 19:09:36 +01:00
rustc_query_impl Update to rustc-rayon 0.3.1 2021-03-10 17:53:35 -08:00
rustc_query_system Auto merge of #82999 - cuviper:rustc-rayon-0.3.1, r=Mark-Simulacrum 2021-03-15 08:49:25 +00:00
rustc_resolve Rollup merge of #82989 - Smittyvb:other-lang-literal-errors, r=varkor 2021-03-15 16:22:50 +01:00
rustc_save_analysis Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
rustc_serialize Update the bootstrap compiler 2021-02-20 17:19:30 -05:00
rustc_session Bump recursion_limit in a few places 2021-03-14 23:02:01 -04:00
rustc_span expand: Resolve and expand inner attributes on out-of-line modules 2021-03-14 18:10:29 +03:00
rustc_symbol_mangling rustc_target: add "unwind" payloads to Abi 2021-03-09 14:38:29 -05:00
rustc_target Auto merge of #82982 - Dylan-DPC:rollup-mt497z7, r=Dylan-DPC 2021-03-10 19:12:53 +00:00
rustc_trait_selection Auto merge of #82935 - henryboisdequin:diagnostic-cleanups, r=estebank 2021-03-12 09:05:38 +00:00
rustc_traits Fix tests 2021-03-03 11:22:44 +01:00
rustc_ty_utils Auto merge of #82159 - BoxyUwU:uwu, r=varkor 2021-02-24 21:54:52 +00:00
rustc_type_ir New pass to deduplicate blocks 2021-02-21 21:51:54 +01:00
rustc_typeck Rollup merge of #83113 - osa1:refactor_try_index_step, r=jonas-schievink 2021-03-15 16:22:56 +01:00