Skip to content

Commit 21a1939

Browse files
committed
Resolve conflicts
1 parent 0bba6fa commit 21a1939

File tree

14 files changed

+5
-119
lines changed

14 files changed

+5
-119
lines changed

library/alloc/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,8 @@
8585
//
8686
// Library features:
8787
// tidy-alphabetical-start
88-
<<<<<<< HEAD
8988
#![cfg_attr(kani, feature(kani))]
90-
=======
9189
#![cfg_attr(not(no_global_oom_handling), feature(string_replace_in_place))]
92-
>>>>>>> subtree/library
9390
#![feature(alloc_layout_extra)]
9491
#![feature(allocator_api)]
9592
#![feature(array_into_iter_constructors)]

library/core/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,9 @@ check-cfg = [
4242
'cfg(target_has_reliable_f16_math)',
4343
'cfg(target_has_reliable_f128)',
4444
'cfg(target_has_reliable_f128_math)',
45-
<<<<<<< HEAD
45+
'cfg(llvm_enzyme)',
4646
'cfg(kani)',
4747
'cfg(flux)'
48-
=======
49-
'cfg(llvm_enzyme)',
50-
51-
>>>>>>> subtree/library
5248
]
5349

5450
[package.metadata.flux]

library/core/src/array/iter.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ use safety::requires;
44

55
use crate::intrinsics::transmute_unchecked;
66
use crate::iter::{FusedIterator, TrustedLen, TrustedRandomAccessNoCoerce};
7-
<<<<<<< HEAD
87
#[cfg(kani)]
98
use crate::kani;
10-
use crate::mem::MaybeUninit;
11-
=======
129
use crate::mem::{ManuallyDrop, MaybeUninit};
13-
>>>>>>> subtree/library
1410
use crate::num::NonZero;
1511
use crate::ops::{Deref as _, DerefMut as _, IndexRange, Range, Try};
1612
use crate::{fmt, ptr};

library/core/src/fmt/rt.rs

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -169,59 +169,3 @@ impl Argument<'_> {
169169
}
170170
}
171171
}
172-
<<<<<<< HEAD
173-
174-
/// Used by the format_args!() macro to create a fmt::Arguments object.
175-
#[doc(hidden)]
176-
#[unstable(feature = "fmt_internals", issue = "none")]
177-
#[rustc_diagnostic_item = "FmtArgumentsNew"]
178-
impl<'a> Arguments<'a> {
179-
#[inline]
180-
pub const fn new_const<const N: usize>(pieces: &'a [&'static str; N]) -> Self {
181-
const { assert!(N <= 1) };
182-
Arguments { pieces, fmt: None, args: &[] }
183-
}
184-
185-
/// When using the format_args!() macro, this function is used to generate the
186-
/// Arguments structure.
187-
///
188-
/// This function should _not_ be const, to make sure we don't accept
189-
/// format_args!() and panic!() with arguments in const, even when not evaluated:
190-
///
191-
/// ```compile_fail,E0015
192-
/// const _: () = if false { panic!("a {}", "a") };
193-
/// ```
194-
#[inline]
195-
pub fn new_v1<const P: usize, const A: usize>(
196-
pieces: &'a [&'static str; P],
197-
args: &'a [rt::Argument<'a>; A],
198-
) -> Arguments<'a> {
199-
const { assert!(P >= A && P <= A + 1, "invalid args") }
200-
Arguments { pieces, fmt: None, args }
201-
}
202-
203-
/// Specifies nonstandard formatting parameters.
204-
///
205-
/// SAFETY: the following invariants must be held:
206-
/// 1. The `pieces` slice must be at least as long as `fmt`.
207-
/// 2. Every `rt::Placeholder::position` value within `fmt` must be a valid index of `args`.
208-
/// 3. Every `rt::Count::Param` within `fmt` must contain a valid index of `args`.
209-
///
210-
/// This function should _not_ be const, to make sure we don't accept
211-
/// format_args!() and panic!() with arguments in const, even when not evaluated:
212-
///
213-
/// ```compile_fail,E0015
214-
/// const _: () = if false { panic!("a {:1}", "a") };
215-
/// ```
216-
#[inline]
217-
#[requires(pieces.len() >= fmt.len())]
218-
pub unsafe fn new_v1_formatted(
219-
pieces: &'a [&'static str],
220-
args: &'a [rt::Argument<'a>],
221-
fmt: &'a [rt::Placeholder],
222-
) -> Arguments<'a> {
223-
Arguments { pieces, fmt: Some(fmt), args }
224-
}
225-
}
226-
=======
227-
>>>>>>> subtree/library

