1
Fork 0
Commit graph

279773 commits

Author SHA1 Message Date
León Orell Valerian Liehr
0b18b4fbbc
Remove all dead files inside tests/ui/ 2025-01-27 02:28:04 +01:00
Michael Goulet
c08624d8d2 Remove redundant to_ident_string calls 2025-01-27 01:23:34 +00:00
Michael Goulet
ac1c6c50f4 Use identifiers in diagnostics more often 2025-01-27 01:23:34 +00:00
Huang Qi
ebf53630db Mark all NuttX targets as tier 3 target and support the standard library
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-27 09:23:14 +08:00
Ralf Jung
9c972c0ea5 compiler_fence: fix example 2025-01-26 17:34:33 -07:00
FedericoBruzzone
cef97bce7b Add TooGeneric variant to LayoutError and emit Unknown one
- `check-pass` test for a MRE of #135020
- fail test for #135138
- switch to `TooGeneric` for checking CMSE fn signatures
- switch to `TooGeneric` for compute `SizeSkeleton` (for transmute)
- fix broken tests
2025-01-27 00:37:34 +01:00
Timo
c26985ba80
fixed a missing description of the MSRV option for manual_repeat_n (#14081)
I added `manual_repeat_n` lint before, which has the `MSRV` option.
However, I forgot to add this lint to the lint configuration.

changelog: none
2025-01-26 23:18:24 +00:00
bors
0df0662ee0 Auto merge of #104693 - jhorstmann:use-high-bit-of-mask-for-select, r=workingjubilee
Consistently use the highest bit of vector masks when converting to i1 vectors

This improves the codegen for vector `select`, `gather`, `scatter` and boolean reduction intrinsics and fixes rust-lang/portable-simd#316.

The current behavior of most mask operations during llvm codegen is to truncate the mask vector to <N x i1>, telling llvm to use the least significat bit. The exception is the `simd_bitmask` intrinsics, which already used the most signifiant bit.

Since sse/avx instructions are defined to use the most significant bit, truncating means that llvm has to insert a left shift to move the bit into the most significant position, before the mask can actually be used.

Similarly on aarch64, mask operations like blend work bit by bit, repeating the least significant bit across the whole lane involves shifting it into the sign position and then comparing against zero.

By shifting before truncating to <N x i1>, we tell llvm that we only consider the most significant bit, removing the need for additional shift instructions in the assembly.
2025-01-26 22:45:21 +00:00
Noah Lev
885641bab1
Merge pull request #2223 from marxin/CI-cache-restore-key
CI: use key-restore for cache GH action
2025-01-26 14:21:09 -08:00
Rémy Rakic
6bdc2dc3cf tidy up html structure
- invert pre/code which was an invalid combination, that works fine in
  practice
- remove unneeded code wrapper for graphs
2025-01-26 21:22:46 +00:00
Rémy Rakic
052e9b4306 add NLL SCCs to polonius MIR dump 2025-01-26 21:13:32 +00:00
Rémy Rakic
1ee7582545 add NLL region graph to the polonius MIR dump 2025-01-26 21:12:42 +00:00
Tshepang Mbambo
f6bd61aa71
Merge pull request #2225 from ehuss/patch-3
Correct information on dylib compression
2025-01-26 22:22:47 +02:00
Eric Huss
5210a8d1e9
Correct information on dylib compression
Compression of dylibs was removed in https://github.com/rust-lang/rust/pull/113695 (and decompression removed in https://github.com/rust-lang/rust/pull/132402).
2025-01-26 12:08:48 -08:00
Ralf Jung
05a2dcdbd0
Merge pull request #4154 from RalfJung/linux-futex
make linux-futex test less flaky
2025-01-26 19:58:43 +00:00
bors
f85c6de552 Auto merge of #135783 - compiler-errors:cache-in-closure-binder, r=lcnr
Add cache to `FoldEscapingRegions`

Fixes #135780

ty `@lqd` for the tests
2025-01-26 19:58:17 +00:00
Ralf Jung
584bb0db42
Merge pull request #4153 from Mark-Simulacrum/reduce-symbol-lookups
Pre-intern name when searching module children
2025-01-26 19:57:00 +00:00
lapla-cogito
0b818aa673
fixed a missing description of the MSRV option for manual_repeat_n 2025-01-27 04:54:40 +09:00
Ralf Jung
37030ac279 make linux-futex test less flaky 2025-01-26 12:33:51 -07:00
Mark Rousskov
07de7a4bf9 Pre-intern name when searching module children
This avoids a good deal of work, since each module child can now just be
compared via u32 comparison, rather than fetching the raw &str
(requiring locking and indexing into the interner) and then comparing
the two strings (also relatively expensive).
2025-01-26 14:28:15 -05:00
许杰友 Jieyou Xu (Joe)
504d574bc1 triagebot: set myself on vacation 2025-01-27 02:28:35 +08:00
Michael Goulet
d7a6fdc71f Add cache to FoldEscapingRegions 2025-01-26 18:27:58 +00:00
Alejandra González
057f5b36f5
Make unnecessary_map_or work with ref and Deref to Option/Result (#14024)
Receivers which are references to `Option` and `Result`, or who
implement `Deref` to one of those types, will be linted as well.

changelog: [`unnecessary_map_or`]: work with ref and `Deref` to `Option`
and `Result` as well

Fixes #14023

**Note:** this patch must be merged after #13998 – only the second
commit must be reviewed, the first one repeats the patch in #13998 for
mergeability reasons.
2025-01-26 18:06:49 +00:00
许杰友 Jieyou Xu (Joe)
97efda63b3 rustc-dev-guide: update bootstrap tracing docs 2025-01-27 01:24:53 +08:00
许杰友 Jieyou Xu (Joe)
2e1a5320f5 bootstrap: add more logging 2025-01-27 01:24:53 +08:00
许杰友 Jieyou Xu (Joe)
71703bb7d9 bootstrap: adjust config file cascading fallback comment 2025-01-27 01:24:53 +08:00
许杰友 Jieyou Xu (Joe)
761bda1e43 bootstrap: adjust tracing style 2025-01-27 01:24:53 +08:00
许杰友 Jieyou Xu (Joe)
4febbd5c09 bootstrap: avoid glob imports in main binary 2025-01-27 01:24:53 +08:00
Ralf Jung
ccbfe505f6
Merge pull request #4152 from RalfJung/many-seeds
many-seeds: do not use more than 8 threads
2025-01-26 17:11:49 +00:00
Ralf Jung
d7f165690b many-seeds: do not use more than 8 threads 2025-01-26 09:41:57 -07:00
Ralf Jung
4ce50a3977 many-seeds: in keep-going mode, print how many tests failed 2025-01-26 09:40:16 -07:00
Yotam Ofek
614446887e rustc_ast: replace some len-checks + indexing with slice patterns etc. 🧹 2025-01-26 16:26:52 +00:00
Jörn Horstmann
3779b8e32e Consistently use the most significant bit of vector masks
This improves the codegen for vector `select`, `gather`, `scatter` and
boolean reduction intrinsics and fixes rust-lang/portable-simd#316.

The current behavior of most mask operations during llvm codegen is to
truncate the mask vector to <N x i1>, telling llvm to use the least
significat bit. The exception is the `simd_bitmask` intrinsics, which
already used the most signifiant bit.

Since sse/avx instructions are defined to use the most significant bit,
truncating means that llvm has to insert a left shift to move the bit
into the most significant position, before the mask can actually be
used.

Similarly on aarch64, mask operations like blend work bit by bit,
repeating the least significant bit across the whole lane involves
shifting it into the sign position and then comparing against zero.

By shifting before truncating to <N x i1>, we tell llvm that we only
consider the most significant bit, removing the need for additional
shift instructions in the assembly.
2025-01-26 16:44:23 +01:00
Philipp Krones
e84d60daec
set default PR messages to fail the changelog CI (#14069)
I noticed that default PR messages could pass the changelog checking CI.

For example, if a PR is submitted without modifying the PR template, the
following line is mistakenly treated as a valid changelog by the CI:

```
changelog: [`lint_name`]: your change
```
r? flip1995

changelog: none
2025-01-26 15:28:48 +00:00
bors
01a26c026d Auto merge of #135764 - nikic:llvm-20-test-fixes, r=wesleywiser
Fix tests on LLVM 20

For sparcv8plus.rs, duplicate the test for LLVM 19 and LLVM 20. LLVM 20 resolves one of the FIXME in the test.

For x86_64-bigint-add.rs split the check lines for LLVM 19 and LLVM 20. The difference in codegen here is due to a difference in unroll factor, which I believe is not what the test is interested in.

Fixes https://github.com/rust-lang/rust/issues/132957.
Fixes https://github.com/rust-lang/rust/issues/133754.
2025-01-26 14:54:01 +00:00
Ralf Jung
d7e942eb91
Merge pull request #4151 from rust-lang/rustup-2025-01-26
Automatic Rustup
2025-01-26 14:36:23 +00:00
Ralf Jung
c688ecf468 prevent weird macOS linker errors from breaking the build 2025-01-26 07:11:43 -07:00
bjorn3
6f543d5ceb Add regression test 2025-01-26 13:55:59 +00:00
Marijn Schouten
d3cd832dda Document purpose of closure in from_fn.rs more clearly 2025-01-26 13:43:55 +01:00
bors
15c6f7e1a3 Auto merge of #136087 - jhpratt:rollup-tam1mzn, r=jhpratt
Rollup of 7 pull requests

Successful merges:

 - #133631 (Support QNX 7.1 with `io-sock`+libstd and QNX 8.0 (`no_std` only))
 - #134358 (compiler: Set `target_abi = "ilp32e"` on all riscv32e targets)
 - #135812 (Fix GDB `OsString` provider on Windows )
 - #135842 (TRPL: more backward-compatible Edition changes)
 - #135946 (Remove extra whitespace from rustdoc breadcrumbs for copypasting)
 - #135953 (ci.py: check the return code in `run-local`)
 - #136019 (Add an `unchecked_div` alias to the `Div<NonZero<_>>` impls)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-01-26 12:10:05 +00:00
Tobias Bucher
93d347d7d2 Test pipes also when not running on Windows and Linux simultaneously
Fixes https://github.com/rust-lang/rust/pull/135635#pullrequestreview-2574184488.
2025-01-26 12:48:33 +01:00
Tobias Bucher
ad28cbb423 Update std::io::{pipe, PipeReader, PipeWriter} docs the new location
Also create a section "Platform-specific behavior", don't hide required
imports for code examples.
2025-01-26 12:42:52 +01:00
Tobias Bucher
68e983fcf7 Move std::io::pipe code into its own file 2025-01-26 12:40:36 +01:00
Kalle Wachsmuth
c1dcbebd0b
implement lint double_negations 2025-01-26 12:18:33 +01:00
Kalle Wachsmuth
25a77cf4f4 remove clippy::double_neg 2025-01-26 12:15:12 +01:00
Kalle Wachsmuth
9e316f3472
remove clippy::double_neg 2025-01-26 12:15:12 +01:00
Kalle Wachsmuth
d810d426a4
unrelated cleanup 2025-01-26 12:15:11 +01:00
bjorn3
2f4dd6e689 Actually run the bstr test
It previously didn't get run because of a missing mod bstr.
2025-01-26 10:45:09 +00:00
bjorn3
fcf78bbd75 Update comment 2025-01-26 10:26:37 +00:00
bjorn3
9e5c6a2898 Fix cg_clif testing coretests 2025-01-26 10:26:36 +00:00