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/10/08 #565

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
12ede21
Miri function identity hack: account for possible inlining
RalfJung Jul 2, 2024
014888b
Give Instance::expect_resolve a span
compiler-errors Jun 12, 2024
ea94385
Fix spans
compiler-errors Jul 1, 2024
5b91a1a
Auto merge of #123781 - RalfJung:miri-fn-identity, r=oli-obk
bors Jul 4, 2024
76f43e6
Sync ar_archive_writer to LLVM 18.1.3
bjorn3 Apr 16, 2024
c92f054
Merge commit '98ed962c7d3eebe12c97588e61245273d265e72f' into master
GuillaumeGomez Jul 10, 2024
35c605a
Update `Cargo.lock` and remove duplicated impl
GuillaumeGomez Jul 10, 2024
9a9d5ec
Remove lang feature for type ascription
compiler-errors Jul 11, 2024
062ef84
Rollup merge of #124033 - bjorn3:ar_archive_writer_0_3_0, r=davidtwco
tgross35 Jul 16, 2024
f8bc0cc
Align cg_gcc rustfmt.toml with rust's
GuillaumeGomez Jul 17, 2024
a2cb29f
Format cg_gcc with same formatting parameters
GuillaumeGomez Jul 17, 2024
1e117cf
stabilize `is_sorted`
slanterns Jul 27, 2024
d816dac
Reformat `use` declarations.
nnethercote Jul 28, 2024
0e520c8
Update compiler_builtins to 0.1.114
nicholasbishop May 11, 2024
cc0ca37
Auto merge of #125016 - nicholasbishop:bishop-cb-112, r=tgross35
bors Jul 29, 2024
8f3b3fe
Move temp file name generation out of the create_dll_import_lib method
bjorn3 Jul 25, 2024
67d7e92
Move computation of decorated names out of the create_dll_import_lib …
bjorn3 Jul 25, 2024
1361fdc
nontemporal_store: make sure that the intrinsic is truly just a hint
RalfJung Jul 24, 2024
2e1d51d
Refactor and fill out target feature lists
calebzulawski Aug 2, 2024
f0bcdea
Hide implicit target features from diagnostics when possible
calebzulawski Aug 5, 2024
db83e29
Rollup merge of #128221 - calebzulawski:implied-target-features, r=Am…
matthiaskrgr Aug 7, 2024
7969ae3
const vector passed to codegen
Jamesbarford Aug 8, 2024
303aef2
Update compiler-builtins version to 0.1.118
GuillaumeGomez Aug 8, 2024
e8ade24
Shrink `TyKind::FnPtr`.
nnethercote Aug 8, 2024
18c7d54
Fixes in various places
Nadrieril Mar 20, 2024
c5172fd
Rollup merge of #128149 - RalfJung:nontemporal_store, r=jieyouxu,Aman…
GuillaumeGomez Aug 12, 2024
13e7329
Rollup merge of #128537 - Jamesbarford:118980-const-vector, r=RalfJun…
GuillaumeGomez Aug 12, 2024
dccb0fe
rename `./x test`'s `--rustc-args` to `--compiletest-rustc-args`
lqd Aug 12, 2024
d6c8e0f
simd_shuffle intrinsic: allow argument to be passed as vector (not ju…
RalfJung Aug 6, 2024
7a151d5
make the GCC backend compatible with vector shuffle indices
RalfJung Aug 6, 2024
52b5ccb
Rollup merge of #128841 - lqd:rustc-args, r=onur-ozkan
matthiaskrgr Aug 13, 2024
bf5d862
stabilize `asm_const`
folkertdev Aug 10, 2024
1bdeb98
Auto merge of #128812 - nnethercote:shrink-TyKind-FnPtr, r=compiler-e…
bors Aug 14, 2024
5ea1a17
Rollup merge of #128570 - folkertdev:stabilize-asm-const, r=Amanieu
jieyouxu Aug 14, 2024
9d12735
stabilize raw_ref_op
RalfJung Jul 13, 2024
f1d136b
Rollup merge of #128731 - RalfJung:simd-shuffle-vector, r=workingjubilee
tgross35 Aug 27, 2024
37c29b8
Use sysroot crates maximally in `rustc_codegen_gcc`.
nnethercote Sep 2, 2024
dd3f34c
Don't leave debug locations for constants sitting on the builder inde…
khuey Sep 6, 2024
72d31e9
Remove `serialized_bitcode` from `LtoModuleCodegen`.
nnethercote Sep 5, 2024
377e810
Rollup merge of #129981 - nnethercote:rm-serialize_bitcode, r=antoyo,…
workingjubilee Sep 10, 2024
0f1df89
Auto merge of #130052 - khuey:clear-dilocation-after-const-emission, …
bors Sep 13, 2024
ec1545d
simd_shuffle: require index argument to be a vector
RalfJung Sep 12, 2024
6ecaca1
Merge `HasCodegen` into `BuilderMethods`.
nnethercote Sep 16, 2024
748a44b
Rename `{ArgAbi,IntrinsicCall}Methods`.
nnethercote Sep 16, 2024
6beb6f8
Rename supertraits of `CodegenMethods`.
nnethercote Sep 17, 2024
9ed19dc
Use associative type defaults in `{Layout,FnAbi}OfHelpers`.
nnethercote Sep 16, 2024
4cae366
replace some deprecated functions
Luv-Ray Sep 19, 2024
6c69e2f
Reorder `ConstMethods`.
nnethercote Sep 18, 2024
62d8df5
Support clobber_abi and vector/access registers (clobber-only) in s39…
taiki-e Sep 20, 2024
d3903c8
Reformat using the new identifier sorting from rustfmt
compiler-errors Sep 22, 2024
decad31
Check vtable projections for validity in miri
compiler-errors Sep 23, 2024
3862f62
Auto merge of #130389 - Luv-Ray:LLVMMDNodeInContext2, r=nikic
bors Sep 24, 2024
bd076c3
Merge commit '3187d32079b817522cc17413ec9185b130daf693' into subtree-…
GuillaumeGomez Sep 27, 2024
ce09fbf
Fmt
GuillaumeGomez Sep 27, 2024
b235273
Replace -Z default-hidden-visibility with -Z default-visibility
davidlattimore Sep 30, 2024
1613531
Rollup merge of #130630 - taiki-e:s390x-clobber-abi, r=Amanieu
GuillaumeGomez Oct 1, 2024
e1441b7
Auto merge of #131111 - matthiaskrgr:rollup-n6do187, r=matthiaskrgr
bors Oct 1, 2024
ad752f6
Use wide pointers consistenly across the compiler
Urgau Oct 3, 2024
a3f50d1
Merge branch 'master' into sync_from_rust_2024_10_08
antoyo Oct 8, 2024
7578768
Update GCC version
antoyo Oct 8, 2024
290fb0f
Add missing dependency and rename UI tests
antoyo Oct 8, 2024
f3e7c3d
Fix clippy warnings
antoyo Oct 8, 2024
931e6bd
Fix simd_gather
antoyo Oct 8, 2024
32b4cb4
Fix tests
antoyo Oct 10, 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
141 changes: 57 additions & 84 deletions Cargo.lock

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

12 changes: 2 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,10 @@ gccjit = "2.2"
# Local copy.
#gccjit = { path = "../gccjit.rs" }

object = { version = "0.30.1", default-features = false, features = [
"std",
"read",
] }
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
# TODO(antoyo): make tempfile optional.
tempfile = "3.7.1"

[dev-dependencies]
lang_tester = "0.8.0"
tempfile = "3.1.0"
boml = "0.3.1"
lang_tester = "0.8.0"
tempfile = "3.7.1"

[profile.dev]
# By compiling dependencies with optimizations, performing tests gets much faster.
Expand Down
2 changes: 1 addition & 1 deletion build_system/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::ffi::OsStr;
use std::path::{Path, PathBuf};
use std::{env as std_env, fs};

use boml::types::TomlValue;
use boml::Toml;
use boml::types::TomlValue;

use crate::utils::{
create_dir, create_symlink, get_os_name, get_sysroot_dir, run_command_with_output,
Expand Down
6 changes: 3 additions & 3 deletions build_system/src/test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::HashMap;
use std::ffi::OsStr;
use std::fs::{remove_dir_all, File};
use std::fs::{File, remove_dir_all};
use std::io::{BufRead, BufReader};
use std::path::{Path, PathBuf};
use std::str::FromStr;
Expand Down Expand Up @@ -563,7 +563,7 @@ fn asm_tests(env: &Env, args: &TestArg) -> Result<(), String> {
&"--stage",
&"0",
&"tests/assembly/asm",
&"--rustc-args",
&"--compiletest-rustc-args",
&rustc_args,
],
Some(&rust_dir),
Expand Down Expand Up @@ -1032,7 +1032,7 @@ where
&"--stage",
&"0",
&format!("tests/{}", test_type),
&"--rustc-args",
&"--compiletest-rustc-args",
&rustc_args,
],
Some(&rust_path),
Expand Down
2 changes: 1 addition & 1 deletion build_system/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashMap;
use std::ffi::OsStr;
#[cfg(unix)]
use std::ffi::c_int;
use std::ffi::OsStr;
use std::fmt::Debug;
use std::fs;
#[cfg(unix)]
Expand Down
2 changes: 1 addition & 1 deletion 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, raw_ref_op
extern_types, thread_local
)]
#![no_core]
#![allow(dead_code, internal_features, non_camel_case_types)]
Expand Down
2 changes: 1 addition & 1 deletion libgccjit.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a71dd583ec21d3695256471842db1f24e6ac5e9e
3f865a02a6b052017e455f9095af56529e37820c
13 changes: 7 additions & 6 deletions patches/0022-core-Disable-not-compiling-tests.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 18793c6109890493ceb3ff36549849a36e3d8022 Mon Sep 17 00:00:00 2001
From af0e237f056fa838c77463381a19b0dc993c0a35 Mon Sep 17 00:00:00 2001
From: None <[email protected]>
Date: Sun, 1 Sep 2024 11:42:17 -0400
Subject: [PATCH] [core] Disable not compiling tests
Subject: [PATCH] Disable not compiling tests

---
library/core/tests/Cargo.toml | 14 ++++++++++++++
Expand Down Expand Up @@ -30,14 +30,15 @@ index 0000000..ca326ac
+rand = { version = "0.8.5", default-features = false }
+rand_xorshift = { version = "0.3.0", default-features = false }
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
index 1e336bf..5800ebb 100644
index 196e91e..47e26a5 100644
--- a/library/core/tests/lib.rs
+++ b/library/core/tests/lib.rs
@@ -1,4 +1,5 @@
// tidy-alphabetical-start
+#![cfg(test)]
#![cfg_attr(bootstrap, feature(offset_of_nested))]
#![cfg_attr(bootstrap, feature(const_mut_refs))]
#![cfg_attr(target_has_atomic = "128", feature(integer_atomics))]
#![cfg_attr(test, feature(cfg_match))]
--
2.46.0
--
2.46.2

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ index b71786c..cf484d5 100644
mod slice;
mod str;
mod str_lossy;
--
2.45.2

-- 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-08-11"
channel = "nightly-2024-10-08"
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
Loading
Loading