Commit Graph

4378 Commits

Author SHA1 Message Date
Oli Scherer
dda4709b1c Error on using yield without also using #[coroutine] on the closure
And suggest adding the `#[coroutine]` to the closure
2024-04-24 08:05:29 +00:00
Matthias Krüger
36449f8cd6 Rollup merge of #124286 - bjorn3:sync_cg_clif-2024-04-23, r=bjorn3
Subtree sync for rustc_codegen_cranelift

This fixes a crash when compiling the standard library. In addition the Cranelift update fixes all the 128bit int abi incompatibility between cg_clif and cg_llvm.

r? ``@ghost``

``@rustbot`` label +A-codegen +A-cranelift +T-compiler
2024-04-23 20:17:52 +02:00
Matthias Krüger
6a2ad55108 Rollup merge of #124003 - WaffleLapkin:dellvmization, r=scottmcm,RalfJung,antoyo
Dellvmize some intrinsics (use `u32` instead of `Self` in some integer intrinsics)

This implements https://github.com/rust-lang/compiler-team/issues/693 minus what was implemented in #123226.

Note: I decided to _not_ change `shl`/... builder methods, as it just doesn't seem worth it.

r? ``@scottmcm``
2024-04-23 20:17:51 +02:00
bjorn3
1122338eb8 Merge branch 'sync_from_rust' 2024-04-23 14:59:26 +00:00
bjorn3
f7627c3baa Fix broken subtree sync 2024-04-23 14:56:13 +00:00
bjorn3
4ad6c6c581 Merge commit 'de5d6523738fd44a0521b6abf3e73ae1df210741' into sync_cg_clif-2024-04-23 2024-04-23 09:37:28 +00:00
bjorn3
de5d652373 Rustup to rustc 1.79.0-nightly (7f2fc33da 2024-04-22) 2024-04-23 09:32:36 +00:00
bjorn3
041666a0bd Update abi-cafe ui128 test expectations 2024-04-22 21:04:56 +00:00
bjorn3
6ec27fe9da Update to Cranelift 0.107 2024-04-22 21:04:48 +00:00
bjorn3
2c6ef5a2d0 Update a couple of crates 2024-04-22 19:25:51 +00:00
bjorn3
966e269351 Update data structure crates 2024-04-22 19:25:00 +00:00
bjorn3
cea3e7da8c Update syn, quote and proc-macro2 2024-04-22 19:22:52 +00:00
bjorn3
c02f6c57e9 Update windows-trgets to 0.52.5 2024-04-22 19:18:21 +00:00
bjorn3
d569c84f07 Update libloading
This removes one copy of the windows bindings
2024-04-22 19:17:02 +00:00
bjorn3
498dbbd018 Fix warning in alloc_system.rs 2024-04-22 17:10:30 +00:00
bjorn3
569df1dad3 Inline CValue::pointer_from_data_and_meta
It only has a single use and doesn't need access to CValue internals.
2024-04-22 17:03:48 +00:00
bjorn3
8bf1687879 Fix neon test on non arm64 targets 2024-04-22 16:57:07 +00:00
bjorn3
d0c5141257 Rustup to rustc 1.79.0-nightly (fb898629a 2024-04-21) 2024-04-22 16:56:37 +00:00
bjorn3
8bc15fb2da Sync from rust fb898629a2 2024-04-22 16:37:40 +00:00
bjorn3
a74d6c2125 Only apply --cap-lints to the extended_sysroot test suite 2024-04-22 16:32:30 +00:00
Scott McMurray
e654877b2f Also handle AggregateKind::RawPtr in cg_cranelift 2024-04-21 11:08:37 -07:00
bjorn3
72e6f0cc16 Remove a couple of items from the crate prelude 2024-04-21 17:35:09 +00:00
许杰友 Jieyou Xu (Joe)
be9d7ca977 Rollup merge of #123967 - RalfJung:static_mut_refs, r=Nilstrieb
static_mut_refs: use raw pointers to remove the remaining FIXME

Using `SyncUnsafeCell` would not make a lot of sense IMO.
2024-04-20 21:45:35 +01:00
bjorn3
9ad96205cb Don't create data object for zero sized allocations 2024-04-20 18:49:00 +00:00
bjorn3
82dd93fb57 Rustup to rustc 1.79.0-nightly (f9b161492 2024-04-19) 2024-04-20 17:25:06 +00:00
bjorn3
4027a520d2 Sync from rust f9b1614920 2024-04-20 17:19:28 +00:00
Maybe Waffle
d5273fff48 Do intrinsic changes in rustc_codegen_cranelift 2024-04-19 18:45:25 +00:00
bors
a2a949b031 Auto merge of #124113 - RalfJung:interpret-scalar-ops, r=oli-obk
interpret: use ScalarInt for bin-ops; avoid PartialOrd for ScalarInt

