mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Refactor CfgOptions inside
This commit is contained in:
parent
a49ad47e5a
commit
43f09ad36c
3 changed files with 20 additions and 13 deletions
|
@ -94,7 +94,6 @@ impl MockAnalysis {
|
|||
assert!(path.starts_with('/'));
|
||||
let path = RelativePathBuf::from_path(&path[1..]).unwrap();
|
||||
let file_id = FileId(i as u32 + 1);
|
||||
// FIXME: cfg options
|
||||
let cfg_options = CfgOptions::default();
|
||||
if path == "/lib.rs" || path == "/main.rs" {
|
||||
root_crate = Some(crate_graph.add_crate_root(file_id, Edition2018, cfg_options));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue