Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit c47454d

Browse files
committed
fix some outdated rustc module names
1 parent 743973c commit c47454d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rls-rustc/src/ipc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ impl From<RpcChannel> for Client {
2323
pub struct IpcFileLoader(FileLoaderClient);
2424

2525
impl IpcFileLoader {
26-
pub fn into_boxed(self) -> Option<Box<dyn syntax::source_map::FileLoader + Send + Sync>> {
26+
pub fn into_boxed(self) -> Option<Box<dyn rustc_span::source_map::FileLoader + Send + Sync>> {
2727
Some(Box::new(self))
2828
}
2929
}
3030

31-
impl syntax::source_map::FileLoader for IpcFileLoader {
31+
impl rustc_span::source_map::FileLoader for IpcFileLoader {
3232
fn file_exists(&self, path: &Path) -> bool {
3333
self.0.file_exists(path.to_owned()).wait().unwrap()
3434
}

rls-rustc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ impl Callbacks for ShimCalls {
135135
src_path,
136136
disambiguator: sess.local_crate_disambiguator().to_fingerprint().as_value(),
137137
edition: match sess.edition() {
138-
syntax::edition::Edition::Edition2015 => Edition::Edition2015,
139-
syntax::edition::Edition::Edition2018 => Edition::Edition2018,
138+
rustc_span::edition::Edition::Edition2015 => Edition::Edition2015,
139+
rustc_span::edition::Edition::Edition2018 => Edition::Edition2018,
140140
},
141141
};
142142

0 commit comments

Comments
 (0)