1
Fork 0
rust/compiler/rustc_expand/src
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
..
mbe Auto merge of #83386 - mark-i-m:stabilize-pat2015, r=nikomatsakis 2021-04-28 20:35:17 +00:00
mut_visit ast: Stop using Mod in Crate 2021-02-18 13:07:49 +03:00
parse ast: Keep expansion status for out-of-line module items 2021-02-18 13:07:49 +03:00
tokenstream Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
base.rs Implement token-based handling of attributes during expansion 2021-04-11 01:31:36 -04:00
build.rs Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
config.rs Unify rustc and rustdoc parsing of cfg() 2021-05-03 12:49:43 -04:00
expand.rs Implement token-based handling of attributes during expansion 2021-04-11 01:31:36 -04:00
lib.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
mbe.rs fix few typos 2021-04-19 15:57:08 +03:00
module.rs expand: Resolve and expand inner attributes on out-of-line modules 2021-03-14 18:10:29 +03:00
placeholders.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
proc_macro.rs Implement token-based handling of attributes during expansion 2021-04-11 01:31:36 -04:00
proc_macro_server.rs Extend proc_macro_back_compat lint to js-sys 2021-03-19 14:40:20 -04:00
tests.rs remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00