File tree 4 files changed +357
-1433
lines changed
4 files changed +357
-1433
lines changed Original file line number Diff line number Diff line change @@ -238,11 +238,8 @@ pub struct Box<
238
238
///
239
239
/// This is the surface syntax for `box <expr>` expressions.
240
240
#[ rustc_intrinsic]
241
- #[ rustc_intrinsic_must_be_overridden]
242
241
#[ unstable( feature = "liballoc_internals" , issue = "none" ) ]
243
- pub fn box_new < T > ( _x : T ) -> Box < T > {
244
- unreachable ! ( )
245
- }
242
+ pub fn box_new < T > ( _x : T ) -> Box < T > ;
246
243
247
244
impl < T > Box < T > {
248
245
/// Allocates memory on the heap and then places `x` into it.
Original file line number Diff line number Diff line change @@ -305,25 +305,16 @@ impl<'f> Drop for VaListImpl<'f> {
305
305
/// Destroy the arglist `ap` after initialization with `va_start` or
306
306
/// `va_copy`.
307
307
#[ rustc_intrinsic]
308
- #[ rustc_intrinsic_must_be_overridden]
309
308
#[ rustc_nounwind]
310
- unsafe fn va_end ( _ap : & mut VaListImpl < ' _ > ) {
311
- unreachable ! ( )
312
- }
309
+ unsafe fn va_end ( _ap : & mut VaListImpl < ' _ > ) ;
313
310
314
311
/// Copies the current location of arglist `src` to the arglist `dst`.
315
312
#[ rustc_intrinsic]
316
- #[ rustc_intrinsic_must_be_overridden]
317
313
#[ rustc_nounwind]
318
- unsafe fn va_copy < ' f > ( _dest : * mut VaListImpl < ' f > , _src : & VaListImpl < ' f > ) {
319
- unreachable ! ( )
320
- }
314
+ unsafe fn va_copy < ' f > ( _dest : * mut VaListImpl < ' f > , _src : & VaListImpl < ' f > ) ;
321
315
322
316
/// Loads an argument of type `T` from the `va_list` `ap` and increment the
323
317
/// argument `ap` points to.
324
318
#[ rustc_intrinsic]
325
- #[ rustc_intrinsic_must_be_overridden]
326
319
#[ rustc_nounwind]
327
- unsafe fn va_arg < T : sealed_trait:: VaArgSafe > ( _ap : & mut VaListImpl < ' _ > ) -> T {
328
- unreachable ! ( )
329
- }
320
+ unsafe fn va_arg < T : sealed_trait:: VaArgSafe > ( _ap : & mut VaListImpl < ' _ > ) -> T ;
You can’t perform that action at this time.
0 commit comments