diff options
Diffstat (limited to 'crates/ra_hir/src/nameres')
-rw-r--r-- | crates/ra_hir/src/nameres/tests.rs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/crates/ra_hir/src/nameres/tests.rs b/crates/ra_hir/src/nameres/tests.rs index 208c2f16f..8c6b40aaf 100644 --- a/crates/ra_hir/src/nameres/tests.rs +++ b/crates/ra_hir/src/nameres/tests.rs | |||
@@ -7,7 +7,6 @@ mod mod_resolution; | |||
7 | use std::sync::Arc; | 7 | use std::sync::Arc; |
8 | 8 | ||
9 | use insta::assert_snapshot; | 9 | use insta::assert_snapshot; |
10 | use ra_cfg::CfgOptions; | ||
11 | use ra_db::SourceDatabase; | 10 | use ra_db::SourceDatabase; |
12 | use test_utils::covers; | 11 | use test_utils::covers; |
13 | 12 | ||
@@ -561,13 +560,11 @@ fn cfg_test() { | |||
561 | "#, | 560 | "#, |
562 | crate_graph! { | 561 | crate_graph! { |
563 | "main": ("/main.rs", ["std"]), | 562 | "main": ("/main.rs", ["std"]), |
564 | "std": ("/lib.rs", [], { | 563 | "std": ("/lib.rs", [], cfg = { |
565 | let mut opts = CfgOptions::default(); | 564 | "test", |
566 | opts.insert_atom("test".into()); | 565 | "feature" = "foo", |
567 | opts.insert_key_value("feature".into(), "foo".into()); | 566 | "feature" = "bar", |
568 | opts.insert_key_value("feature".into(), "bar".into()); | 567 | "opt" = "42", |
569 | opts.insert_key_value("opt".into(), "42".into()); | ||
570 | opts | ||
571 | }), | 568 | }), |
572 | }, | 569 | }, |
573 | ); | 570 | ); |