Commit Graph

303456 Commits

Author SHA1 Message Date
Trevor Gross
219f0b7082 Rollup merge of #140400 - durin42:llvm-21-getguid, r=cuviper
PassWrapper: adapt for llvm/llvm-project@d3d856ad84

LLVM 21 moves to making it more explicit what this function call is doing, but nothing has changed behaviorally, so for now we just adjust to using the new name of the function.

`@rustbot` label llvm-main
2025-04-29 12:28:24 -04:00
Trevor Gross
f7110fa756 Rollup merge of #140392 - Zalathar:goodbye-libtest, r=jieyouxu
compiletest: Remove the libtest-based executor and its dependency

Now that #140288 has landed and the new compiletest executor is used by default, we can now move forward with removing the libtest dependency from compiletest.

My hope is that after landing this, we can configure bootstrap to build compiletest with the pre-built stage0 library by default, instead of the in-tree stage0 library. That would give the stage0 redesign one less thing to worry about.

---

This PR has deliberately been kept small and simple, to make it easier to revert if necessary. Further cleanup can take palce after we're confident that it won't need to be reverted.

r? jieyouxu

Blocker for https://github.com/rust-lang/rust/pull/119899
2025-04-29 12:28:23 -04:00
Trevor Gross
6d589103e9 Rollup merge of #139909 - oli-obk:or-patterns, r=BoxyUwU
implement or-patterns for pattern types

These are necessary to represent `NonZeroI32`, as the range for that is `..0 | 1..`. The `rustc_scalar_layout_range_*` attributes avoided this by just implementing wraparound and having a single `1..=-1` range effectively. See https://rust-lang.zulipchat.com/#narrow/channel/481660-t-lang.2Fpattern-types/topic/.60or.20pattern.60.20representation.20in.20type.20system/with/504217694 for some background discussion

cc https://github.com/rust-lang/rust/issues/123646

r? `@BoxyUwU`
2025-04-29 12:28:22 -04:00
Trevor Gross
a20fe8ff23 Rollup merge of #139909 - oli-obk:or-patterns, r=BoxyUwU
implement or-patterns for pattern types

These are necessary to represent `NonZeroI32`, as the range for that is `..0 | 1..`. The `rustc_scalar_layout_range_*` attributes avoided this by just implementing wraparound and having a single `1..=-1` range effectively. See https://rust-lang.zulipchat.com/#narrow/channel/481660-t-lang.2Fpattern-types/topic/.60or.20pattern.60.20representation.20in.20type.20system/with/504217694 for some background discussion

cc https://github.com/rust-lang/rust/issues/123646

r? `@BoxyUwU`
2025-04-29 12:28:22 -04:00
Trevor Gross
4f20444ad5 Rollup merge of #138344 - tgross35:x86-f16-math, r=Amanieu
Enable `reliable_f16_math` on x86

This has been disabled due to an LLVM misoptimization with `powi.f16` [1]. This was fixed upstream and the fix is included in LLVM20, so tests no longer need to be disabled.

`f16` still remains disabled on MinGW due to the ABI issue.

[1]: https://github.com/llvm/llvm-project/issues/98665

try-job: x86_64-gnu
try-job: x86_64-gnu-llvm-19-1
try-job: x86_64-gnu-llvm-20-1
2025-04-29 12:28:22 -04:00
mejrs
a917de445b Move tests from /ui directory 2025-04-29 18:19:26 +02:00
Ralf Jung
f521fa0c54 Merge pull request #4272 from geetanshjuneja/scheduling
Make thread scheduling fully random
2025-04-29 15:49:27 +00:00
Miguel Ojeda
6e26762224 CI: rfl: move job forward to Linux v6.15-rc4
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-04-29 17:40:17 +02:00
Ralf Jung
63edce000c Merge pull request #4302 from RalfJung/env-cleanup
move EnvVars::cleanup into the main-thread-exit handler
2025-04-29 15:38:29 +00:00
Ralf Jung
76992ce41e fix comment typos 2025-04-29 17:24:48 +02:00
Ralf Jung
47e111a03c move EnvVars::cleanup into the main-thread-exit handler 2025-04-29 17:08:51 +02:00
Oli Scherer
9193dfe435 Use a closure instead of three chained iterators 2025-04-29 14:58:21 +00:00
Andrew Zhogin
cce706ec3c Fix for async drop ice with partly dropped tuple 2025-04-29 21:41:15 +07:00
WANG Rui
74b55b4b86 Add comment to remind filtering unsupported features when adding new ones 2025-04-29 22:15:11 +08:00
WANG Rui
a2b3f11700 Filter out LoongArch features not supported by the current LLVM version 2025-04-29 22:12:27 +08:00
geetanshjuneja
ef5834968e Added random scheduling 2025-04-29 19:38:58 +05:30
Oli Scherer
820fce61e7 Some style nits 2025-04-29 14:03:06 +00:00
mejrs
1f2b71e072 Delete "nonconstructable" enums are "noncopyable" test 2025-04-29 15:50:58 +02:00
Stan Manilov
c466cd01d8 Update compiler-src.md
Refactor the dependency structure from a nested unordered list to a single-level ordered list.

