Adjust a few more locations
diff --git a/rls/src/build/rustc.rs b/rls/src/build/rustc.rs
index 9f894ea..e684d03 100644
--- a/rls/src/build/rustc.rs
+++ b/rls/src/build/rustc.rs
@@ -239,7 +239,7 @@
let input = compiler.input();
let crate_name = queries.crate_name().unwrap().peek().clone();
- let cwd = &sess.working_dir.local_path_if_available();
+ let cwd = &sess.opts.working_dir.local_path_if_available();
let src_path = match input {
Input::File(ref name) => Some(name.to_path_buf()),
@@ -327,7 +327,7 @@
}
fn fetch_input_files(sess: &Session) -> Vec<PathBuf> {
- let cwd = &sess.working_dir.local_path_if_available();
+ let cwd = &sess.opts.working_dir.local_path_if_available();
sess.source_map()
.files()