bjorn3
736fac8ab9
Sync from rust 432b1a4277
2022-11-03 12:09:35 +01:00
Amanieu d'Antras
b166ad0b1e
Rewrite implementation of #[alloc_error_handler]
...
The new implementation doesn't use weak lang items and instead changes
`#[alloc_error_handler]` to an attribute macro just like
`#[global_allocator]`.
The attribute will generate the `__rg_oom` function which is called by
the compiler-generated `__rust_alloc_error_handler`. If no `__rg_oom`
function is defined in any crate then the compiler shim will call
`__rdl_oom` in the alloc crate which will simply panic.
This also fixes link errors with `-C link-dead-code` with
`default_alloc_error_handler`: `__rg_oom` was previously defined in the
alloc crate and would attempt to reference the `oom` lang item, even if
it didn't exist. This worked as long as `__rg_oom` was excluded from
linking since it was not called.
This is a prerequisite for the stabilization of
`default_alloc_error_handler` (#102318 ).
2022-10-31 16:32:57 +00:00
bjorn3
777d4732dc
Fix transmuting from vector type to ScalarPair type
...
Fixes #1292
2022-10-29 13:47:10 +00:00
bjorn3
c57aacf3dd
Update GHA actions for Node.js 12 deprecation
2022-10-28 14:20:27 +00:00
bjorn3
e0ba71e39a
Ignore rustfmt for y.rs
2022-10-28 13:21:27 +00:00
bjorn3
f17dbfc933
Add rustdoc-clif wrapper
2022-10-28 12:51:15 +00:00
bjorn3
ddc66ffecc
Make rust-analyzer run flycheck on the build system
2022-10-28 12:48:51 +00:00
bjorn3
bd8be325ab
Better rust-analyzer.linkedProjects value
2022-10-28 09:54:17 +00:00
bjorn3
a24213d81b
Use 2021 edition for y.rs
2022-10-28 09:54:05 +00:00
bjorn3
5513583f3f
Stop using a deprecated function
2022-10-27 14:49:24 +00:00
bjorn3
d3fe9a8baa
Update to Cranelift 0.89.1
...
This removes the rayon dependency that requires the previous update to
Cranelift 0.89.0 to be reverted.
2022-10-27 14:48:52 +00:00
Maybe Waffle
33a92bc8b0
Update tooling
2022-10-27 18:41:26 +04:00
bjorn3
43d3e9261f
Check build system formatting on CI
2022-10-26 13:35:18 +00:00
bors
5e1872598c
Auto merge of #103392 - RalfJung:miri, r=oli-obk
...
update Miri
I had to use a hacked version of josh to create this, so let's be careful with merging this and maybe wait a bit to see if the josh issue becomes more clear. But the history looks good to me, we are not adding duplicates of rustc commits that were previously mirrored to Miri.
Also I want to add some cross-testing of Miri in x.py.
2022-10-25 12:33:39 +00:00
Daniel Paoliello
e3311e4717
Support raw-dylib functions being used inside inlined functions
2022-10-24 16:17:38 -07:00
bjorn3
b345c1e25a
Sync from rust 1481fd964b
2022-10-24 15:46:38 +02:00
bjorn3
63d1bf9920
Rustfmt cg_clif's build system
2022-10-23 16:43:48 +02:00
bjorn3
4029785c67
Merge branch 'sync_from_rust'
2022-10-23 16:24:46 +02:00
bjorn3
9950bd1dc5
Merge commit '266e96785ab71834b917bf474f130a6d8fdecd4b' into sync_cg_clif-2022-10-23
2022-10-23 16:22:55 +02:00
bjorn3
266e96785a
Revert "Update to Cranelift 0.89.0"
...
It added a lot of extra dependencies. I opened bytecodealliance/wasmtime#5101
to remove those dependencies again.
This reverts commit da770abea3
.
2022-10-23 16:16:58 +02:00
bjorn3
b930e2d722
Revert "Stop using a depracated function"
...
This reverts commit b1791eef6a
.
2022-10-23 16:16:58 +02:00
bjorn3
342bac9807
Fix drop for dyn*
2022-10-23 15:09:28 +02:00
bjorn3
2470ad30e6
Allow dyn* upcasting
2022-10-23 15:09:11 +02:00
bjorn3
7a9abf5ab2
Update rustc test suite failure list
2022-10-23 14:14:35 +02:00
bjorn3
63e3df3d32
Rustup to rustc 1.66.0-nightly ( 6e95b6da8
2022-10-22)
2022-10-23 13:50:51 +02:00
bjorn3
57984be8ea
Sync from rust e64f1110c0
2022-10-23 13:44:16 +02:00
bjorn3
b1791eef6a
Stop using a depracated function
2022-10-21 10:58:33 +00:00
bjorn3
da770abea3
Update to Cranelift 0.89.0
2022-10-21 10:55:20 +00:00
Ralf Jung
1e720cdb46
merge rustc history
2022-10-21 10:18:54 +02:00
Rageking8
54ee5ac073
more dupe word typos
2022-10-14 12:57:56 +08:00
bjorn3
019040d5b7
Merge pull request #1291 from bjorn3/build_system_rework2
...
Move downloaded test project to downloads/
2022-10-13 16:19:00 +02:00
bjorn3
24198ce6b4
Move all downloaded repos to the downloads/ dir
2022-10-13 13:21:55 +00:00
bjorn3
f1dc206c4f
Introduce GitRepo type
...
This will make it easier to move downloaded repos around
2022-10-13 13:19:01 +00:00
bjorn3
e1a7791fcb
Update rust-analyzer.linkedProjects
2022-10-13 13:16:06 +00:00
bjorn3
69297f9c86
Rustup to rustc 1.66.0-nightly ( a6b7274a4
2022-10-10)
2022-10-11 16:52:19 +02:00
bjorn3
7bf4e19cc1
Sync from rust bb93450ec4
2022-10-11 16:45:58 +02:00
Ralf Jung
55fe2b3fbf
merge rustc history
2022-10-09 12:42:24 +02:00
bors
31792f141b
Auto merge of #2583 - RalfJung:rustup, r=oli-obk
...
initial josh subtree sync
This demonstrates what a josh-based rustup would look like with my patched josh. To create it I did
```
git fetch http://localhost:8000/rust-lang/rust.git:start=75dd959a3a40eb5b4574f8d2e23aa6efbeb33573[:prefix=src/tools/miri]:/src/tools/miri.git master
git merge FETCH_HEAD
./rustup-toolchain HEAD && ./miri fmt
git commit -am rustup
```
Unlike the [previous attempt](https://github.com/rust-lang/miri/pull/2554 ), this does not add a new root commit to the repo.
Once we merge this, we committed to using josh for subtree syncing, and in particular a version of josh that includes https://github.com/josh-project/josh/pull/961 (or something compatible).
2022-10-08 08:53:29 +00:00
ouz-a
187b76965a
Remove mir::CastKind::Misc
2022-10-06 15:32:41 +03:00
bjorn3
dae6a30d0b
Remove workaround for rustbuild bug
2022-10-05 13:55:13 +02:00
bjorn3
1d1827413f
Rustup to rustc 1.66.0-nightly ( 01af5040f
2022-10-04)
2022-10-05 13:27:00 +02:00
bjorn3
d264e2fa05
Sync from rust d8613f792c
2022-10-05 13:15:08 +02:00
Urgau
102a577bb3
Stabilize bench_black_box
2022-09-27 17:38:51 +02:00
bjorn3
a53b445816
Merge pull request #1284 from afonso360/windows-fix
...
Add Windows CI
2022-09-27 14:18:58 +02:00
Afonso Bordado
6909219a29
Prefix artifact names with cg_clif
...
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
2022-09-27 12:42:27 +01:00
Afonso Bordado
4edf14520a
Use target triple artifact names
2022-09-27 12:35:42 +01:00
Afonso Bordado
a83ec3b6a4
Ignore rand tests
2022-09-27 12:33:19 +01:00
bjorn3
93703a4f1b
Merge pull request #1283 from bjorn3/update_cranelift
...
Update to Cranelift 0.88.1
2022-09-27 11:49:43 +02:00
Afonso Bordado
e96badc97f
Disable some rand tests on MinGW
2022-09-27 10:39:24 +01:00
bjorn3
fb71d8abea
Update to Cranelift 0.88.1
...
This fixes a regression of Atomic*::compare_exchange on AArch64
2022-09-27 08:31:22 +00:00