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

Commit 52d4865

Browse files
committed
Update rls-rustc and merge ty-ctxt branch
1 parent 8e3a59c commit 52d4865

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/build/rustc.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ extern crate rustc_resolve;
1616
extern crate rustc_save_analysis;
1717
extern crate syntax;
1818

19+
use self::rustc::middle::cstore::CrateStore;
1920
use self::rustc::session::Session;
2021
use self::rustc::session::config::{self, Input, ErrorOutputType};
2122
use self::rustc_driver::{RustcDefaultCalls, run_compiler, run, Compilation, CompilerCalls};
@@ -128,11 +129,12 @@ impl<'a> CompilerCalls<'a> for RlsRustcCalls {
128129
fn late_callback(&mut self,
129130
matches: &getopts::Matches,
130131
sess: &Session,
132+
cstore: &CrateStore,
131133
input: &Input,
132134
odir: &Option<PathBuf>,
133135
ofile: &Option<PathBuf>)
134136
-> Compilation {
135-
self.default_calls.late_callback(matches, sess, input, odir, ofile)
137+
self.default_calls.late_callback(matches, sess, cstore, input, odir, ofile)
136138
}
137139

138140
fn build_controller(&mut self,
@@ -145,7 +147,7 @@ impl<'a> CompilerCalls<'a> for RlsRustcCalls {
145147

146148
result.after_analysis.callback = Box::new(move |state| {
147149
// There are two ways to move the data from rustc to the RLS, either
148-
// directly or by serialising and deserialising. We only want to do
150+
// directly or by serialising and deserialising. We only want to do
149151
// the latter when there are compatibility issues between crates.
150152

151153
// This version passes via JSON, it is more easily backwards compatible.

0 commit comments

Comments
 (0)