IMO, this is clearer, but happy to close this PR without merging, if the change is not desired.
2025-04-29 16:39:54 +03:00
John Kåre Alsaker
df1f8d140e Update stable-mir test 2025-04-29 14:49:00 +02:00
Lukas Wirth
85ab1d2596 Merge pull request #19714 from Veykril/push-owpqqzqmrpvv
refactor: Remove unnecessary extension trait
2025-04-29 12:05:39 +00:00
John Kåre Alsaker
ef9403371f Drop AST on a separate thread and prefetch hir_crate 2025-04-29 14:03:07 +02:00
sayantn
a21396870c Add avx512vl requirement to testsuite for avx512fp16 128 and 256 bit 2025-04-29 11:59:15 +00:00
sayantn
288ae22354 Fix errors in decoupling avx512vl and avx512dq from avx512fp16 2025-04-29 11:59:15 +00:00
sayantn
caf463ae41 Fix CI errors due to alignment issues in msvc 2025-04-29 11:59:15 +00:00
Lukas Wirth
21e7003a02 refactor: Remove unnecessary extension trait 2025-04-29 13:53:57 +02:00
John Kåre Alsaker
e561ec0e03 Remove global next_disambiguator state and handle it with a DisambiguatorState type 2025-04-29 13:22:38 +02:00
Zalathar
ed2f4b6d2d Reformat parameters to macros used by with-all-queries 2025-04-29 20:48:51 +10:00
Zalathar
64bcf3b9f6 Rename rustc_query_append! to rustc_with_all_queries! 2025-04-29 20:48:51 +10:00
mejrs
a4ce307c01 Coalesce duplicate missing clone tests 2025-04-29 12:46:26 +02:00
Oli Scherer
a1c70590b2 Treat ManuallyDrop as ~const Destruct 2025-04-29 10:39:54 +00:00
Oli Scherer
923ca85a18 Add test 2025-04-29 10:28:10 +00:00
mejrs
fc2cd77e11 Fix comment describing what the test does 2025-04-29 12:19:55 +02:00
mejrs
478b3789ce Move on impl position test to proper directory 2025-04-29 12:19:29 +02:00
John Kåre Alsaker
08b27ffbe8 Add some comments 2025-04-29 12:04:33 +02:00
Lukas Wirth
df4b8f3be8 Merge pull request #19713 from Veykril/push-xkppskpmuzpo
refactor: Cleanup cfg check handling in expression store lowering
2025-04-29 09:54:27 +00:00
Piotr Osiewicz
578ea26b8f mono collector: Reduce \# of locking while walking the graph
While profiling Zed's dev build I've noticed that while most of the time `upstream_monomorphizations` takes a lot of time in monomorpization_collector, in some cases (e.g. build of `editor` itself)
the rest of monomorphization_collector_graph_walk dominates it. Most of the time is spent in collect_items_rec.

This PR aims to reduce the number of locks taking place; instead of locking output MonoItems once per children of current node, we do so once per *parent*. We also get to reuse locks for mentioned and used items.
While this commit does not reduce Wall time of Zed's build, it does shave off `cargo build -j1` from 43s to 41.5s.
2025-04-29 11:47:37 +02:00
Lukas Wirth
bae7322f45 Merge pull request #19685 from fbernier/pgo-install
Add PGO support to install
2025-04-29 09:46:09 +00:00
Lukas Wirth
97f0f68769 Cleanup cfg check handling in expression store lowering 2025-04-29 11:44:11 +02:00
Ralf Jung
2393e447eb miri: algebraic intrinsics: bring back float non-determinism 2025-04-29 11:05:06 +02:00
Pietro Albini
4fe94badef add rust.debug-assertions-tools option 2025-04-29 11:05:06 +02:00
Lukas Wirth
8183c65207 Merge pull request #19712 from Veykril/push-yzsxpmkytkzt
refactor: Clean up cache priming cancellation handling
2025-04-29 08:52:43 +00:00
bors
efcbb94dcc Auto merge of #140436 - RalfJung:miri-sync, r=RalfJung
Miri subtree update

r? `@ghost`
2025-04-29 08:44:25 +00:00
Ralf Jung
9f4abd313d stabilize ptr::swap_nonoverlapping in const 2025-04-29 10:40:56 +02:00
Lukas Wirth
d93d553a0c refactor: Clean up cache priming cancellation handling 2025-04-29 10:40:31 +02:00
bjorn3
7a8d368ac9 Fix std_example.rs on s390x 2025-04-29 08:37:31 +00:00
Adrian Friedli
cf12e290fd enable msa feature for mips in codegen tests 2025-04-29 10:20:25 +02:00
Ralf Jung
929117e9a6 Merge pull request #4301 from rust-lang/rustup-2025-04-29
Automatic Rustup
2025-04-29 07:18:23 +00:00
Ralf Jung
0917a07264 suppress dangerous_implicit_autorefs in TB test 2025-04-29 08:53:22 +02:00
Oli Scherer
03c05c9a95 Also match on the lang item in confirmation 2025-04-29 06:52:42 +00:00