rust/compiler
Joshua Nelson 6eb4735acc Unify rustc and rustdoc parsing of cfg()
This extracts a new `parse_cfg` function that's used between both.

- Treat `#[doc(cfg(x), cfg(y))]` the same as `#[doc(cfg(x)]
  #[doc(cfg(y))]`. Previously it would be completely ignored.
- Treat `#[doc(inline, cfg(x))]` the same as `#[doc(inline)]
  #[doc(cfg(x))]`. Previously, the cfg would be ignored.
- Pass the cfg predicate through to rustc_expand to be validated

Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
2021-05-03 12:49:43 -04:00
..
rustc use jemallocator in rustc/rustdoc 2021-04-04 14:10:26 -07:00
rustc_apfloat Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
rustc_arena Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
rustc_ast Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis 2021-04-28 20:35:17 +00:00
rustc_ast_lowering Lower async fn in traits. 2021-04-13 20:57:44 +02:00
rustc_ast_passes Auto merge of #83713 - spastorino:revert-pub-macro-rules, r=nikomatsakis 2021-04-28 05:52:47 +00:00
rustc_ast_pretty Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
rustc_attr Allow specifying alignment for functions 2021-04-05 17:36:51 -04:00
rustc_builtin_macros adds feature gating of no_coverage at either crate- or function-level 2021-04-27 17:12:51 -07:00
rustc_codegen_cranelift Add more SIMD math.h intrinsics 2021-04-14 15:25:06 -07:00
rustc_codegen_llvm Derived Eq no longer shows uncovered 2021-04-27 11:11:56 -07:00
rustc_codegen_ssa Auto merge of #84498 - workingjubilee:update-grab-bag, r=Mark-Simulacrum 2021-04-28 02:45:03 +00:00
rustc_data_structures Auto merge of #84614 - RalfJung:daily, r=Mark-Simulacrum 2021-04-29 02:53:52 +00:00
rustc_driver Rollup merge of #83895 - eggyal:issue-83883, r=jyn514 2021-04-06 17:42:31 +02:00
rustc_error_codes remove const_fn from some error_code descriptions 2021-04-25 12:19:06 +02:00
rustc_errors Rollup merge of #84235 - klensy:styled-buffer, r=lcnr 2021-04-25 23:15:10 +02:00
rustc_expand Unify rustc and rustdoc parsing of cfg() 2021-05-03 12:49:43 -04:00
rustc_feature Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis 2021-04-28 20:35:17 +00:00
rustc_fs_util
rustc_graphviz Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
rustc_hir Auto merge of #84299 - lcnr:const-generics-defaults-name-res, r=varkor 2021-04-25 14:00:49 +00:00
rustc_hir_pretty Handle pretty printing of else if let clauses 2021-04-23 13:29:18 -04:00
rustc_incremental Also profile finishing the encoding. 2021-03-30 18:10:08 +02:00
rustc_index fix sanitizer tests 2021-04-25 11:08:33 +02:00
rustc_infer Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_interface Use tempfile 2021-04-23 15:33:57 -07:00
rustc_lexer Fix outdated crate names in compiler docs 2021-04-08 11:12:14 -05:00
rustc_lint Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis 2021-04-28 20:35:17 +00:00
rustc_lint_defs Typo 2021-04-20 09:30:28 -04:00
rustc_llvm RustWrapper: work around unification of diagnostic handlers 2021-04-22 15:46:47 -04:00
rustc_macros Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
rustc_metadata Rollup merge of #84450 - jyn514:missing-std, r=petrochenkov 2021-04-25 23:15:11 +02:00
rustc_middle Auto merge of #84562 - richkadel:issue-83601, r=tmandry 2021-04-28 13:05:16 +00:00
rustc_mir Remove extra word in rustc_mir docs 2021-04-28 09:53:32 -07:00
rustc_mir_build Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_parse Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis 2021-04-28 20:35:17 +00:00
rustc_parse_format Rollup merge of #83348 - osa1:issue83344, r=jackh726 2021-03-28 01:33:13 +09:00
rustc_passes Auto merge of #84546 - CohenArthur:fix-liveness-typo, r=jyn514 2021-04-26 11:18:25 +00:00
rustc_plugin_impl
rustc_privacy fix few typos 2021-04-19 15:57:08 +03:00
rustc_query_impl Introduce CompileMonoItem DepNode 2021-04-12 13:58:12 +02:00
rustc_query_system fix feature use in rustc libs 2021-04-18 22:05:45 +02:00
rustc_resolve Auto merge of #83713 - spastorino:revert-pub-macro-rules, r=nikomatsakis 2021-04-28 05:52:47 +00:00
rustc_save_analysis Remove hir::CrateItem. 2021-03-30 20:31:06 +02:00
rustc_serialize Auto merge of #83465 - michaelwoerister:safe-read_raw_bytes, r=cjgillot 2021-03-26 01:28:59 +00:00
rustc_session Rollup merge of #83519 - oli-obk:assign_shrink_your_normal_code, r=pnkfelix 2021-04-25 01:53:09 +09:00
rustc_span Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis 2021-04-28 20:35:17 +00:00
rustc_symbol_mangling Rollup merge of #80525 - devsnek:wasm64, r=nagisa 2021-04-05 00:24:23 +02:00
rustc_target Auto merge of #84310 - RalfJung:const-fn-feature-flags, r=oli-obk 2021-04-24 23:16:03 +00:00
rustc_trait_selection Make traits with GATs not object safe 2021-04-27 14:34:23 -04:00
rustc_traits Auto merge of #83207 - oli-obk:valtree2, r=lcnr 2021-04-02 10:28:12 +00:00
rustc_ty_utils move representability out of rustc_middle 2021-04-27 15:01:37 +02:00
rustc_type_ir Remove nightly features in rustc_type_ir 2021-04-03 10:00:09 +02:00
rustc_typeck Auto merge of #84562 - richkadel:issue-83601, r=tmandry 2021-04-28 13:05:16 +00:00