Skip to content

Commit 2c4b96a

Browse files
committed
Fixed formatting
1 parent 7a122b2 commit 2c4b96a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

compiler/rustc_const_eval/src/interpret/intrinsics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use rustc_infer::infer::TyCtxtInferExt;
1313
use rustc_middle::mir::interpret::{CTFE_ALLOC_SALT, read_target_uint, write_target_uint};
1414
use rustc_middle::mir::{self, BinOp, ConstValue, NonDivergingIntrinsic};
1515
use rustc_middle::ty::layout::TyAndLayout;
16-
use rustc_middle::ty::{FloatTy, Ty, TyCtxt, Upcast, TypeFoldable};
16+
use rustc_middle::ty::{FloatTy, Ty, TyCtxt, TypeFoldable, Upcast};
1717
use rustc_middle::{bug, span_bug, ty};
1818
use rustc_span::{Symbol, sym};
1919
use rustc_trait_selection::traits::{Obligation, ObligationCause, ObligationCtxt};
@@ -22,8 +22,8 @@ use tracing::trace;
2222
use super::memory::MemoryKind;
2323
use super::util::ensure_monomorphic_enough;
2424
use super::{
25-
Allocation, AllocId, CheckInAllocMsg, ConstAllocation, ImmTy, InterpCx, InterpResult, Machine, OpTy,
26-
PlaceTy, Pointer, PointerArithmetic, Provenance, Scalar, err_ub_custom, err_unsup_format,
25+
AllocId, Allocation, CheckInAllocMsg, ConstAllocation, ImmTy, InterpCx, InterpResult, Machine,
26+
OpTy, PlaceTy, Pointer, PointerArithmetic, Provenance, Scalar, err_ub_custom, err_unsup_format,
2727
interp_ok, throw_inval, throw_ub_custom, throw_ub_format,
2828
};
2929
use crate::fluent_generated as fluent;

library/core/src/any.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,6 @@ pub const fn type_name_of_val<T: ?Sized>(_val: &T) -> &'static str {
907907
type_name::<T>()
908908
}
909909

910-
911-
912910
/// Returns `Some(&U)` if `T` can be coerced to the trait object type `U`. Otherwise, it returns `None`.
913911
///
914912
/// # Compile-time failures
@@ -962,7 +960,6 @@ pub const fn try_as_dyn<
962960
}
963961
}
964962

965-
966963
/// Returns `Some(&mut U)` if `T` can be coerced to the trait object type `U`. Otherwise, it returns `None`.
967964
///
968965
/// # Compile-time failures

0 commit comments

Comments
 (0)