Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improve completion of cfg attributes | Jamie Cunliffe | 2021-06-21 | 1 | -0/+20 |
| | | | | | | | | | | | | The completion of cfg will look at the enabled cfg keys when performing completion. It will also look crate features when completing a feature cfg option. A fixed list of known values for some cfg options are provided. For unknown keys it will look at the enabled values for that cfg key, which means that completion will only show enabled options for those. | ||||
* | Implement a config override for the default #[cfg(test)] in cargo crates | Jade | 2021-06-19 | 1 | -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 tree | Jade | 2021-06-19 | 1 | -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 clickable | Jade | 2021-06-14 | 2 | -2/+2 |
| | |||||
* | internal: expose cfg attrs from hir::Crate | Aleksey Kladov | 2021-05-07 | 1 | -1/+1 |
| | |||||
* | Make `ast_to_token_tree` infallible | Jonas Schievink | 2021-04-04 | 1 | -4/+4 |
| | | | | It could never return `None`, so reflect that in the return type | ||||
* | a lot of clippy::style fixes | Matthias Krüger | 2021-03-21 | 1 | -4/+4 |
| | |||||
* | Add runnables::related_tests | vsrs | 2021-02-27 | 1 | -1/+1 |
| | |||||
* | Remove some redundant allocations | Jeremy Kolb | 2020-12-12 | 1 | -1/+1 |
| | |||||
* | Remove dead code | Aleksey Kladov | 2020-11-17 | 1 | -6/+0 |
| | |||||
* | cfg: move tests to separate file | Jonas Schievink | 2020-10-23 | 4 | -208/+195 |
| | | | | | that way we don't have to re-check the entire project when a test is changed | ||||
* | Reorder items | Jonas Schievink | 2020-10-23 | 1 | -9/+9 |
| | |||||
* | Update crates/cfg/src/cfg_expr.rs | Jonas Schievink | 2020-10-22 | 1 | -1/+1 |
| | | | Co-authored-by: Aleksey Kladov <[email protected]> | ||||
* | Fix typo | Jonas Schievink | 2020-10-22 | 2 | -1/+2 |
| | |||||
* | Implement DNF-based `#[cfg]` introspection | Jonas Schievink | 2020-10-22 | 3 | -2/+620 |
| | |||||
* | Simplify cfg representation | Jonas Schievink | 2020-10-21 | 2 | -29/+37 |
| | |||||
* | Rename ra_cfg -> cfg | Aleksey Kladov | 2020-08-13 | 2 | -0/+184 |