rust/compiler
Matthias Krüger 576afec73a
Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov
Implement --check-cfg option (RFC 3013), take 2

This pull-request implement RFC 3013: Checking conditional compilation at compile time (https://github.com/rust-lang/rfcs/pull/3013) and is based on the previous attempt https://github.com/rust-lang/rust/pull/89346 by `@mwkmwkmwk` that was closed due to inactivity.

I have address all the review comments from the previous attempt and added some more tests.

cc https://github.com/rust-lang/rust/issues/82450
r? `@petrochenkov`
2022-02-18 23:23:10 +01:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_ast_lowering Rollup merge of #93877 - Amanieu:asm_fixes, r=nagisa 2022-02-18 23:23:08 +01:00
rustc_ast_passes Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_ast_pretty
rustc_attr Implement --check-cfg option (RFC 3013) 2022-02-16 13:03:12 +01:00
rustc_borrowck Auto merge of #94088 - oli-obk:revert, r=jackh726 2022-02-18 07:35:37 +00:00
rustc_builtin_macros Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank 2022-02-18 16:23:29 +01:00
rustc_codegen_cranelift Overhaul Const. 2022-02-15 16:19:59 +11:00
rustc_codegen_gcc Unconditionally update symbols 2022-02-10 18:27:18 +01:00
rustc_codegen_llvm Rollup merge of #91675 - ivanloz:memtagsan, r=nagisa 2022-02-18 23:23:03 +01:00
rustc_codegen_ssa Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_const_eval Support pretty printing of invalid constants 2022-02-16 00:38:59 +01:00
rustc_data_structures Address review comments. 2022-02-15 16:20:01 +11:00
rustc_driver Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov 2022-02-18 23:23:10 +01:00
rustc_error_codes Revert "Auto merge of #91403 - cjgillot:inherit-async, r=oli-obk" 2022-02-17 16:00:04 +00:00
rustc_errors
rustc_expand
rustc_feature Rollup merge of #93337 - Amanieu:asm_tracking, r=tmiasko 2022-02-17 23:00:55 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #93938 - BoxyUwU:fix_res_self_ty, r=lcnr 2022-02-14 12:26:43 +00:00
rustc_hir_pretty Rollup merge of #93746 - cjgillot:nodefii, r=nikomatsakis 2022-02-09 14:12:22 +09:00
rustc_incremental
rustc_index Adopt let_else in even more places 2022-02-16 22:43:39 +01:00
rustc_infer Rollup merge of #93892 - compiler-errors:issue-92917, r=jackh726,nikomatsakis 2022-02-18 23:23:09 +01:00
rustc_interface Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov 2022-02-18 23:23:10 +01:00
rustc_lexer
rustc_lint Overhaul Const. 2022-02-15 16:19:59 +11:00
rustc_lint_defs Implement --check-cfg option (RFC 3013) 2022-02-16 13:03:12 +01:00
rustc_llvm Rollup merge of #91675 - ivanloz:memtagsan, r=nagisa 2022-02-18 23:23:03 +01:00
rustc_log
rustc_macros
rustc_metadata rustdoc: Collect traits in scope for lang items 2022-02-18 16:11:23 +08:00
rustc_middle Rollup merge of #89892 - Nilstrieb:suggest-return-impl-trait, r=jackh726 2022-02-18 23:23:02 +01:00
rustc_mir_build use AllocId and Ty in ExprKind::StaticRef and delay ConstValue construction 2022-02-15 21:18:33 +01:00
rustc_mir_dataflow Overhaul TyS and Ty. 2022-02-15 16:03:24 +11:00
rustc_mir_transform Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_monomorphize Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_parse Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_parse_format Correctly mark the span of captured arguments in format_args!() 2022-02-16 07:34:06 +00:00
rustc_passes change to a struct variant 2022-02-12 11:23:53 +00:00
rustc_plugin_impl
rustc_privacy Overhaul Const. 2022-02-15 16:19:59 +11:00
rustc_query_impl Overhaul Const. 2022-02-15 16:19:59 +11:00
rustc_query_system Revert "Auto merge of #92007 - oli-obk:lazy_tait2, r=nikomatsakis" 2022-02-11 07:18:06 +00:00
rustc_resolve Rollup merge of #93634 - matthiaskrgr:clippy_complexity_jan_2022, r=oli-obk 2022-02-18 16:23:33 +01:00
rustc_save_analysis change to a struct variant 2022-02-12 11:23:53 +00:00
rustc_serialize
rustc_session Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov 2022-02-18 23:23:10 +01:00
rustc_span Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov 2022-02-18 23:23:10 +01:00
rustc_symbol_mangling Overhaul Const. 2022-02-15 16:19:59 +11:00
rustc_target Rollup merge of #93877 - Amanieu:asm_fixes, r=nagisa 2022-02-18 23:23:08 +01:00
rustc_trait_selection Rollup merge of #93892 - compiler-errors:issue-92917, r=jackh726,nikomatsakis 2022-02-18 23:23:09 +01:00
rustc_traits Overhaul Const. 2022-02-15 16:19:59 +11:00
rustc_ty_utils Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
rustc_type_ir Inline UnifyKey::index and UnifyKey::from_index 2022-02-15 19:07:06 +01:00
rustc_typeck Rollup merge of #91675 - ivanloz:memtagsan, r=nagisa 2022-02-18 23:23:03 +01:00