Skip to content

Commit 55e435c

Browse files
Mark-Simulacrumcalebcartwright
authored andcommitted
Fix compilation with rust-lang/rust#87990
1 parent aef1989 commit 55e435c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rls-rustc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Callbacks for ShimCalls {
121121
let sess = compiler.session();
122122
let input = compiler.input();
123123

124-
let cwd = &sess.working_dir.local_path_if_available();
124+
let cwd = &sess.opts.working_dir.local_path_if_available();
125125

126126
let src_path = match input {
127127
Input::File(ref name) => Some(name.to_path_buf()),
@@ -209,7 +209,7 @@ impl Callbacks for ShimCalls {
209209

210210
#[cfg(feature = "ipc")]
211211
fn fetch_input_files(sess: &rustc_session::Session) -> Vec<PathBuf> {
212-
let cwd = &sess.working_dir.local_path_if_available();
212+
let cwd = &sess.opts.working_dir.local_path_if_available();
213213

214214
sess.source_map()
215215
.files()

0 commit comments

Comments
 (0)