305150 Commits

Author SHA1 Message Date
Tshepang Mbambo
a11333a996
Merge pull request #2594 from cammeresi/spelling-20250921
Correct a misspelling of RUSTC_LOG
2025-09-21 19:39:05 +02:00
Sidney Cammeresi
d887c570a0
Correct a misspelling of RUSTC_LOG 2025-09-21 09:31:26 -07:00
许杰友 Jieyou Xu (Joe)
72b0291829
Merge pull request #2580 from rust-lang/tshepang-patch-2
point to Compiler team docs on Forge
2025-09-19 13:25:23 +08:00
Guillaume Gomez
9819ceae94
Merge pull request #2587 from GuillaumeGomez/gcc-backend-missing-docs
Add missing documentation for running tests with GCC backend
2025-09-18 22:27:15 +02:00
Tshepang Mbambo
66a84efc4b
Merge pull request #2592 from rust-lang/tshepang-patch-5
about-this-guide.md: improve a bit
2025-09-17 22:05:40 +02:00
Tshepang Mbambo
b17213a87b
about-this-guide.md: improve a bit 2025-09-17 22:04:28 +02:00
nora
cea82e30a9
Merge pull request #2591 from rust-lang/tshepang-patch-5
a valid state is achieved by passing the test suite
2025-09-17 20:15:08 +02:00
Tshepang Mbambo
ee496f2038
a valid state is achieved by passing the test suite 2025-09-17 11:20:57 +02:00
Jakub Beránek
3a14fb7c7b
Merge pull request #2589 from Kobzol/ci-bors-backticks
Clarify that backtick escaping doesn't work for `@bors try jobs`
2025-09-15 20:22:46 +02:00
Jakub Beránek
001f8e3e1a
Update src/tests/ci.md
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-09-15 20:22:21 +02:00
Jakub Beránek
7b0b0bbefa
Clarify that backtick escaping doesn't work for @bors try jobs 2025-09-15 09:45:19 +02:00
nora
ee63b07539
Merge pull request #2584 from rust-lang/tshepang-patch-5
remove confusing parts of sentence
2025-09-12 20:28:51 +02:00
León Orell Valerian Liehr
ddfd47a12b
Merge pull request #2588 from fmease/to-crash-tests
Rename "crashes tests" to "crash tests"
2025-09-12 16:55:29 +02:00
León Orell Valerian Liehr
7a4b7287bb
Rename "crashes tests" to "crash tests" 2025-09-12 16:50:41 +02:00
Jakub Beránek
d588c11010
Restructure the docs 2025-09-11 12:45:28 +02:00
Manuel Drehwald
ff591075ec
Merge pull request #2385 from KMJ-007/master
documentation for Enzyme Type Trees
2025-09-11 03:43:36 -04:00
karan
d8f084217f docs: typetree in autodiff 2025-09-11 07:33:34 +00:00
Tshepang Mbambo
76c4d68384
Merge pull request #2516 from lolbinarycat/patch-4
glossary: add entry for rustbuild
2025-09-10 18:48:04 +02:00
Guillaume Gomez
82ff0025b7 Add missing documentation for running tests with GCC backend 2025-09-10 18:44:02 +02:00
lolbinarycat
196b49a20b
glossary(rustbuild): reword according to code review
Co-authored-by: Tshepang Mbambo <hopsi@tuta.io>
2025-09-10 11:31:04 -05:00
lolbinarycat
096ae06e02 glossary: add entry for rustbuild 2025-09-10 11:08:00 -05:00
nora
808595eff4
Merge pull request #2586 from ali90h/fix-microsoft-link-broken-url
Fix broken Microsoft URL missing slash
2025-09-08 15:52:06 +02:00
Ali Nazzal
a5575f8f05 Fix broken Microsoft URL missing slash 2025-09-08 11:19:28 +03:00
Tshepang Mbambo
8c324de311
Merge pull request #2585 from rust-lang/tshepang/sembr
split overlong sentences
2025-09-08 06:56:12 +02:00
Tshepang Mbambo
94da52007b readability 2025-09-08 06:54:04 +02:00
Tshepang Mbambo
cb0e26ff4c fix markup 2025-09-08 06:50:14 +02:00
Tshepang Mbambo
755db7fdac sembr 2025-09-08 06:48:10 +02:00
Tshepang Mbambo
30ad58fc1d
Merge pull request #2573 from rust-lang/tshepang/make-more-clear
clarify typo pr guidance
2025-09-08 06:26:12 +02:00
Tshepang Mbambo
177583d2c0
Merge pull request #2582 from rust-lang/rustc-pull
Rustc pull update
2025-09-08 06:25:38 +02:00
Tshepang Mbambo
1806a8244e
remove confusing parts of sentence
I can guess what this meant, but decided to just keep it simple
2025-09-08 06:20:07 +02:00
The rustc-josh-sync Cronjob Bot
7dcb968a2e Merge ref '2f3f27bf79ec' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 2f3f27bf79ec147fec9d2e7980605307a74067f4
Filtered ref: 82a5eafbafdb98eae68193600732388ae4135756
Upstream diff: a1dbb44352...2f3f27bf79

This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-08 04:10:25 +00:00
The rustc-josh-sync Cronjob Bot
cfc73b5c94 Prepare for merging from rust-lang/rust
This updates the rust-version file to 2f3f27bf79ec147fec9d2e7980605307a74067f4.
2025-09-08 04:10:15 +00:00
bors
2f3f27bf79 Auto merge of #145541 - cjgillot:dest-prop-live-range, r=Amanieu
Reimplement DestinationPropagation according to live ranges.

