1
Fork 0
Commit graph

286548 commits

Author SHA1 Message Date
Celina G. Val
13f1c84584
Apply suggestions from code review
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-04-10 16:32:56 -07:00
bors
e62d47dace Auto merge of #139410 - Zoxc:fix-dep-graph-no-prev-map, r=oli-obk
Reuse the index from promoted nodes when coloring executed tasks

https://github.com/rust-lang/rust/pull/138824 did not correctly handle the case where a dep node was promoted green, but later or concurrently executed. It resulted in multiple dep nodes being allocated to it. This fixes that by checking that the node was not previously green in the encoder lock.

This also fixes a race when forcing diagnostic nodes introduced in https://github.com/rust-lang/rust/pull/138824.

https://github.com/rust-lang/rust/pull/138824 should get reverted on beta.

This should fix #139110.

r? `@oli-obk`
2025-04-10 23:28:37 +00:00
Vadim Petrochenkov
06dd9e2d20 compiletest: Trim the value of dont-require-annotations 2025-04-10 23:48:57 +03:00
Vadim Petrochenkov
ad72ba2e2c dev-guide: Document dont-require-annotations
and its use cases in more detail
2025-04-10 23:48:57 +03:00
Vadim Petrochenkov
909b6c9f83 compiletest: Turn TestProps::require_annotations into a set
and further simplify its checking in runtest
2025-04-10 23:48:57 +03:00
Vadim Petrochenkov
0ca31277f3 compiletest: Make SUGGESTION annotations viral 2025-04-10 23:48:57 +03:00
bors
0fe8f3454d Auto merge of #137412 - scottmcm:redo-swap, r=cuviper
Ensure `swap_nonoverlapping` is really always untyped

This replaces #134954, which was arguably overcomplicated.

## Fixes #134713

Actually using the type passed to `ptr::swap_nonoverlapping` for anything other than its size + align turns out to not work, so this goes back to always erasing the types down to just bytes.

(Except in `const`, which keeps doing the same thing as before to preserve `@RalfJung's` fix from #134689)

## Fixes #134946

I'd previously moved the swapping to use auto-vectorization *on bytes*, but someone pointed out on Discord that the tail loop handling from that left a whole bunch of byte-by-byte swapping around.  This goes back to manual tail handling to avoid that, then still triggers auto-vectorization on pointer-width values.  (So you'll see `<4 x i64>` on `x86-64-v3` for example.)
2025-04-10 20:19:11 +00:00
John Kåre Alsaker
02f10d9bfe Remove the use of Rayon iterators 2025-04-10 22:05:06 +02:00
Augie Fackler
d7e7f8b522 tests: adjust expectation for f128 abi on Windows
llvm/llvm-project@5ee1c0b714 updates llvm
to match the documented calling convention to pass f128 indirectly.

@rustbot label llvm-main
2025-04-10 15:28:56 -04:00
Folkert de Vries
59c55339af
add simd_insert_dyn and simd_extract_dyn 2025-04-10 21:22:07 +02:00
John Kåre Alsaker
22dd86c015 Encode dep node edge count as u32 instead of usize 2025-04-10 20:59:22 +02:00
Ralf Jung
72841001f1
Merge pull request #4261 from CraftSpider/windows-rtl-to-dos
Implement RtlNtStatusToDosError and shim test for it
2025-04-10 18:58:38 +00:00
Michael Goulet
decd7ecd1e Deeply normalize obligations in BestObligation 2025-04-10 18:58:04 +00:00
Yotam Ofek
9491242ff7 Cleanup the InstSimplify MIR transformation 2025-04-10 18:40:25 +00:00
Rune Tynan
f243cb8861 Implement RtlNtStatusToDosError and shim test for it 2025-04-10 11:29:16 -07:00
Yotam Ofek
0069cadb9a Micro-optimize InstSimplify's simplify_primitive_clone 2025-04-10 18:06:32 +00:00
Boxy
8f00b1fdad Allow parenthesis around inferred array lengths 2025-04-10 18:57:42 +01:00
Michael Goulet
62d5fb85ac Simplify 2025-04-10 17:52:46 +00:00
Trevor Gross
b435def33c Update compiler-builtins to 0.1.153
Includes the following changes:

* Avoid OOB access in `memcpy` and `memmove` [1]
* Enable intrinsics on AVR [2]
* `libm` updates to avoid using `core::arch` vector intrinsics [3]
* Re-enable `f16` on aarch64 without Neon [4]

