mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Allow declaring cfg groups in rust-project.json, to help sharing common cfgs
This commit is contained in:
parent
0daeb5c0b0
commit
2607c09fdd
5 changed files with 619 additions and 4 deletions
|
@ -233,6 +233,12 @@ fn rust_project_hello_world_project_model() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rust_project_cfg_groups() {
|
||||
let (crate_graph, _proc_macros) = load_rust_project("cfg-groups.json");
|
||||
check_crate_graph(crate_graph, expect_file!["../test_data/output/rust_project_cfg_groups.txt"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rust_project_is_proc_macro_has_proc_macro_dep() {
|
||||
let (crate_graph, _proc_macros) = load_rust_project("is-proc-macro-project.json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue