File tree 1 file changed +6
-3
lines changed
compiler/rustc_session/src
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -822,7 +822,8 @@ impl Session {
822
822
panic ! ( "Trying to initialize IncrCompSession `{:?}`" , * incr_comp_session)
823
823
}
824
824
825
- * incr_comp_session = IncrCompSession :: Active { session_directory : session_dir, lock_file } ;
825
+ * incr_comp_session =
826
+ IncrCompSession :: Active { session_directory : session_dir, _lock_file : lock_file } ;
826
827
}
827
828
828
829
pub fn finalize_incr_comp_session ( & self , new_directory_path : PathBuf ) {
@@ -1679,8 +1680,10 @@ enum IncrCompSession {
1679
1680
/// needed.
1680
1681
NotInitialized ,
1681
1682
/// This is the state during which the session directory is private and can
1682
- /// be modified.
1683
- Active { session_directory : PathBuf , lock_file : flock:: Lock } ,
1683
+ /// be modified. `_lock_file` is never directly used, but its presence
1684
+ /// alone has an effect, because the file will unlock when the session is
1685
+ /// dropped.
1686
+ Active { session_directory : PathBuf , _lock_file : flock:: Lock } ,
1684
1687
/// This is the state after the session directory has been finalized. In this
1685
1688
/// state, the contents of the directory must not be modified any more.
1686
1689
Finalized { session_directory : PathBuf } ,
You can’t perform that action at this time.
0 commit comments