aboutsummaryrefslogtreecommitdiff
path: root/crates/cfg/src
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-142-2/+2
|
* internal: expose cfg attrs from hir::CrateAleksey Kladov2021-05-071-1/+1
|
* Make `ast_to_token_tree` infallibleJonas Schievink2021-04-041-4/+4
| | | | It could never return `None`, so reflect that in the return type
* a lot of clippy::style fixesMatthias Krüger2021-03-211-4/+4
|
* Add runnables::related_testsvsrs2021-02-271-1/+1
|
* Remove some redundant allocationsJeremy Kolb2020-12-121-1/+1
|
* Remove dead codeAleksey Kladov2020-11-171-6/+0
|
* cfg: move tests to separate fileJonas Schievink2020-10-234-208/+195
| | | | | that way we don't have to re-check the entire project when a test is changed
* Reorder itemsJonas Schievink2020-10-231-9/+9
|
* Update crates/cfg/src/cfg_expr.rsJonas Schievink2020-10-221-1/+1
| | | Co-authored-by: Aleksey Kladov <[email protected]>
* Fix typoJonas Schievink2020-10-222-1/+2
|
* Implement DNF-based `#[cfg]` introspectionJonas Schievink2020-10-223-2/+620
|
* Simplify cfg representationJonas Schievink2020-10-212-29/+37
|
* Rename ra_cfg -> cfgAleksey Kladov2020-08-132-0/+184