Commit graph

281448 commits

Author SHA1 Message Date
bors
05f9846f89 Auto merge of #139182 - BoxyUwU:stable, r=BoxyUwU
[stable] Prepare Rust 1.86.0

r? ghost
2025-03-31 21:37:24 +00:00
Boxy
1d54fa26a8 bump channel 2025-03-31 18:02:27 +01:00
Boxy
b79b7d7b5e release notes 2025-03-31 18:02:09 +01:00
bors
7824ede68e Auto merge of #138817 - cuviper:beta-next, r=cuviper
[beta] backports

- CI: Stop /msys64/bin from being prepended to PATH in msys2 shell #136815
- Install licenses into `share/doc/rust/licenses` #138412

r? cuviper
2025-03-22 17:14:23 +00:00
Josh Stone
7fc74cdd8b Install licenses into share/doc/rust/licenses
This changes the path from "licences" to "licenses" for consistency
across the repo, including the usage directly around this line. This is
a US/UK spelling difference, but I believe the US spelling is also more
common in open source in general.

(cherry picked from commit d183da6331)
2025-03-21 17:18:44 -07:00
Chris Denton
2c0e146d6d Print the environment a second time
(cherry picked from commit ec8ec41d9e)
2025-03-21 17:17:35 -07:00
Chris Denton
6a2ca0d4d7 Prevent /msys64/bin from being prepended to PATH
(cherry picked from commit 5573cd320c)
2025-03-21 17:16:14 -07:00
bors
8c7969a3ae Auto merge of #138525 - cuviper:beta-next, r=cuviper
[beta] backports

- Windows: Fix error in `fs::rename` on Windows 1607 #137528
- rustdoc: when merging target features, keep the highest stability #137632
- doctests: fix merging on stable #137899
- Revert wf sized check on beta #138122

r? cuviper
2025-03-16 08:23:33 +00:00
Michael Goulet
ea14c4a48f Fix revert fallout
(cherry picked from commit 81d6660d28)
2025-03-14 18:40:28 -07:00
Michael Goulet
4d1e502122 Revert "Rollup merge of #136274 - compiler-errors:sized-wf, r=lcnr"
This reverts commit a8ecb79d19, reversing
changes made to 40c4e05013.

(cherry picked from commit 9ea587e023)
2025-03-14 18:40:28 -07:00
Michael Howell
ad393e3d2c doctests: build test bundle and harness separately
This prevents the included test case from getting at nightly-only
features when run on stable. The harness builds with
RUSTC_BOOTSTRAP, but the bundle doesn't.

(cherry picked from commit 9cf531d26f)
2025-03-14 18:40:28 -07:00
Michael Howell
6416d208a2 doctests: fix merging on stable
Fixes #137898

The generated multi-test harness relies on nightly-only APIs,
so the only way to run it on stable is to enable them. Since
tests that use crate attrs don't be merged, there's no way to use
nightly-only features on it anyway.

(cherry picked from commit 5d6eeea5f9)
2025-03-14 18:18:22 -07:00
Ralf Jung
6f5cf7d368 also skip abi_required_features check in rustdoc
(cherry picked from commit 4c939db0e7)
2025-03-14 18:18:16 -07:00
Ralf Jung
871f01db2d add test
(cherry picked from commit dc04c0ca48)
2025-03-14 18:18:16 -07:00
Ralf Jung
17d569c25b also fix potential issues with mixed stable/unstable target features in rustdoc
(cherry picked from commit 039af88e09)
2025-03-14 18:18:16 -07:00
Ralf Jung
10d5f6727a rustdoc: disable forbidden #[target_feature] check
(cherry picked from commit b6f2240000)
2025-03-14 18:18:16 -07:00
Chris Denton
9b20ca1cfc Return OutOfMemoryError and update docs
(cherry picked from commit 3cb53df1fe)
2025-03-14 18:17:03 -07:00
Chris Denton
882139c088 Windows: Use MoveFileEx by default in fs:rename
(cherry picked from commit 0dfe2ae3fb)
2025-03-14 18:17:00 -07:00
bors
b2af9a598e Auto merge of #138190 - cuviper:beta-next, r=cuviper
[beta] backports

- Don't infer attributes of virtual calls based on the function body #137669
- Revert "store ScalarPair via memset when one side is undef and the other side can be memset" #137894
- Do not install rustup on Rust for Linux job #137947

