Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxiangfei2009 authored and compiler-errors committed Sep 27, 2024
1 parent aad27d2 commit 4caa710
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion compiler/rustc_hir_typeck/src/expr_use_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ pub trait TypeInformationCtxt<'tcx> {
}

impl<'tcx> TypeInformationCtxt<'tcx> for (TyCtxt<'tcx>, LocalDefId) {
type TypeckResults<'a> = &'tcx ty::TypeckResults<'tcx>
type TypeckResults<'a>
= &'tcx ty::TypeckResults<'tcx>
where
Self: 'a;

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/mir/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use rustc_hir::def_id::DefId;
use rustc_hir::{CoroutineKind, ItemLocalId};
use rustc_index::IndexVec;
use rustc_macros::{HashStable, TyDecodable, TyEncodable, TypeFoldable, TypeVisitable};
use rustc_span::Span;
use rustc_span::def_id::LocalDefId;
use rustc_span::source_map::Spanned;
use rustc_span::symbol::Symbol;
use rustc_span::Span;
use rustc_target::abi::{FieldIdx, VariantIdx};
use rustc_target::asm::InlineAsmRegOrRegClass;
use smallvec::SmallVec;
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_mir_transform/src/lint_tail_expr_drop_order.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use rustc_hir::def_id::LocalDefId;
use rustc_hir::{ExprKind, HirId, HirIdSet, OwnerId};
use rustc_index::bit_set::{BitSet, ChunkedBitSet};
use rustc_index::IndexVec;
use rustc_index::bit_set::{BitSet, ChunkedBitSet};
use rustc_lint::{self as lint, Level};
use rustc_macros::LintDiagnostic;
use rustc_middle::mir::{dump_mir, BasicBlock, Body, Local, Location, TerminatorKind};
use rustc_middle::mir::{BasicBlock, Body, Local, Location, TerminatorKind, dump_mir};
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_mir_dataflow::impls::MaybeInitializedPlaces;
use rustc_mir_dataflow::move_paths::MoveData;
Expand Down

0 comments on commit 4caa710

Please sign in to comment.