Auto merge of #122754 - Mark-Simulacrum:bootstrap-bump, r=albertlarsan68
Bump to 1.78 bootstrap compiler https://forge.rust-lang.org/release/process.html#master-bootstrap-update-t-2-day-tuesday
This commit is contained in:
commit
a128516cf9
45 changed files with 487 additions and 633 deletions
|
@ -51,7 +51,7 @@ extern "Rust" {
|
|||
#[derive(Copy, Clone, Default, Debug)]
|
||||
#[cfg(not(test))]
|
||||
// the compiler needs to know when a Box uses the global allocator vs a custom one
|
||||
#[cfg_attr(not(bootstrap), lang = "global_alloc_ty")]
|
||||
#[lang = "global_alloc_ty"]
|
||||
pub struct Global;
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -387,8 +387,7 @@ pub const fn handle_alloc_error(layout: Layout) -> ! {
|
|||
}
|
||||
|
||||
#[cfg(not(feature = "panic_immediate_abort"))]
|
||||
#[cfg_attr(not(bootstrap), allow(unused_unsafe))] // on bootstrap bump, remove unsafe block
|
||||
unsafe {
|
||||
{
|
||||
core::intrinsics::const_eval_select((layout,), ct_error, rt_error)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue