Skip to content

Commit 6412f3f

Browse files
committed
Appeased almighty tidy
1 parent 9425877 commit 6412f3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_codegen_llvm/src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ use self::utils::{create_DIArray, is_node_local_to_unit, DIB};
1010
use crate::abi::FnAbi;
1111
use crate::builder::Builder;
1212
use crate::common::CodegenCx;
13+
use crate::debuginfo::utils::debug_context;
1314
use crate::llvm;
1415
use crate::llvm::debuginfo::{
1516
DIArray, DIBuilder, DIFile, DIFlags, DILexicalBlock, DILocation, DISPFlags, DIScope, DIType,
1617
DIVariable,
1718
};
18-
use crate::debuginfo::utils::debug_context;
1919
use crate::value::Value;
2020

2121
use rustc_codegen_ssa::debuginfo::type_names;

compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use rustc_middle::ty::{self, AdtDef, ExistentialProjection, Ty, TyCtxt};
2323
use rustc_target::abi::{Integer, TagEncoding, Variants};
2424
use smallvec::SmallVec;
2525

26-
use std::fmt::Write;
2726
use std::cell::RefCell;
27+
use std::fmt::Write;
2828

2929
// Compute the name of the type as it should be stored in debuginfo. Does not do
3030
// any caching, i.e., calling the function twice with the same type will also do
@@ -52,7 +52,7 @@ fn push_debuginfo_type_name<'tcx>(
5252
qualified: bool,
5353
output: &mut String,
5454
visited: &mut FxHashSet<Ty<'tcx>>,
55-
type_name_cache: &RefCell<FxHashMap<(Ty<'tcx>, bool), String>>,
55+
type_name_cache: &RefCell<FxHashMap<(Ty<'tcx>, bool), String>>,
5656
) {
5757
// Check if we have seen this type and qualifier before.
5858
if let Some(type_name) = type_name_cache.borrow().get(&(&t, qualified)) {
@@ -439,7 +439,7 @@ fn push_debuginfo_type_name<'tcx>(
439439
substs: SubstsRef<'tcx>,
440440
output: &mut String,
441441
visited: &mut FxHashSet<Ty<'tcx>>,
442-
type_name_cache: &RefCell<FxHashMap<(Ty<'tcx>, bool), String>>,
442+
type_name_cache: &RefCell<FxHashMap<(Ty<'tcx>, bool), String>>,
443443
) {
444444
let layout = tcx.layout_of(tcx.param_env(def.did).and(ty)).expect("layout error");
445445

0 commit comments

Comments
 (0)