library/core/src/hint.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
//!
55
//! Hints may be compile time or runtime.
66
7-
<<<<<<< HEAD
87
use safety::requires;
98

109
#[cfg(kani)]
1110
use crate::kani;
12-
=======
1311
use crate::marker::Destruct;
14-
>>>>>>> subtree/library
1512
use crate::mem::MaybeUninit;
1613
use crate::{intrinsics, ub_checks};
1714

library/core/src/intrinsics/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,12 @@
5757
use safety::{ensures, requires};
5858

5959
use crate::ffi::va_list::{VaArgSafe, VaListImpl};
60-
<<<<<<< HEAD
6160
#[cfg(kani)]
6261
use crate::kani;
63-
use crate::marker::{ConstParamTy, DiscriminantKind, PointeeSized, Tuple};
64-
use crate::ptr;
65-
#[cfg(kani)]
66-
use crate::ub_checks;
67-
=======
6862
use crate::marker::{ConstParamTy, Destruct, DiscriminantKind, PointeeSized, Tuple};
6963
use crate::{mem, ptr};
70-
>>>>>>> subtree/library
64+
#[cfg(kani)]
65+
use crate::ub_checks;
7166

7267
mod bounds;
7368
pub mod fallback;

library/core/src/mem/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
#![stable(feature = "rust1", since = "1.0.0")]
77

88
use crate::alloc::Layout;
9-
<<<<<<< HEAD
109
#[cfg(kani)]
1110
use crate::kani;
12-
use crate::marker::DiscriminantKind;
13-
=======
1411
use crate::clone::TrivialClone;
1512
use crate::marker::{Destruct, DiscriminantKind};
16-
>>>>>>> subtree/library
1713
use crate::panic::const_assert;
1814
use crate::{clone, cmp, fmt, hash, intrinsics, ptr};
1915

library/core/src/ops/index_range.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@ impl IndexRange {
6060
/// # Safety
6161
/// - Can only be called when `start < end`, aka when `len > 0`.
6262
#[inline]
63-
<<<<<<< HEAD
6463
#[requires(self.start < self.end)]
6564
#[cfg_attr(kani, kani::modifies(self))]
66-
unsafe fn next_unchecked(&mut self) -> usize {
67-
=======
6865
const unsafe fn next_unchecked(&mut self) -> usize {
69-
>>>>>>> subtree/library
7066
debug_assert!(self.start < self.end);
7167

7268
let value = self.start;
@@ -78,13 +74,9 @@ impl IndexRange {
7874
/// # Safety
7975
/// - Can only be called when `start < end`, aka when `len > 0`.
8076
#[inline]
81-
<<<<<<< HEAD
8277
#[requires(self.start < self.end)]
8378
#[cfg_attr(kani, kani::modifies(self))]
84-
unsafe fn next_back_unchecked(&mut self) -> usize {
85-
=======
8679
const unsafe fn next_back_unchecked(&mut self) -> usize {
87-
>>>>>>> subtree/library
8880
debug_assert!(self.start < self.end);
8981

9082
// SAFETY: The range isn't empty, so this cannot overflow

library/core/src/ptr/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,9 @@
403403

404404
use crate::cmp::Ordering;
405405
use crate::intrinsics::const_eval_select;
406-
<<<<<<< HEAD
407406
#[cfg(kani)]
408407
use crate::kani;
409-
use crate::marker::{FnPtr, PointeeSized};
410-
=======
411408
use crate::marker::{Destruct, FnPtr, PointeeSized};
412-
>>>>>>> subtree/library
413409
use crate::mem::{self, MaybeUninit, SizedTypeProperties};
414410
use crate::num::NonZero;
415411
use crate::{fmt, hash, intrinsics, ub_checks};

library/core/src/ptr/mut_ptr.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ use safety::{ensures, requires};
33
use super::*;
44
use crate::cmp::Ordering::{Equal, Greater, Less};
55
use crate::intrinsics::const_eval_select;
6-
<<<<<<< HEAD
76
#[cfg(kani)]
87
use crate::kani;
9-
use crate::marker::PointeeSized;
10-
=======
118
use crate::marker::{Destruct, PointeeSized};
12-
>>>>>>> subtree/library
139
use crate::mem::{self, SizedTypeProperties};
1410
use crate::slice::{self, SliceIndex};
1511

0 commit comments

Comments
 (0)