Rollup merge of #136005 - BLANKatGITHUB:library, r=RalfJung
ports last few library files to new intrinsic style This pr ports the last 2 library files to new intrinsic style this pr is part of issue #132735
This commit is contained in:
commit
f14993b454
2 changed files with 959 additions and 679 deletions
|
@ -302,18 +302,28 @@ impl<'f> Drop for VaListImpl<'f> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "rust-intrinsic" {
|
/// Destroy the arglist `ap` after initialization with `va_start` or
|
||||||
/// Destroy the arglist `ap` after initialization with `va_start` or
|
/// `va_copy`.
|
||||||
/// `va_copy`.
|
#[rustc_intrinsic]
|
||||||
#[rustc_nounwind]
|
#[rustc_intrinsic_must_be_overridden]
|
||||||
fn va_end(ap: &mut VaListImpl<'_>);
|
#[rustc_nounwind]
|
||||||
|
unsafe fn va_end(_ap: &mut VaListImpl<'_>) {
|
||||||
/// Copies the current location of arglist `src` to the arglist `dst`.
|
unreachable!()
|
||||||
#[rustc_nounwind]
|
}
|
||||||
fn va_copy<'f>(dest: *mut VaListImpl<'f>, src: &VaListImpl<'f>);
|
|
||||||
|
/// Copies the current location of arglist `src` to the arglist `dst`.
|
||||||
/// Loads an argument of type `T` from the `va_list` `ap` and increment the
|
#[rustc_intrinsic]
|
||||||
/// argument `ap` points to.
|
#[rustc_intrinsic_must_be_overridden]
|
||||||
#[rustc_nounwind]
|
#[rustc_nounwind]
|
||||||
fn va_arg<T: sealed_trait::VaArgSafe>(ap: &mut VaListImpl<'_>) -> T;
|
unsafe fn va_copy<'f>(_dest: *mut VaListImpl<'f>, _src: &VaListImpl<'f>) {
|
||||||
|
unreachable!()
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Loads an argument of type `T` from the `va_list` `ap` and increment the
|
||||||
|
/// argument `ap` points to.
|
||||||
|
#[rustc_intrinsic]
|
||||||
|
#[rustc_intrinsic_must_be_overridden]
|
||||||
|
#[rustc_nounwind]
|
||||||
|
unsafe fn va_arg<T: sealed_trait::VaArgSafe>(_ap: &mut VaListImpl<'_>) -> T {
|
||||||
|
unreachable!()
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue