diff options
author | uHOOCCOOHu <[email protected]> | 2019-10-02 18:20:08 +0100 |
---|---|---|
committer | uHOOCCOOHu <[email protected]> | 2019-10-02 19:28:02 +0100 |
commit | 43f09ad36ccc1c53c78a66274693e53161c9b2fa (patch) | |
tree | a7fca4f85579ed6881ffc697b77a47347dd09b4b /crates/ra_ide_api | |
parent | a49ad47e5afa5950f92b77badc6679295101328a (diff) |
Refactor CfgOptions inside
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/mock_analysis.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/mock_analysis.rs b/crates/ra_ide_api/src/mock_analysis.rs index 13258b63d..80b71894c 100644 --- a/crates/ra_ide_api/src/mock_analysis.rs +++ b/crates/ra_ide_api/src/mock_analysis.rs | |||
@@ -94,7 +94,6 @@ impl MockAnalysis { | |||
94 | assert!(path.starts_with('/')); | 94 | assert!(path.starts_with('/')); |
95 | let path = RelativePathBuf::from_path(&path[1..]).unwrap(); | 95 | let path = RelativePathBuf::from_path(&path[1..]).unwrap(); |
96 | let file_id = FileId(i as u32 + 1); | 96 | let file_id = FileId(i as u32 + 1); |
97 | // FIXME: cfg options | ||
98 | let cfg_options = CfgOptions::default(); | 97 | let cfg_options = CfgOptions::default(); |
99 | if path == "/lib.rs" || path == "/main.rs" { | 98 | if path == "/lib.rs" || path == "/main.rs" { |
100 | root_crate = Some(crate_graph.add_crate_root(file_id, Edition2018, cfg_options)); | 99 | root_crate = Some(crate_graph.add_crate_root(file_id, Edition2018, cfg_options)); |