Skip to content

Commit c235c3d

Browse files
committed
Resolve conflicts
1 parent c72de4d commit c235c3d

File tree

1 file changed

+23
-28
lines changed
  • library/core/src/intrinsics

1 file changed

+23
-28
lines changed

library/core/src/intrinsics/mod.rs

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@
5454
)]
5555
#![allow(missing_docs)]
5656

57-
<<<<<<< HEAD
5857
use safety::{ensures, requires};
5958

59+
use crate::ffi::va_list::{VaArgSafe, VaListImpl};
6060
#[cfg(kani)]
6161
use crate::kani;
62-
=======
63-
use crate::ffi::va_list::{VaArgSafe, VaListImpl};
64-
>>>>>>> subtree/library
6562
use crate::marker::{ConstParamTy, DiscriminantKind, PointeeSized, Tuple};
6663
use crate::ptr;
6764
#[cfg(kani)]
@@ -3226,7 +3223,28 @@ pub(crate) const fn miri_promise_symbolic_alignment(ptr: *const (), align: usize
32263223
)
32273224
}
32283225

3229-
<<<<<<< HEAD
3226+
/// Copies the current location of arglist `src` to the arglist `dst`.
3227+
///
3228+
/// FIXME: document safety requirements
3229+
#[rustc_intrinsic]
3230+
#[rustc_nounwind]
3231+
pub unsafe fn va_copy<'f>(dest: *mut VaListImpl<'f>, src: &VaListImpl<'f>);
3232+
3233+
/// Loads an argument of type `T` from the `va_list` `ap` and increment the
3234+
/// argument `ap` points to.
3235+
///
3236+
/// FIXME: document safety requirements
3237+
#[rustc_intrinsic]
3238+
#[rustc_nounwind]
3239+
pub unsafe fn va_arg<T: VaArgSafe>(ap: &mut VaListImpl<'_>) -> T;
3240+
3241+
/// Destroy the arglist `ap` after initialization with `va_start` or `va_copy`.
3242+
///
3243+
/// FIXME: document safety requirements
3244+
#[rustc_intrinsic]
3245+
#[rustc_nounwind]
3246+
pub unsafe fn va_end(ap: &mut VaListImpl<'_>);
3247+
32303248
#[cfg(kani)]
32313249
#[unstable(feature = "kani", issue = "none")]
32323250
mod verify {
@@ -3908,26 +3926,3 @@ mod verify {
39083926
status != AllocationStatus::Dangling && status != AllocationStatus::DeadObject
39093927
}
39103928
}
3911-
=======
3912-
/// Copies the current location of arglist `src` to the arglist `dst`.
3913-
///
3914-
/// FIXME: document safety requirements
3915-
#[rustc_intrinsic]
3916-
#[rustc_nounwind]
3917-
pub unsafe fn va_copy<'f>(dest: *mut VaListImpl<'f>, src: &VaListImpl<'f>);
3918-
3919-
/// Loads an argument of type `T` from the `va_list` `ap` and increment the
3920-
/// argument `ap` points to.
3921-
///
3922-
/// FIXME: document safety requirements
3923-
#[rustc_intrinsic]
3924-
#[rustc_nounwind]
3925-
pub unsafe fn va_arg<T: VaArgSafe>(ap: &mut VaListImpl<'_>) -> T;
3926-
3927-
/// Destroy the arglist `ap` after initialization with `va_start` or `va_copy`.
3928-
///
3929-
/// FIXME: document safety requirements
3930-
#[rustc_intrinsic]
3931-
#[rustc_nounwind]
3932-
pub unsafe fn va_end(ap: &mut VaListImpl<'_>);
3933-
>>>>>>> subtree/library

0 commit comments

Comments
 (0)