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
76 changed files with 24 additions and 98 deletions

View File

@@ -456,8 +456,8 @@ pub fn lower_to_hir<'hir>(tcx: TyCtxt<'hir>, (): ()) -> hir::Crate<'hir> {
}
// Drop AST to free memory
std::mem::drop(ast_index);
sess.time("drop_ast", || std::mem::drop(krate));
drop(ast_index);
sess.time("drop_ast", || drop(krate));
// Discard hygiene data, which isn't required after lowering to HIR.
if !sess.opts.unstable_opts.keep_hygiene_data {