Skip to content

Commit bfded9b

Browse files
authored
Undid IDE auto indent fixes
1 parent f58c65a commit bfded9b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

library/core/src/ptr/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,8 @@ pub const fn dangling_mut<T>() -> *mut T {
728728
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
729729
#[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
730730
pub fn with_exposed_provenance<T>(addr: usize) -> *const T
731-
where
732-
T: Sized,
731+
where
732+
T: Sized,
733733
{
734734
// FIXME(strict_provenance_magic): I am magic and should be a compiler intrinsic.
735735
addr as *const T
@@ -768,8 +768,8 @@ pub fn with_exposed_provenance<T>(addr: usize) -> *const T
768768
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
769769
#[allow(fuzzy_provenance_casts)] // this *is* the explicit provenance API one should use instead
770770
pub fn with_exposed_provenance_mut<T>(addr: usize) -> *mut T
771-
where
772-
T: Sized,
771+
where
772+
T: Sized,
773773
{
774774
// FIXME(strict_provenance_magic): I am magic and should be a compiler intrinsic.
775775
addr as *mut T
@@ -1067,7 +1067,7 @@ pub const unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize) {
10671067
// because we don't want to pessimize things like slices of SIMD vectors.)
10681068
if mem::align_of::<T>() <= mem::size_of::<usize>()
10691069
&& (!mem::size_of::<T>().is_power_of_two()
1070-
|| mem::size_of::<T>() > mem::size_of::<usize>() * 2)
1070+
|| mem::size_of::<T>() > mem::size_of::<usize>() * 2)
10711071
{
10721072
attempt_swap_as_chunks!(usize);
10731073
attempt_swap_as_chunks!(u8);
@@ -1405,9 +1405,9 @@ pub const unsafe fn read<T>(src: *const T) -> T {
14051405
#[stable(feature = "ptr_unaligned", since = "1.17.0")]
14061406
#[rustc_const_stable(feature = "const_ptr_read", since = "1.71.0")]
14071407
#[rustc_allow_const_fn_unstable(
1408-
const_mut_refs,
1409-
const_maybe_uninit_as_mut_ptr,
1410-
const_intrinsic_copy
1408+
const_mut_refs,
1409+
const_maybe_uninit_as_mut_ptr,
1410+
const_intrinsic_copy
14111411
)]
14121412
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
14131413
#[rustc_diagnostic_item = "ptr_read_unaligned"]
@@ -2205,7 +2205,7 @@ impl<F: FnPtr> fmt::Debug for F {
22052205
#[rustc_macro_transparency = "semitransparent"]
22062206
#[allow_internal_unstable(raw_ref_op)]
22072207
pub macro addr_of($place:expr) {
2208-
&raw const $place
2208+
&raw const $place
22092209
}
22102210

22112211
/// Create a `mut` raw pointer to a place, without creating an intermediate reference.
@@ -2293,5 +2293,5 @@ pub macro addr_of($place:expr) {
22932293
#[rustc_macro_transparency = "semitransparent"]
22942294
#[allow_internal_unstable(raw_ref_op)]
22952295
pub macro addr_of_mut($place:expr) {
2296-
&raw mut $place
2296+
&raw mut $place
22972297
}

0 commit comments

Comments
 (0)