1
Fork 0

compiler: remove unnecessary imports and qualified paths

This commit is contained in:
KaDiWa 2022-08-09 02:14:43 +02:00
parent a161a7b654
commit 9bc69925cb
No known key found for this signature in database
GPG key ID: 0B52AE391C674CE5
76 changed files with 24 additions and 98 deletions

View file

@ -30,8 +30,6 @@ use rustc_middle::hir::nested_filter;
use rustc_middle::ty::TyCtxt;
use rustc_span::symbol::{sym, Symbol};
use rustc_span::Span;
use std::iter::FromIterator;
use std::vec::Vec;
const LOADED_FROM_DISK: Symbol = sym::loaded_from_disk;
const EXCEPT: Symbol = sym::except;

View file

@ -113,7 +113,6 @@ use rustc_span::Symbol;
use std::fs as std_fs;
use std::io::{self, ErrorKind};
use std::mem;
use std::path::{Path, PathBuf};
use std::time::{Duration, SystemTime, UNIX_EPOCH};
@ -305,7 +304,7 @@ pub fn prepare_session_directory(
}
delete_session_dir_lock_file(sess, &lock_file_path);
mem::drop(directory_lock);
drop(directory_lock);
}
}
}
@ -864,7 +863,7 @@ pub fn garbage_collect_session_directories(sess: &Session) -> io::Result<()> {
// Let's make it explicit that the file lock is released at this point,
// or rather, that we held on to it until here
mem::drop(lock);
drop(lock);
}
Err(_) => {
debug!(
@ -898,7 +897,7 @@ pub fn garbage_collect_session_directories(sess: &Session) -> io::Result<()> {
// Let's make it explicit that the file lock is released at this point,
// or rather, that we held on to it until here
mem::drop(lock);
drop(lock);
}
Ok(())