Skip to content

Commit 92ccc71

Browse files
committed
Resolve merge conflicts
1 parent a15a38a commit 92ccc71

File tree

13 files changed

+0
-63
lines changed

13 files changed

+0
-63
lines changed

library/alloc/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ edition = "2021"
1111
[dependencies]
1212
core = { path = "../core" }
1313
compiler_builtins = { version = "=0.1.145", features = ['rustc-dep-of-std'] }
14-
<<<<<<< HEAD
1514
safety = { path = "../contracts/safety" }
16-
=======
17-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
1815

1916
[dev-dependencies]
2017
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }

library/alloc/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@
9292
//
9393
// Library features:
9494
// tidy-alphabetical-start
95-
<<<<<<< HEAD
9695
#![cfg_attr(kani, feature(kani))]
97-
=======
98-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
9996
#![cfg_attr(test, feature(str_as_str))]
10097
#![feature(alloc_layout_extra)]
10198
#![feature(allocator_api)]

library/core/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ edition = "2021"
1515
test = false
1616
bench = false
1717

18-
<<<<<<< HEAD
1918
[dependencies]
2019
safety = {path = "../contracts/safety" }
2120

22-
=======
23-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
2421
[features]
2522
# Make panics and failed asserts immediately abort without formatting any message
2623
panic_immediate_abort = []

