rust-analyzer/crates/ra_hir/src/ty
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
..
infer Add SubstsBuilder 2019-09-26 23:03:39 +02:00
tests Support all coercion places 2019-09-26 06:16:58 +08:00
traits Add SubstsBuilder 2019-09-26 23:03:39 +02:00
autoderef.rs Add SubstsBuilder 2019-09-26 23:03:39 +02:00
display.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
infer.rs Handle divergence in type inference for blocks 2019-10-02 17:31:34 +03:00
lower.rs Add SubstsBuilder 2019-09-26 23:03:39 +02:00
method_resolution.rs Add SubstsBuilder 2019-09-26 23:03:39 +02:00
op.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
primitive.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
tests.rs Merge #1928 2019-10-05 14:25:59 +00:00
traits.rs correctly reset chalk state after a panic 2019-09-28 18:49:00 +03:00