rust/crates/ra_syntax
bors[bot] ae6305b90c
Merge #1928
1928: Support `#[cfg(..)]` r=matklad a=oxalica

This PR implement `#[cfg(..)]` conditional compilation. It read default cfg options from `rustc --print cfg` with also hard-coded `test` and `debug_assertion` enabled.
Front-end settings are **not** included in this PR.

There is also a known issue that inner control attributes are totally ignored. I think it is **not** a part of `cfg` and create a separated issue for it. #1949

Fixes #1920 

Related: #1073 


Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
Co-authored-by: oxalica <oxalicc@pm.me>
2019-10-05 14:25:59 +00:00
..
fuzz Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
src Merge #1928 2019-10-05 14:25:59 +00:00
test_data Fix parsing of block expressions in "forbid_structs" contexts. 2019-10-03 00:39:52 -07:00
Cargo.toml Start simplifying editing API 2019-09-26 22:22:08 +03:00