library/core/src/intrinsics/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4005,16 +4005,13 @@ pub const fn is_val_statically_known<T: Copy>(_arg: T) -> bool {
40054005
#[rustc_intrinsic]
40064006
#[rustc_intrinsic_const_stable_indirect]
40074007
#[rustc_allow_const_fn_unstable(const_swap_nonoverlapping)] // this is anyway not called since CTFE implements the intrinsic
4008-
<<<<<<< HEAD
40094008
#[cfg_attr(kani, kani::modifies(x))]
40104009
#[cfg_attr(kani, kani::modifies(y))]
40114010
#[requires(ub_checks::can_dereference(x) && ub_checks::can_write(x))]
40124011
#[requires(ub_checks::can_dereference(y) && ub_checks::can_write(y))]
40134012
#[requires(x.addr() != y.addr() || core::mem::size_of::<T>() == 0)]
40144013
#[requires(ub_checks::maybe_is_nonoverlapping(x as *const (), y as *const (), size_of::<T>(), 1))]
40154014
#[ensures(|_| ub_checks::can_dereference(x) && ub_checks::can_dereference(y))]
4016-
=======
4017-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
40184015
pub const unsafe fn typed_swap_nonoverlapping<T>(x: *mut T, y: *mut T) {
40194016
// SAFETY: The caller provided single non-overlapping items behind
40204017
// pointers, so swapping them with `count: 1` is fine.

library/core/src/num/int_macros.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,10 +2136,7 @@ macro_rules! int_impl {
21362136
#[must_use = "this returns the result of the operation, \
21372137
without modifying the original"]
21382138
#[inline(always)]
2139-
<<<<<<< HEAD
21402139
#[ensures(|result| *result == self << (rhs & (Self::BITS - 1)))]
2141-
=======
2142-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
21432140
pub const fn wrapping_shl(self, rhs: u32) -> Self {
21442141
// SAFETY: the masking by the bitsize of the type ensures that we do not shift
21452142
// out of bounds
@@ -2169,10 +2166,7 @@ macro_rules! int_impl {
21692166
#[must_use = "this returns the result of the operation, \
21702167
without modifying the original"]
21712168
#[inline(always)]
2172-
<<<<<<< HEAD
21732169
#[ensures(|result| *result == self >> (rhs & (Self::BITS - 1)))]
2174-
=======
2175-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
21762170
pub const fn wrapping_shr(self, rhs: u32) -> Self {
21772171
// SAFETY: the masking by the bitsize of the type ensures that we do not shift
21782172
// out of bounds

library/core/src/num/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,6 @@ macro_rules! from_str_int_impl {
16061606

16071607
from_str_int_impl! { signed isize i8 i16 i32 i64 i128 }
16081608
from_str_int_impl! { unsigned usize u8 u16 u32 u64 u128 }
1609-
<<<<<<< HEAD
16101609

16111610
#[cfg(kani)]
16121611
#[unstable(feature = "kani", issue = "none")]
@@ -2317,5 +2316,3 @@ mod verify {
23172316
checked_f128_to_int_unchecked_usize
23182317
);
23192318
}
2320-
=======
2321-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78

library/core/src/num/uint_macros.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,10 +2238,7 @@ macro_rules! uint_impl {
22382238
#[must_use = "this returns the result of the operation, \
22392239
without modifying the original"]
22402240
#[inline(always)]
2241-
<<<<<<< HEAD
22422241
#[ensures(|result| *result == self << (rhs & (Self::BITS - 1)))]
2243-
=======
2244-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
22452242
pub const fn wrapping_shl(self, rhs: u32) -> Self {
22462243
// SAFETY: the masking by the bitsize of the type ensures that we do not shift
22472244
// out of bounds
@@ -2274,10 +2271,7 @@ macro_rules! uint_impl {
22742271
#[must_use = "this returns the result of the operation, \
22752272
without modifying the original"]
22762273
#[inline(always)]
2277-
<<<<<<< HEAD
22782274
#[ensures(|result| *result == self >> (rhs & (Self::BITS - 1)))]
2279-
=======
2280-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
22812275
pub const fn wrapping_shr(self, rhs: u32) -> Self {
22822276
// SAFETY: the masking by the bitsize of the type ensures that we do not shift
22832277
// out of bounds

library/core/src/ptr/alignment.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ impl Alignment {
5050
#[unstable(feature = "ptr_alignment_type", issue = "102070")]
5151
#[inline]
5252
#[must_use]
53-
<<<<<<< HEAD
5453
#[requires(mem::align_of::<T>().is_power_of_two())]
5554
#[ensures(|result| result.as_usize().is_power_of_two())]
56-
=======
57-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
5855
pub const fn of<T>() -> Self {
5956
// This can't actually panic since type alignment is always a power of two.
6057
const { Alignment::new(mem::align_of::<T>()).unwrap() }

library/core/src/ptr/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,8 @@
396396

397397
use crate::cmp::Ordering;
398398
use crate::intrinsics::const_eval_select;
399-
<<<<<<< HEAD
400399
#[cfg(kani)]
401400
use crate::kani;
402-
=======
403-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
404401
use crate::marker::FnPtr;
405402
use crate::mem::{self, MaybeUninit, SizedTypeProperties};
406403
use crate::{fmt, hash, intrinsics, ub_checks};

library/core/src/ptr/non_null.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,7 @@ impl<T: ?Sized> NonNull<T> {
333333
#[must_use]
334334
#[inline]
335335
#[stable(feature = "strict_provenance", since = "1.84.0")]
336-
<<<<<<< HEAD
337336
#[ensures(|result| result.get() == self.as_ptr() as *const() as usize)]
338-
=======
339-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
340337
pub fn addr(self) -> NonZero<usize> {
341338
// SAFETY: The pointer is guaranteed by the type to be non-null,
342339
// meaning that the address will be non-zero.
@@ -365,10 +362,7 @@ impl<T: ?Sized> NonNull<T> {
365362
#[must_use]
366363
#[inline]
367364
#[stable(feature = "strict_provenance", since = "1.84.0")]
368-
<<<<<<< HEAD
369365
#[ensures(|result: &Self| !result.as_ptr().is_null() && result.addr() == addr)]
370-
=======
371-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
372366
pub fn with_addr(self, addr: NonZero<usize>) -> Self {
373367
// SAFETY: The result of `ptr::from::with_addr` is non-null because `addr` is guaranteed to be non-zero.
374368
unsafe { NonNull::new_unchecked(self.as_ptr().with_addr(addr.get()) as *mut _) }
@@ -383,10 +377,7 @@ impl<T: ?Sized> NonNull<T> {
383377
#[must_use]
384378
#[inline]
385379
#[stable(feature = "strict_provenance", since = "1.84.0")]
386-
<<<<<<< HEAD
387380
#[ensures(|result: &Self| !result.as_ptr().is_null())]
388-
=======
389-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
390381
pub fn map_addr(self, f: impl FnOnce(NonZero<usize>) -> NonZero<usize>) -> Self {
391382
self.with_addr(f(self.addr()))
392383
}
@@ -746,15 +737,12 @@ impl<T: ?Sized> NonNull<T> {
746737
#[must_use = "returns a new pointer rather than modifying its argument"]
747738
#[stable(feature = "non_null_convenience", since = "1.80.0")]
748739
#[rustc_const_stable(feature = "non_null_convenience", since = "1.80.0")]
749-
<<<<<<< HEAD
750740
#[requires(
751741
count.checked_mul(core::mem::size_of::<T>()).is_some() &&
752742
count * core::mem::size_of::<T>() <= isize::MAX as usize &&
753743
core::ub_checks::same_allocation(self.as_ptr(), self.as_ptr().wrapping_sub(count))
754744
)]
755745
#[ensures(|result: &NonNull<T>| result.as_ptr() == self.as_ptr().offset(-(count as isize)))]
756-
=======
757-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
758746
pub const unsafe fn sub(self, count: usize) -> Self
759747
where
760748
T: Sized,
@@ -1324,12 +1312,9 @@ impl<T: ?Sized> NonNull<T> {
13241312
#[inline(always)]
13251313
#[stable(feature = "non_null_convenience", since = "1.80.0")]
13261314
#[rustc_const_stable(feature = "const_swap", since = "1.85.0")]
1327-
<<<<<<< HEAD
13281315
#[cfg_attr(kani, kani::modifies(self.as_ptr(), with.as_ptr()))]
13291316
#[requires(ub_checks::can_dereference(self.as_ptr()) && ub_checks::can_write(self.as_ptr()))]
13301317
#[requires(ub_checks::can_dereference(with.as_ptr()) && ub_checks::can_write(with.as_ptr()))]
1331-
=======
1332-
>>>>>>> 16d4ed08dbd3f6db3007def332f925f9ca7e6b78
13331318
pub const unsafe fn swap(self, with: NonNull<T>)
13341319
where
13351320
T: Sized,

0 commit comments

Comments
 (0)