This PR reimplements DestinationPropagation as a problem of merging live-ranges of locals. We merge locals that have disjoint live-ranges. This allows merging several locals in the same round by updating live range information.

Live ranges are mainly computed using the `MaybeLiveLocals` analysis. The subtlety is that we split each statement and terminator in 2 positions. The first position is the regular statement. The second position is a shadow, which is always more live. It encodes partial writes and dead writes as a local being live for half a statement. This half statement ensures that writes conflict with another local's writes and regular liveness.

r? `@Amanieu`
2025-09-07 23:36:21 +00:00
bors
12eb345e55 Auto merge of #146304 - matthiaskrgr:rollup-69hs07h, r=matthiaskrgr
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#146170 (fix: offline rustdoc html missing favicon)
 - rust-lang/rust#146209 (Misc LTO cleanups)
 - rust-lang/rust#146269 (feat(std): emulate flock for solaris via fcntl)
 - rust-lang/rust#146297 (Introduce PlaceContext::may_observe_address.)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-09-07 20:27:43 +00:00
Matthias Krüger
36557d1046
Rollup merge of #146297 - cjgillot:may-observe-address, r=saethlin
Introduce PlaceContext::may_observe_address.

A small utility method to avoid open-coding the logic in several MIR opts.
2025-09-07 20:02:29 +02:00
Matthias Krüger
e4e4829579
Rollup merge of #146269 - weihanglo:solaris-flock, r=Mark-Simulacrum
feat(std): emulate flock for solaris via fcntl

Upstream Solaris flock emulation to libstd from cargo.

This is borrowed from
3b379fcc54/src/cargo/util/flock.rs (L502-L536) which was implemented by an Oracle employee.
The code has been in cargo since 2022-12.

Python's `fcntl.flock` emulates like this as well: c919d02ede/Modules/fcntlmodule.c (L337-L400)

We did the same thing in
0d0f4eac8b/compiler/rustc_data_structures/src/flock/unix.rs (L13-L39)

However, should we just always falls back to fcntl for all Unix, instead of "unsupported"?

try-job: `*-solaris`
2025-09-07 20:02:28 +02:00
Matthias Krüger
92bad93f06
Rollup merge of #146209 - bjorn3:lto_refactors5, r=dianqk
Misc LTO cleanups

Follow up to https://github.com/rust-lang/rust/pull/145955.

* Remove want_summary argument from `prepare_thin`.
   Since https://github.com/rust-lang/rust/pull/133250 ThinLTO summary writing is instead done by `llvm_optimize`.
* Two minor cleanups
2025-09-07 20:02:27 +02:00
Matthias Krüger
cb64a77550
Rollup merge of #146170 - kumarUjjawal:master, r=Mark-Simulacrum
fix: offline rustdoc html missing favicon

As discussed in the rust-lang/rust#146149 the doc was missing the favicon icon when build locally and viewed on a browser. I changed the relative path and also now we explicitly copy both SVG and PNG.

<img width="1132" height="425" alt="Screenshot 2025-09-03 at 11 57 46 PM" src="https://github.com/user-attachments/assets/062cbb08-04ec-4d88-a43a-710fb6190f82" />
2025-09-07 20:02:27 +02:00
bors
23718020b1 Auto merge of #146148 - Flakebi:global-addrspace-test, r=Mark-Simulacrum
Add amdgpu test for addrspacecasting global vars and the gpu-kernel calling convention

Add two tests that can now be added, as the amdgpu is merged.

- Global variables are casted to the default address space since rust-lang/rust#135026
- gpu-kernel calling convention, translatos to amdgpu_kernel rust-lang/rust#135047

Tracking issue: rust-lang/rust#135024
2025-09-07 17:12:08 +00:00
Camille Gillot
5d0e66d451 Use rustc_data_structures::union_find. 2025-09-07 16:46:34 +00:00
Camille Gillot
28ff5cf502 Simplify candidate collection. 2025-09-07 16:45:34 +00:00
Camille Gillot
99f6bcf380 Unify a source with all possible destinations. 2025-09-07 16:45:00 +00:00
Camille Gillot
4e9dd1b67b Do not use prepend to avoid quadratic behaviour. 2025-09-07 16:36:30 +00:00
Camille Gillot
de7c633ee5 Simplify VisitPlacesWith. 2025-09-07 16:36:22 +00:00
Camille Gillot
b9262bce67 Use regular MaybeLiveLocals. 2025-09-07 16:35:30 +00:00
Camille GILLOT
9b8a719ae4 Reimplement DestinationPropagation according to live ranges. 2025-09-07 16:24:46 +00:00
Camille GILLOT
2ff92e83af Introduce fast insertion at extremities to IntervalSet. 2025-09-07 16:06:40 +00:00
bors
55b9b4d1e1 Auto merge of #146289 - cjgillot:gvn-aggregate, r=dianqk
GVN: Allow reusing aggregates if LHS is not a simple local.

This resolves a FIXME in the code. I don't see a reason not to allow this.
2025-09-07 14:02:09 +00:00
Camille GILLOT
4e7a068c9a Introduce PlaceContext::may_observe_address. 2025-09-07 13:51:53 +00:00
bors
f13ef0d75d Auto merge of #146216 - LorrensP-2158466:miri-float-nondet-foreign-items-take2, r=RalfJung
Miri: non-deterministic floating point operations in foreign_items

Take 2 of rust-lang/rust#143906. The last 2 commits are what changed compared to the original pr.

Verified the tests using (fish shell):
```fish
env MIRIFLAGS="-Zmiri-max-extra-rounding-error -Zmiri-many-seeds" ./x miri --no-fail-fast std core coretests  -- f32 f64
```

r? `@RalfJung`
2025-09-07 10:46:38 +00:00