Best reviewed commit-by-commit

r? `@oli-obk`
2024-04-19 17:00:28 +00:00
Michael Baikov
0a298ed00b Show files produced by --emit foo in json artifact notifications 2024-04-19 08:31:41 -04:00
Ralf Jung
f532309674 ScalarInt: add methods to assert being a (u)int of given size 2024-04-19 13:51:52 +02:00
Chris Denton
fbac8ef01c Cranelift: Revert raw-dylib for Windows futex APIs 2024-04-16 15:53:35 +00:00
Ralf Jung
9e4e444a47 static_mut_refs: use raw pointers to remove the remaining FIXME 2024-04-15 18:45:56 +02:00
bjorn3
5075386e82 Rustup to rustc 1.79.0-nightly (0d8b3346a 2024-04-14) 2024-04-15 14:25:25 +00:00
bjorn3
49ad3ae2f8
Merge pull request #1481 from taiki-e/asm-maybe-uninit
Allow MaybeUninit in input and output of inline assembly
2024-04-14 11:50:53 +02:00
Taiki Endo
71e7414924 Allow MaybeUninit in input and output of inline assembly 2024-04-14 18:16:00 +09:00
bjorn3
bf02a87b24 Merge branch 'sync_from_rust' 2024-04-11 10:45:14 +00:00
bjorn3
e243f8d0e3 Merge commit '89f54caacf90e99fc8ba0d60a28bdadea3cfdf1e' into sync_cg_clif-2024-04-11 2024-04-11 10:42:48 +00:00
bjorn3
89f54caacf Reenable fixed rustc tests 2024-04-11 10:16:50 +00:00
bjorn3
d37f6d821d Fix rustc tests 2024-04-11 10:13:17 +00:00
bjorn3
8a5eecc897 Rustup to rustc 1.79.0-nightly (aa067fb98 2024-04-10) 2024-04-11 09:59:43 +00:00
bjorn3
c183c6194e Sync from rust aa067fb984 2024-04-11 09:45:27 +00:00
Ben Kimock
da09eadbab Only traverse mono-reachable blocks in cg_clif 2024-04-07 16:46:21 -04:00
bjorn3
f7cc528deb Restore required permission for the release job 2024-04-07 17:31:44 +00:00
bjorn3
6bab2e750b Fix showing error details in the dev release action 2024-04-07 17:31:26 +00:00
bjorn3
0328ee571b Fix caching on Cirrus CI 2024-04-07 16:36:41 +00:00
bjorn3
39b25b3d71 Don't emit unwind tables on macOS
They don't work anyway as object misses support for emitting the
particular format macOS expects. And on arm64 macOS it causes
compilation to abort due to an unsupported relocation type.

Fixes rust-lang/rustc_codegen_cranelift#1371
2024-04-07 16:29:04 +00:00
bors
5d765b8cc1 Auto merge of #123221 - pacak:cache_emit, r=fmease,jieyouxu
Save/restore more items in cache with incremental compilation

Right now they don't play very well together, consider a simple example:

```
$ export RUSTFLAGS="--emit asm"
$ cargo new --lib foo
     Created library `foo` package
$ cargo build -q
$ touch src/lib.rs
$ cargo build
error: could not copy
  "/path/to/foo/target/debug/deps/foo-e307cc7fa7b6d64f.4qbzn9k8mosu50a5.rcgu.s"
  to "/path/to/foo/target/debug/deps/foo-e307cc7fa7b6d64f.s":
  No such file or directory (os error 2)
```

Touch triggers the rebuild, incremental compilation detects no changes (yay) and everything explodes while trying to copy files were they should go.

This pull request fixes it by copying and restoring more files in the incremental compilation cache

Fixes https://github.com/rust-lang/rust/issues/89149
Fixes https://github.com/rust-lang/rust/issues/88829

Related: https://internals.rust-lang.org/t/interaction-between-incremental-compilation-and-emit/20551
2024-04-07 10:46:50 +00:00
Ben Kimock
3549d9806d Put checks that detect UB under their own flag below debug_assertions 2024-04-06 11:21:47 -04:00
Michael Baikov
6669758fb3 Save/restore more items in cache with incremental compilation 2024-04-06 10:59:24 -04:00
bjorn3
0f1ee59ea5 Disable failing rand tests on FreeBSD 2024-04-06 14:05:30 +00:00