Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync from rust 2024/07/02 #535

Merged
merged 99 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
3ca0c59
Forbid implementing `Freeze` even if the trait is stabilized
oli-obk Feb 23, 2024
929e12d
Stabilize associated type bounds
compiler-errors Mar 5, 2024
d0dc943
Introduce perma-unstable `wasm-c-abi` flag
daxpedda Feb 27, 2024
dd9407d
use Instance::expect_resolve() instead of unwraping Instance::resolve()
RalfJung Mar 10, 2024
915646f
Rename `IntoDiagnostic` as `Diagnostic`.
nnethercote Mar 6, 2024
0031b21
Auto merge of #122132 - nnethercote:diag-renaming3, r=nnethercote
bors Mar 11, 2024
a6202e2
Rollup merge of #121840 - oli-obk:freeze, r=dtolnay
jhpratt Mar 11, 2024
be24d39
Use published gccjit dependency instead of git repository
GuillaumeGomez Mar 11, 2024
e3a9b1d
Check whether a static is mutable instead of passing it down
oli-obk Oct 6, 2023
8fdfbf5
Make some functions private that are only ever used in the same module
oli-obk Feb 26, 2024
6d573e9
Ensure nested allocations in statics do not get deduplicated
oli-obk Feb 26, 2024
e7795ed
Some comment nits
oli-obk Mar 11, 2024
a64942a
Mark codegen_gcc fields used only on feature master as such
krtab Jan 4, 2024
9476fe7
avoid naming LLVM basic blocks when fewer_names is true
erikdesjardins Mar 15, 2024
ff2b405
revert changes and just delete the fixme
erikdesjardins Mar 16, 2024
678e624
Auto merge of #122055 - compiler-errors:stabilize-atb, r=oli-obk
bors Mar 19, 2024
c8cb091
Codegen const panic messages as function calls
Mark-Simulacrum Mar 18, 2024
83eaede
Make RawPtr take Ty and Mutbl separately
compiler-errors Mar 21, 2024
a951158
Auto merge of #119552 - krtab:dead_code_priv_mod_pub_field, r=cjgillo…
bors Mar 23, 2024
95c7fde
Unbox and unwrap the contents of `StatementKind::Coverage`
Zalathar Mar 23, 2024
abbe1ba
CFI: Use Instance at callsites
maurer Mar 15, 2024
1a05106
Add+Use `mir::BinOp::Cmp`
scottmcm Mar 6, 2023
1ee4ae9
Rollup merge of #122937 - Zalathar:unbox, r=oli-obk
matthiaskrgr Mar 24, 2024
211b585
Auto merge of #122671 - Mark-Simulacrum:const-panic-msg, r=Nilstrieb
bors Mar 29, 2024
cc98f86
stabilize ptr.is_aligned, move ptr.is_aligned_to to a new feature gate
Gankra Mar 3, 2024
27ba1ba
Auto merge of #118310 - scottmcm:three-way-compare, r=davidtwco
bors Apr 2, 2024
f7a6ac1
Rollup merge of #122334 - GuillaumeGomez:vendor-cg_gcc, r=Mark-Simula…
GuillaumeGomez Apr 5, 2024
040afd3
Save/restore more items in cache with incremental compilation
pacak Apr 6, 2024
b9b05d5
Make `PlaceRef` hold a `PlaceValue` for the non-layout fields (like `…
scottmcm Apr 11, 2024
cccf379
Put `PlaceValue` into `OperandValue::Ref`, rather than 3 tuple fields
scottmcm Apr 11, 2024
4ea3389
use [N x i8] for alloca types
erikdesjardins Feb 24, 2024
50a1471
restore location in gcc alloca codegen
erikdesjardins Apr 12, 2024
6f36e82
static_mut_refs: use raw pointers to remove the remaining FIXME
RalfJung Apr 15, 2024
0f17e5a
Auto merge of #117919 - daxpedda:wasm-c-abi, r=wesleywiser
bors Apr 19, 2024
dd50f45
Fixup `rustc_codegen_gcc` test signature
WaffleLapkin Apr 20, 2024
224285d
Rollup merge of #123967 - RalfJung:static_mut_refs, r=Nilstrieb
jieyouxu Apr 20, 2024
2d082ae
Stabilize the size of incr comp object file names
saethlin Apr 3, 2024
79d217f
Rollup merge of #124003 - WaffleLapkin:dellvmization, r=scottmcm,Ralf…
matthiaskrgr Apr 23, 2024
752af44
Auto merge of #122053 - erikdesjardins:alloca, r=nikic
bors Apr 24, 2024
df0639b
Error on using `yield` without also using `#[coroutine]` on the closure
oli-obk Apr 11, 2024
2b875f0
Step bootstrap cfgs
Mark-Simulacrum Apr 29, 2024
3ea32a7
Inline & delete `Ty::new_unit`, since it's just a field access
WaffleLapkin May 2, 2024
7ed351a
Rollup merge of #124624 - WaffleLapkin:old_unit, r=fmease
matthiaskrgr May 2, 2024
efa15eb
Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk
bors May 3, 2024
f26221a
Refactor float `Primitive`s to a separate `Float` type
beetrees May 6, 2024
6b7db50
Simplify `use crate::rustc_foo::bar` occurrences.
nnethercote May 8, 2024
7ad7346
codegen: memmove/memset cannot be non-temporal
RalfJung May 9, 2024
ce11a86
Rollup merge of #124797 - beetrees:primitive-float, r=davidtwco
matthiaskrgr May 10, 2024
06f1ba4
Auto merge of #124972 - matthiaskrgr:rollup-3fablim, r=matthiaskrgr
bors May 10, 2024
21f58e4
Rename Unsafe to Safety
spastorino May 17, 2024
cae9e7e
Stop using `to_hir_binop` in codegen
scottmcm May 22, 2024
29fc479
rustc_codegen_llvm: add support for writing summary bitcode
durin42 Jan 19, 2024
4a79b06
rustc_codegen_gcc: fix changed method signature
durin42 May 23, 2024
a1d2933
Rollup merge of #125345 - durin42:thin-link-bitcode, r=bjorn3
GuillaumeGomez May 23, 2024
b2d3981
Uplift TypeRelation and Relate
compiler-errors May 31, 2024
d565d3d
ScalarInt: size mismatches are a bug, do not delay the panic
RalfJung Jun 8, 2024
527b357
Use a dedicated type instead of a reference for the diagnostic context
oli-obk Jun 18, 2024
cb1bde0
Remove redundant argument from `subdiagnostic` method
oli-obk Jun 18, 2024
8c5d84d
Add blank lines after module-level `//!` comments.
nnethercote Jun 19, 2024
9d25e85
Remove const_bitcast from ConstMethods
bjorn3 Mar 30, 2024
8a1e581
Remove check_overflow method from MiscMethods
bjorn3 Mar 30, 2024
994041a
Remove type_i1 and type_struct from cg_ssa
bjorn3 Mar 30, 2024
8e819fb
Fix libcore patch
GuillaumeGomez Mar 26, 2024
f848dbb
Fix non-master build
GuillaumeGomez Mar 26, 2024
580e5ba
Format code
GuillaumeGomez May 15, 2024
2631668
Update libgccjit version
GuillaumeGomez Mar 27, 2024
9b1211d
Fix casts
GuillaumeGomez Apr 3, 2024
7615e04
Fix usage of `get_size` for gcc 12
GuillaumeGomez Apr 3, 2024
fd7979d
Remove usage of `-Zno-parallel-llvm`
GuillaumeGomez Mar 27, 2024
621e948
Fix clippy lint
GuillaumeGomez Mar 27, 2024
a89f178
Fix stdarch crate add patch
GuillaumeGomez Apr 2, 2024
068fe5d
If the type of a global is not the same, we remove the global and rep…
GuillaumeGomez Apr 19, 2024
684a69b
Update gcc version to 272d0ccced960394fe6ff2b40b01610208cb4940
GuillaumeGomez Apr 25, 2024
30ee7ba
Add shl and shr missing casts
GuillaumeGomez May 21, 2024
ca65404
Add missing cast for function_ptr arguments
GuillaumeGomez May 21, 2024
527c049
Fix warnings
GuillaumeGomez May 21, 2024
dd4a546
Add explanations for ptr func call argument cast
GuillaumeGomez May 22, 2024
0ffcbb0
Remove the hack in zext
antoyo Jun 12, 2024
e8e6663
Fix provenance intrinsics
antoyo Jun 18, 2024
9ca7658
Fix tests
antoyo Jun 18, 2024
21b1b11
WIP: Implement dummy ThinLTO
antoyo Jun 26, 2024
bbc765b
Fix clippy warnings
antoyo Jun 28, 2024
2ecab99
Fix build failure in cfg-if
GuillaumeGomez Jun 28, 2024
606196b
Comment libgccjit 12 CI
antoyo Jun 30, 2024
cd014cd
Replace the type of global variables instead of replacing them
antoyo Jul 2, 2024
4d3d0d4
Fix intrinsic/generic-arithmetic-pass.rs test
antoyo Jul 2, 2024
ee41c19
Update to nightly-2024-07-02
antoyo Jul 2, 2024
05a41b8
Merge branch 'master' into sync_from_rust_2024_07_02
antoyo Jul 2, 2024
6099d97
Fix rebase
antoyo Jul 2, 2024
63d308b
Fix broken libgccjit 12 CI
antoyo Jul 2, 2024
59de4fa
Fix type of intrinsics
antoyo Jun 28, 2024
3e91e16
Ignore a stdarch test that will fail until the stdarch version in rus…
antoyo Jul 2, 2024
fc2eee5
Ignore more tests
antoyo Jul 2, 2024
2d123d0
Fix LTO tests
antoyo Jul 5, 2024
bc8520d
Revert "Fix LTO tests"
antoyo Jul 5, 2024
fe054be
Second attempt at fixing LTO tests
antoyo Jul 5, 2024
14d327a
Disable run-make tests
antoyo Jul 5, 2024
0b5be44
Fix for gcc-13 without int128
antoyo Jul 5, 2024
5681c3c
Cleanup
antoyo Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/failures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,16 @@ jobs:
run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt

- name: Run tests
# TODO: re-enable those tests for libgccjit 12.
if: matrix.libgccjit_version.gcc != 'libgccjit12.so'
id: tests
run: |
${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --clean --build-sysroot --test-failing-rustc ${{ matrix.libgccjit_version.extra }} | tee output_log
rg --text "test result" output_log >> $GITHUB_STEP_SUMMARY

- name: Run failing ui pattern tests for ICE
# TODO: re-enable those tests for libgccjit 12.
if: matrix.libgccjit_version.gcc != 'libgccjit12.so'
id: ui-tests
run: |
${{ matrix.libgccjit_version.env_extra }} ./y.sh test --release --test-failing-ui-pattern-tests ${{ matrix.libgccjit_version.extra }} | tee output_log_ui
Expand Down
40 changes: 21 additions & 19 deletions .github/workflows/gcc12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,24 @@ jobs:
- name: Build
run: |
./y.sh prepare --only-libcore --libgccjit12-patches
./y.sh build --sysroot --no-default-features --sysroot-panic-abort
cargo test --no-default-features
./y.sh clean all

- name: Prepare dependencies
run: |
git config --global user.email "[email protected]"
git config --global user.name "User"
./y.sh prepare --libgccjit12-patches

- name: Add more failing tests for GCC 12
run: cat tests/failing-ui-tests12.txt >> tests/failing-ui-tests.txt

- name: Add more failing tests because the sysroot is not compiled with LTO
run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt

- name: Run tests
run: |
./y.sh test --release --clean --build-sysroot ${{ matrix.commands }} --no-default-features
./y.sh build --no-default-features --sysroot-panic-abort
# Uncomment when we no longer need to remove global variables.
#./y.sh build --sysroot --no-default-features --sysroot-panic-abort
#cargo test --no-default-features
#./y.sh clean all

#- name: Prepare dependencies
#run: |
#git config --global user.email "[email protected]"
#git config --global user.name "User"
#./y.sh prepare --libgccjit12-patches

#- name: Add more failing tests for GCC 12
#run: cat tests/failing-ui-tests12.txt >> tests/failing-ui-tests.txt

#- name: Add more failing tests because the sysroot is not compiled with LTO
#run: cat tests/failing-non-lto-tests.txt >> tests/failing-ui-tests.txt

#- name: Run tests
#run: |
#./y.sh test --release --clean --build-sysroot ${{ matrix.commands }} --no-default-features
3 changes: 2 additions & 1 deletion .github/workflows/stdarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ jobs:
if: ${{ matrix.cargo_runner }}
run: |
# FIXME: these tests fail when the sysroot is compiled with LTO because of a missing symbol in proc-macro.
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a
# TODO: remove --skip test_mm512_stream_ps when stdarch is updated in rustc.
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a --skip test_mm512_stream_ps
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ master = ["gccjit/master"]
default = ["master"]

[dependencies]
gccjit = { git = "https://github.com/antoyo/gccjit.rs" }
gccjit = "2.1"

# Local copy.
#gccjit = { path = "../gccjit.rs" }
Expand Down
3 changes: 1 addition & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ If you compiled cg_gccjit in debug mode (aka you didn't pass `--release` to `./y

### LTO

To use LTO, you need to set the variable `FAT_LTO=1` and `EMBED_LTO_BITCODE=1` in addition to setting `lto = "fat"` in the `Cargo.toml`.
Don't set `FAT_LTO` when compiling the sysroot, though: only set `EMBED_LTO_BITCODE=1`.
To use LTO, you need to set the variable `EMBED_LTO_BITCODE=1` in addition to setting `lto = "fat"` in the `Cargo.toml`.

Failing to set `EMBED_LTO_BITCODE` will give you the following error:

Expand Down
5 changes: 0 additions & 5 deletions build_system/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,6 @@ impl ConfigInfo {
rustflags.push("-Csymbol-mangling-version=v0".to_string());
}

// Since we don't support ThinLTO, disable LTO completely when not trying to do LTO.
// TODO(antoyo): remove when we can handle ThinLTO.
if !env.contains_key(&"FAT_LTO".to_string()) {
rustflags.push("-Clto=off".to_string());
}
// FIXME(antoyo): remove once the atomic shim is gone
if os_name == "Darwin" {
rustflags.extend_from_slice(&[
Expand Down
20 changes: 13 additions & 7 deletions build_system/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,12 +645,16 @@ fn test_projects(env: &Env, args: &TestArg) -> Result<(), String> {
//"https://github.com/rust-lang/cargo", // TODO: very slow, only run on master?
];

let mut env = env.clone();
let rustflags =
format!("{} --cap-lints allow", env.get("RUSTFLAGS").cloned().unwrap_or_default());
env.insert("RUSTFLAGS".to_string(), rustflags);
let run_tests = |projects_path, iter: &mut dyn Iterator<Item = &&str>| -> Result<(), String> {
for project in iter {
let clone_result = git_clone_root_dir(project, projects_path, true)?;
let repo_path = Path::new(&clone_result.repo_dir);
run_cargo_command(&[&"build", &"--release"], Some(repo_path), env, args)?;
run_cargo_command(&[&"test"], Some(repo_path), env, args)?;
run_cargo_command(&[&"build", &"--release"], Some(repo_path), &env, args)?;
run_cargo_command(&[&"test"], Some(repo_path), &env, args)?;
}

Ok(())
Expand Down Expand Up @@ -1034,18 +1038,19 @@ where
}

fn test_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
test_rustc_inner(env, args, |_| Ok(false), false, "run-make")?;
//test_rustc_inner(env, args, |_| Ok(false), false, "run-make")?;
test_rustc_inner(env, args, |_| Ok(false), false, "ui")
}

fn test_failing_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
let result1 = test_rustc_inner(
let result1 = Ok(());
/*test_rustc_inner(
env,
args,
retain_files_callback("tests/failing-run-make-tests.txt", "run-make"),
false,
"run-make",
);
)*/

let result2 = test_rustc_inner(
env,
Expand All @@ -1066,13 +1071,14 @@ fn test_successful_rustc(env: &Env, args: &TestArg) -> Result<(), String> {
false,
"ui",
)?;
test_rustc_inner(
Ok(())
/*test_rustc_inner(
env,
args,
remove_files_callback("tests/failing-run-make-tests.txt", "run-make"),
false,
"run-make",
)
)*/
}

fn test_failing_ui_pattern_tests(env: &Env, args: &TestArg) -> Result<(), String> {
Expand Down
2 changes: 1 addition & 1 deletion example/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fn array_as_slice(arr: &[u8; 3]) -> &[u8] {
arr
}

unsafe fn use_ctlz_nonzero(a: u16) -> u16 {
unsafe fn use_ctlz_nonzero(a: u16) -> u32 {
intrinsics::ctlz_nonzero(a)
}

Expand Down
33 changes: 31 additions & 2 deletions example/mini_core.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![feature(
no_core, lang_items, intrinsics, unboxed_closures, type_ascription, extern_types,
decl_macro, rustc_attrs, transparent_unions, auto_traits,
decl_macro, rustc_attrs, transparent_unions, auto_traits, freeze_impls,
thread_local
)]
#![no_core]
Expand Down Expand Up @@ -418,6 +418,35 @@ pub fn panic(_msg: &'static str) -> ! {
}
}

macro_rules! panic_const {
($($lang:ident = $message:expr,)+) => {
pub mod panic_const {
use super::*;

$(
#[track_caller]
#[lang = stringify!($lang)]
pub fn $lang() -> ! {
panic($message);
}
)+
}
}
}

panic_const! {
panic_const_add_overflow = "attempt to add with overflow",
panic_const_sub_overflow = "attempt to subtract with overflow",
panic_const_mul_overflow = "attempt to multiply with overflow",
panic_const_div_overflow = "attempt to divide with overflow",
panic_const_rem_overflow = "attempt to calculate the remainder with overflow",
panic_const_neg_overflow = "attempt to negate with overflow",
panic_const_shr_overflow = "attempt to shift right with overflow",
panic_const_shl_overflow = "attempt to shift left with overflow",
panic_const_div_by_zero = "attempt to divide by zero",
panic_const_rem_by_zero = "attempt to calculate the remainder with a divisor of zero",
}

#[lang = "panic_cannot_unwind"]
fn panic_cannot_unwind() -> ! {
unsafe {
Expand Down Expand Up @@ -563,7 +592,7 @@ pub mod intrinsics {
pub fn min_align_of_val<T: ?Sized>(val: *const T) -> usize;
pub fn copy<T>(src: *const T, dst: *mut T, count: usize);
pub fn transmute<T, U>(e: T) -> U;
pub fn ctlz_nonzero<T>(x: T) -> T;
pub fn ctlz_nonzero<T>(x: T) -> u32;
#[rustc_safe_intrinsic]
pub fn needs_drop<T: ?Sized>() -> bool;
#[rustc_safe_intrinsic]
Expand Down
6 changes: 2 additions & 4 deletions example/mini_core_hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#![feature(
no_core, unboxed_closures, start, lang_items, never_type, linkage,
extern_types, thread_local
extern_types, thread_local, raw_ref_op
)]
#![no_core]
#![allow(dead_code, internal_features, non_camel_case_types)]
Expand Down Expand Up @@ -99,9 +99,7 @@ fn start<T: Termination + 'static>(

static mut NUM: u8 = 6 * 7;

// FIXME: Use `SyncUnsafeCell` instead of allowing `static_mut_refs` lint
#[allow(static_mut_refs)]
static NUM_REF: &'static u8 = unsafe { &NUM };
static NUM_REF: &'static u8 = unsafe { &* &raw const NUM };

macro_rules! assert {
($e:expr) => {
Expand Down
4 changes: 2 additions & 2 deletions example/std_example.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![allow(internal_features)]
#![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted)]
#![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted, stmt_expr_attributes)]

#[cfg(feature="master")]
#[cfg(target_arch="x86_64")]
Expand Down Expand Up @@ -103,7 +103,7 @@ fn main() {
test_simd();
}

Box::pin(move |mut _task_context| {
Box::pin(#[coroutine] move |mut _task_context| {
yield ();
}).as_mut().resume(0);

Expand Down
2 changes: 1 addition & 1 deletion libgccjit.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d61ce945badf4c9d8237a13ca135e3c46ad13be3
341be3b7d7ac6976cfed8ed59da3573c040d0776
2 changes: 1 addition & 1 deletion patches/0001-Add-stdarch-Cargo.toml-for-testing.patch
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ index 0000000..4c63700
+members = [
+ "crates/core_arch",
+ "crates/std_detect",
+ "crates/stdarch-gen",
+ "crates/stdarch-gen-arm",
+ #"examples/"
+]
+exclude = [
Expand Down
2 changes: 1 addition & 1 deletion patches/0022-core-Disable-not-compiling-tests.patch
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ index 42a26ae..5ac1042 100644
+#![cfg(test)]
#![feature(alloc_layout_extra)]
#![feature(array_chunks)]
#![feature(array_windows)]
#![feature(array_ptr_get)]
14 changes: 7 additions & 7 deletions patches/libgccjit12/0001-core-Disable-portable-simd-test.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From a5663265f797a43c502915c356fe7899c16cee92 Mon Sep 17 00:00:00 2001
From 124a11ce086952a5794d5cfbaa45175809497b81 Mon Sep 17 00:00:00 2001
From: None <[email protected]>
Date: Sat, 18 Nov 2023 10:50:36 -0500
Subject: [PATCH] [core] Disable portable-simd test
Expand All @@ -8,18 +8,18 @@ Subject: [PATCH] [core] Disable portable-simd test
1 file changed, 2 deletions(-)

diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
index d0a119c..76fdece 100644
index b71786c..cf484d5 100644
--- a/library/core/tests/lib.rs
+++ b/library/core/tests/lib.rs
@@ -89,7 +89,6 @@
@@ -95,7 +95,6 @@
#![feature(never_type)]
#![feature(unwrap_infallible)]
#![feature(pointer_is_aligned)]
#![feature(pointer_is_aligned_to)]
-#![feature(portable_simd)]
#![feature(ptr_metadata)]
#![feature(lazy_cell)]
#![feature(unsized_tuple_coercion)]
@@ -155,7 +154,6 @@ mod pin;
#![feature(const_option)]
@@ -157,7 +156,6 @@ mod pin;
mod pin_macro;
mod ptr;
mod result;
Expand All @@ -28,5 +28,5 @@ index d0a119c..76fdece 100644
mod str;
mod str_lossy;
--
2.42.1
2.45.2

2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-03-10"
channel = "nightly-2024-07-02"
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
2 changes: 1 addition & 1 deletion src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
let builtin_unreachable = self.context.get_builtin_function("__builtin_unreachable");
let builtin_unreachable: RValue<'gcc> =
unsafe { std::mem::transmute(builtin_unreachable) };
self.call(self.type_void(), None, None, builtin_unreachable, &[], None);
self.call(self.type_void(), None, None, builtin_unreachable, &[], None, None);
}

// Write results to outputs.
Expand Down
Loading
Loading