[1]: https://github.com/rust-lang/compiler-builtins/pull/799
[2]: https://github.com/rust-lang/compiler-builtins/pull/791
[3]: https://github.com/rust-lang/compiler-builtins/pull/814
[4]: https://github.com/rust-lang/compiler-builtins/pull/809
2025-04-10 17:40:15 +00:00
bors
2205455d44 Auto merge of #139634 - matthiaskrgr:rollup-45shqa5, r=matthiaskrgr
Rollup of 7 pull requests

Successful merges:

 - #139502 (fix "still mutable" ice while metrics are enabled)
 - #139510 (Rename some `name` variables as `ident`.)
 - #139606 (Update compiletest to Edition 2024)
 - #139609 (compiletest: don't use stringly paths for `compose_and_run`)
 - #139614 (Avoid empty identifiers for delegate params and args.)
 - #139626 (Remove unnecessary `mut` in test.)
 - #139630 (Miri subtree update)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-10 17:10:16 +00:00
John Kåre Alsaker
74ca12951c Bump FileEncoder buffer size to 64 kB 2025-04-10 18:52:03 +02:00
Yotam Ofek
8dd1cbbdad lazify render_assoc_items_inner 2025-04-10 16:03:24 +00:00
Yotam Ofek
f7640d5468 make doc_impl_item and render_default_items receive impl fmt::Write 2025-04-10 16:02:46 +00:00
Yotam Ofek
642995cf1c make link_tooltip return impl fmt::Display 2025-04-10 16:02:45 +00:00
Yotam Ofek
250a1aa7a6 make AllTypes::print return impl fmt::Display 2025-04-10 16:02:45 +00:00
Matthias Krüger
c9613f87ef
Rollup merge of #139630 - RalfJung:miri-sync, r=RalfJung
Miri subtree update

r? `@ghost`

a sync is needed to fix the miri-test-libstd failures
2025-04-10 17:27:17 +02:00
Matthias Krüger
9b9d098e1d
Rollup merge of #139626 - m-ou-se:mut, r=lqd
Remove unnecessary `mut` in test.

The value is moved in `pin!()`, so the binding doesn't need to be `mut` itself.

