aboutsummaryrefslogtreecommitdiff
path: root/crates/cfg/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement a config override for the default #[cfg(test)] in cargo cratesJade2021-06-191-0/+1
| | | | | | | | Fixes crates which vanish when the 'test' cfg atom is set. Fix #7243. Fix #9203. Fix #7225.
* Fix libcore not being included in rust-lang/rust module treeJade2021-06-191-1/+15
| | | | | | | | | | | If you are opening libcore from rust-lang/rust as opposed to e.g. goto definition from some other crate which would use the sysroot instance of libcore, a `#![cfg(not(test))]` would previously have made all the code excluded from the module tree, breaking the editor experience. This puts in a slight hack that checks for the crate name "core" and turns off `#[cfg(test)]`.
* tree-wide: make rustdoc links spiky so they are clickableJade2021-06-141-1/+1
|
* internal: expose cfg attrs from hir::CrateAleksey Kladov2021-05-071-1/+1
|
* Remove dead codeAleksey Kladov2020-11-171-6/+0
|
* cfg: move tests to separate fileJonas Schievink2020-10-231-0/+2
| | | | | that way we don't have to re-check the entire project when a test is changed
* Fix typoJonas Schievink2020-10-221-1/+1
|
* Implement DNF-based `#[cfg]` introspectionJonas Schievink2020-10-221-0/+110
|
* Simplify cfg representationJonas Schievink2020-10-211-15/+7
|
* Rename ra_cfg -> cfgAleksey Kladov2020-08-131-0/+51