r? cuviper
2025-03-08 09:26:48 +00:00
Jakub Beránek
0bd0738307 Do not use rustup to build Rust for Linux
(cherry picked from commit e3117e6e18)
2025-03-07 17:21:47 -08:00
Michael Goulet
cd87b034d2 Add a test
(cherry picked from commit 5f575bc4bc)
2025-03-07 12:53:28 -08:00
Michael Goulet
6be2e1ea86 Revert "Auto merge of #135335 - oli-obk:push-zxwssomxxtnq, r=saethlin"
This reverts commit a7a6c64a65, reversing
changes made to ebbe63891f.

(cherry picked from commit a59a8f9e75)
2025-03-07 12:53:28 -08:00
DianQK
e3e34e3d8a Don't infer unwinding of virtual calls based on the function attributes
(cherry picked from commit fbe0075a86)
2025-03-07 12:53:23 -08:00
DianQK
8f9c7df8e6 Don't infer attributes of virtual calls based on the function body
(cherry picked from commit 8089fce101)
2025-03-07 12:53:23 -08:00
DianQK
98ec247387 Add a test case for #137646
(cherry picked from commit 28d3fef399)
2025-03-07 12:53:23 -08:00
bors
61e1603ac7 Auto merge of #137747 - cuviper:beta-next, r=cuviper
[beta] backports

- Pass vendored sources from bootstrap to generate-copyright #137020
- Fix `-win7-windows-msvc` target since 26eeac1a1e* #137270
- skip submodule updating logics on tarballs #137338
- Improve behavior of `IF_LET_RESCOPE` around temporaries and place expressions #137444
- downgrade bootstrap `cc` #137460
- Remove latest Windows SDK from 32-bit CI #137753
- [beta-1.86] Ensure we can package directories ending with '.rs' (rust-lang/cargo#15248) #137842

r? cuviper
2025-03-02 04:56:48 +00:00
Weihang Lo
4746aaf174 [beta-1.86] Update cargo 2025-03-01 08:04:40 -08:00
Chris Denton
4f0b4a42e4 Remove Win SDK 10.0.26100.0 from CI
(cherry picked from commit 25617c7e69)
2025-02-28 11:58:21 -08:00
onur-ozkan
86e362f0a4 downgrade bootstrap cc
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit e4ca11f87f)
2025-02-27 10:48:44 -08:00
Michael Goulet
f54fe46cec Consider lvalues of field and index as possibly temporary places
(cherry picked from commit bad8e98c7d)
2025-02-27 10:48:40 -08:00
Michael Goulet
0180dd9a5a More comments
(cherry picked from commit 2797936f6d)
2025-02-27 10:48:40 -08:00
Michael Goulet
fd12db26f2 Improve behavior of IF_LET_RESCOPE around temporaries and place expressions
(cherry picked from commit bab03bf176)
2025-02-27 10:48:40 -08:00
onur-ozkan
4b9df12d34 skip submodule updating logics on tarballs
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit d2203ad59c)
2025-02-27 10:48:31 -08:00
Li Keqing
f32d360dc7 Fix *-win7-windows-msvc target since 26eeac1a1e
(cherry picked from commit 35febd7a6d)
2025-02-27 10:48:23 -08:00
Pietro Albini
935005bf0a use the shared vendor impl for plan source tarballs
(cherry picked from commit 92f31b95c9)
2025-02-27 10:48:16 -08:00
Pietro Albini
9e285bac0b generate-copyright: pass the vendored sources from bootstrap
(cherry picked from commit 33e7f9bc66)
2025-02-27 10:48:16 -08:00
Pietro Albini
27380b90c7 generate-copyright: pass the list of manifests from bootstrap
(cherry picked from commit 08b4f6d2c6)
2025-02-27 10:48:16 -08:00
Pietro Albini
f8f8aeaef1 generate-copyright: pass the source root from bootstrap
(cherry picked from commit 36c314cfb7)
2025-02-27 10:48:16 -08:00
bors
42212a5c45 Auto merge of #137507 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.86] Update cargo