(Rustc doesn't warn about this due to the current hacky implementation of `pin!()`. That is fixed by https://github.com/rust-lang/rust/pull/139114.)
2025-04-10 17:27:17 +02:00
Matthias Krüger
7fbd7bdfa8
Rollup merge of #139614 - nnethercote:fix-139512, r=oli-obk
Avoid empty identifiers for delegate params and args.

Details in individual commits.

r? `@oli-obk`
2025-04-10 17:27:16 +02:00
Matthias Krüger
362c0f2711
Rollup merge of #139609 - jieyouxu:compiletest-path-misc, r=Kobzol
compiletest: don't use stringly paths for `compose_and_run`

Eventually I'd like to fully migrate to `camino`'s `{Utf8Path,Utf8PathBuf}` because compiletest assumes UTF-8 paths all over the place, so this is an precursor change to make the migration diff cleaner.

r? `@Kobzol` (or bootstrap/compiler)
2025-04-10 17:27:15 +02:00
Matthias Krüger
af3b892ca3
Rollup merge of #139606 - jieyouxu:compiletest-edition2024, r=compiler-errors
Update compiletest to Edition 2024

r? bootstrap (or compiler)

try-job: x86_64-apple-1
try-job: x86_64-msvc-1
try-jbo: x86_64-mingw-1
2025-04-10 17:27:15 +02:00
Matthias Krüger
79f357e63d
Rollup merge of #139510 - nnethercote:name-to-ident, r=fee1-dead
Rename some `name` variables as `ident`.

It bugs me when variables of type `Ident` are called `name`. It leads to silly things like `name.name`. `Ident` variables should be called `ident`, and `name` should be used for variables of type `Symbol`.

This commit improves things by by doing `s/name/ident/` on a bunch of `Ident` variables. Not all of them, but a decent chunk.

r? `@fee1-dead`
2025-04-10 17:27:14 +02:00
Matthias Krüger
0e9c4fbf23
Rollup merge of #139502 - yaahc:still-mutable-ice, r=bjorn3
fix "still mutable" ice while metrics are enabled

Resolves "still mutable" ICE discovered by `@matthiaskrgr` here: [#t-docs-rs > metrics intitiative @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/356853-t-docs-rs/topic/metrics.20intitiative/near/510490790)

This was caused by invoking `crate_hash` before the `definitions` struct was frozen here: e643f59f6d/compiler/rustc_interface/src/passes.rs (L951)

resolved by moving metrics dumping to occur after `analysis` freezes the definitions

I'm guessing we didn't discover this in CI because the problem only occurs when you try to calculate the crash hash with incremental compilation enabled when it tries to freeze the definitions here: e643f59f6d/compiler/rustc_middle/src/hir/map.rs (L1172)

my understanding is that this causes us to freeze the definitions too early in compilation, then we subsequently try to mutate them, likely during `analysis`, and this causes the ICE.

r? `@bjorn3`
2025-04-10 17:27:13 +02:00
Ralf Jung
d1f901a8e6
Merge pull request #4267 from rust-lang/dependabot/cargo/crossbeam-channel-0.5.15
Bump crossbeam-channel from 0.5.14 to 0.5.15
2025-04-10 15:13:12 +00:00
dependabot[bot]
2d37173c23
Bump crossbeam-channel from 0.5.14 to 0.5.15
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.5.14 to 0.5.15.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.14...crossbeam-channel-0.5.15)

---
updated-dependencies:
- dependency-name: crossbeam-channel
  dependency-version: 0.5.15
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 14:46:39 +00:00
Alice Ryhl
997ec4982b Update code coverage map 2025-04-10 14:32:59 +00:00
Ralf Jung
f254ab24eb
Merge pull request #4266 from RalfJung/freebsd
run all 'thread' tests on FreeBSD, and also on 32bit
2025-04-10 14:14:09 +00:00
Alice Ryhl
f9f2acac1f cfi: do not transmute function pointers in formatting code 2025-04-10 13:55:52 +00:00
Ralf Jung
5cda2a9b4b run all 'thread' tests on FreeBSD, and also on 32bit 2025-04-10 15:45:32 +02:00
Alex Macleod
f740326216 Allow drivers to supply a list of extra symbols to intern 2025-04-10 13:39:23 +00:00
Ralf Jung
955d92fb1b update lockfile 2025-04-10 15:19:59 +02:00
Ralf Jung
1347cc8f15
Merge pull request #4264 from RalfJung/rustup
Rustup
2025-04-10 12:50:10 +00:00
Ralf Jung
f69ea4d82f Merge from rustc 2025-04-10 14:24:19 +02:00
Ralf Jung
830c58be89 Preparing for merge from rustc 2025-04-10 14:24:14 +02:00
bors
69b3959afe Auto merge of #139622 - matthiaskrgr:rollup-8ri1vid, r=matthiaskrgr
Rollup of 13 pull requests

Successful merges:

 - #138167 (Small code improvement in rustdoc hidden stripper)
 - #138605 (Clean up librustdoc::html::render to be better encapsulated)
 - #139423 (Suppress missing field error when autoderef bottoms out in infer)
 - #139449 (match ergonomics: replace `peel_off_references` with a recursive call)
 - #139507 (compiletest: Trim whitespace from environment variable names)
 - #139530 (Remove some dead or leftover code related to rustc-intrinsic abi removal)
 - #139560 (fix title of offset_of_enum feature)
 - #139563 (emit a better error message for using the macro incorrectly)
 - #139568 (Don't use empty trait names)
 - #139580 (Temporarily leave the review rotation)
 - #139589 (saethlin is back from vacation)
 - #139592 (rustdoc: Enable Markdown extensions when looking for doctests)
 - #139599 (Tracking issue template: fine-grained information on style update status)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-10 12:18:24 +00:00
Makai
95ad6dfeab add span_extend_to_prev_char_before() to SourceMap 2025-04-10 20:12:26 +08:00
Ralf Jung
7da4440012
Merge pull request #4262 from RalfJung/win-path
path: add more Windows tests
2025-04-10 11:12:21 +00:00
Ralf Jung
dc3843b70e make GetFullPathNameW more correct on non-Windows hosts 2025-04-10 12:48:00 +02:00
Mara Bos
95613e3dbc Remove unnecessary mut.
The value is moved in pin!().
2025-04-10 12:40:27 +02:00
Pietro Albini
33794fd196
mention --edition restrictions in rustc-dev-guide 2025-04-10 12:34:57 +02:00
Matthias Krüger
b14671e1bd
Rollup merge of #139599 - joshtriplett:style-tracking, r=traviscross
Tracking issue template: fine-grained information on style update status

Inspired by some of the communication issues around the stabilization of
`let`-chains, give more fine-grained information about the status of
updating style for any new syntax.

This does not change the process or blockers in any way; it only
*documents* the current state in the tracking issue. For instance, in
the case of `let`-chains, we would have checked the boxes for "Style
team decision" and "(non-blocking) Formatting has been implemented", and
not checked the box for the style guide. That would have then provided
better supporting information for any decisions.
2025-04-10 11:10:20 +02:00