Refactor CfgOptions inside

This commit is contained in:
uHOOCCOOHu 2019-10-03 01:20:08 +08:00
parent a49ad47e5a
commit 43f09ad36c
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
3 changed files with 20 additions and 13 deletions

View file

@ -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));