1 commits in ce948f4616e3d4277e30c75c8bb01e094910df39..fcb465caf719e68f05671947db75a66ca7fadb2a
2025-02-14 20:32:07 +0000 to 2025-02-23 08:30:05 -0800
- [beta-1.86] depend on openssl-sys to correctly pin its version (rust-lang/cargo#15226)
2025-02-27 05:22:43 +00:00
bors
b678aabb38 Auto merge of #137395 - cuviper:beta-next, r=cuviper
[beta] stage0 update and a backport

- bump stage0 to 1.85.0
- Remove SSE ABI from i586-pc-windows-msvc #137149

r? cuviper
2025-02-24 19:28:25 +00:00
Weihang Lo
944862958c
[beta-1.86] Update cargo 2025-02-23 22:30:42 -05:00
Noratrieb
fc021746d5 Remove SSE ABI from i586-pc-windows-msvc
As an i586 target, it should not have SSE. This caused the following
warning to be emitted:

```
warning: target feature `sse2` must be enabled to ensure that the ABI of the current target can be implemented correctly
  |
  = note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>

warning: 1 warning emitted
```

(cherry picked from commit 1c66d5bed9)
2025-02-21 09:08:52 -08:00
Josh Stone
c62a549cfe bump stage0 to 1.85.0 2025-02-21 09:05:07 -08:00
bors
f0cb410305 Auto merge of #137182 - cuviper:beta-next, r=cuviper
[beta] Prepare Rust 1.86.0

This includes one backport:

- fix musl's CVE-2025-26519 #137127

r? cuviper
2025-02-17 21:02:40 +00:00
Josh Stone
2171400b45 bump channel to beta 2025-02-17 09:45:31 -08:00
Josh Stone
e4840ce59b update version placeholders 2025-02-17 09:35:47 -08:00
Pietro Albini
99587a05d0 fix musl's CVE-2025-26519
(cherry picked from commit a6ee2f4af2)
2025-02-17 09:16:07 -08:00
bors
9cd60bd2cc Auto merge of #137057 - weihanglo:update-cargo, r=weihanglo
Update cargo

13 commits in 2928e32734b04925ee51e1ae88bea9a83d2fd451..ce948f4616e3d4277e30c75c8bb01e094910df39
2025-02-07 16:50:22 +0000 to 2025-02-14 20:32:07 +0000
- util: provide a better error message for invalid SSH URLs (rust-lang/cargo#15185)
- Fix the description of the `"root"` field of the `cargo metadata`'s output (rust-lang/cargo#15182)
- refactor: Consolidate creation of SourceId from manifest path (rust-lang/cargo#15172)
- docs(embedded): Note the shebang deviation (rust-lang/cargo#15173)
- refactor(embedded): Integrate cargo-script logic into main parser (rust-lang/cargo#15168)
- feat: implement workspace feature unification (rust-lang/cargo#15157)
- Fix race condition in panic_abort_tests (rust-lang/cargo#15169)
- Update all dependencies (rust-lang/cargo#15166)
- Update curl from 8.9.0 to 8.12.0 (rust-lang/cargo#15162)
- Update annotate-snippets from 0.11.4 to 0.11.5 (rust-lang/cargo#15165)
- Update deny.toml (rust-lang/cargo#15164)
- Update rusqlite from 0.32.1 to 0.33.0 (rust-lang/cargo#15163)
- fix: align first line of unordered list with following (rust-lang/cargo#15161)
2025-02-15 17:58:43 +00:00
bors
608e228ca9 Auto merge of #137066 - onur-ozkan:137034-blocker, r=jieyouxu
check if CI-LLVM is enabled before testing it

Blocker for #137034
2025-02-15 14:58:47 +00:00
bors
69fd5e4059 Auto merge of #136828 - yotamofek:pr/rustdoc/more-laziness, r=GuillaumeGomez,aDotInTheVoid
Do more lazy-formatting in `librustdoc` 🦥

Modify some formatting to be lazy, i.e. to not allocate interim strings that are later formatted into different strings.
Commits are small and stand on their own, and should mostly compile separately. (The first one doesn't compile due to `dead_code` because all it does is introduce a helper used in later commits)

Really excited about this one, local perf results are really good. I'd love a perf run to see how this looks on CI. This is the comparison of `instructions:u` count between master and this PR, on my computer:

# Summary
| | Range | Mean | Count |
|:---:|:---:|:---:|:---:|
| Regressions | - | 0.00% | 0 |
| Improvements | -8.03%, -0.40% | -2.93% | 5 |
| All | -8.03%, -0.40% | -2.93% | 5 |

# Primary benchmarks
| Benchmark | Profile | Scenario | % Change | Significance Factor |
|:---:|:---:|:---:|:---:|:---:|
| typenum-1.17.0 | doc | full | -8.03% | 40.16x |
| nalgebra-0.33.0 | doc | full | -4.19% | 20.97x |
| stm32f4-0.14.0 | doc | full | -1.35% | 6.73x |
| libc-0.2.124 | doc | full | -0.67% | 3.33x |
| cranelift-codegen-0.82.1 | doc | full | -0.40% | 1.99x |
2025-02-15 11:57:15 +00:00