Skip to content

Commit e065d96

Browse files
committed
Remove unused field from IncrCompSession.
1 parent 4b90b26 commit e065d96

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

compiler/rustc_incremental/src/persist/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub(crate) fn prepare_session_directory(
262262
directory."
263263
);
264264

265-
sess.init_incr_comp_session(session_dir, directory_lock, false);
265+
sess.init_incr_comp_session(session_dir, directory_lock);
266266
return Ok(());
267267
};
268268

@@ -276,7 +276,7 @@ pub(crate) fn prepare_session_directory(
276276
sess.emit_warning(errors::HardLinkFailed { path: &session_dir });
277277
}
278278

279-
sess.init_incr_comp_session(session_dir, directory_lock, true);
279+
sess.init_incr_comp_session(session_dir, directory_lock);
280280
return Ok(());
281281
} else {
282282
debug!("copying failed - trying next directory");

compiler/rustc_session/src/session.rs

+3-9
Original file line numberDiff line numberDiff line change
@@ -814,21 +814,15 @@ impl Session {
814814
if self_contained { vec![p.clone(), p.join("self-contained")] } else { vec![p] }
815815
}
816816

817-
pub fn init_incr_comp_session(
818-
&self,
819-
session_dir: PathBuf,
820-
lock_file: flock::Lock,
821-
load_dep_graph: bool,
822-
) {
817+
pub fn init_incr_comp_session(&self, session_dir: PathBuf, lock_file: flock::Lock) {
823818
let mut incr_comp_session = self.incr_comp_session.borrow_mut();
824819

825820
if let IncrCompSession::NotInitialized = *incr_comp_session {
826821
} else {
827822
panic!("Trying to initialize IncrCompSession `{:?}`", *incr_comp_session)
828823
}
829824

830-
*incr_comp_session =
831-
IncrCompSession::Active { session_directory: session_dir, lock_file, load_dep_graph };
825+
*incr_comp_session = IncrCompSession::Active { session_directory: session_dir, lock_file };
832826
}
833827

834828
pub fn finalize_incr_comp_session(&self, new_directory_path: PathBuf) {
@@ -1686,7 +1680,7 @@ enum IncrCompSession {
16861680
NotInitialized,
16871681
/// This is the state during which the session directory is private and can
16881682
/// be modified.
1689-
Active { session_directory: PathBuf, lock_file: flock::Lock, load_dep_graph: bool },
1683+
Active { session_directory: PathBuf, lock_file: flock::Lock },
16901684
/// This is the state after the session directory has been finalized. In this
16911685
/// state, the contents of the directory must not be modified any more.
16921686
Finalized { session_directory: PathBuf },

0 commit comments

Comments
 (0)