Commit graph

285241 commits

Author SHA1 Message Date
bors
17067e9ac6 Auto merge of #140859 - pietroalbini:pa-stable, r=pietroalbini
[stable] Prepare the 1.87.0 release

Preparing the stable artifacts as described in the release process.

This PR also includes the following last minute backports:

* https://github.com/rust-lang/rust/pull/140810
* https://github.com/rust-lang/rust/pull/140601
* https://github.com/rust-lang/rust/pull/140684

r? `@ghost`
2025-05-09 20:37:37 +00:00
Pietro Albini
908c30b3e1
update wording 2025-05-09 19:12:13 +02:00
Pietro Albini
8dcf2c5c83
update links to point to stable 2025-05-09 19:12:07 +02:00
Pietro Albini
dba26be4c6
fix new apis being marked as becoming const this release 2025-05-09 19:12:02 +02:00
Michael Goulet
d800540c12
Review 2025-05-09 18:12:13 +02:00
Michael Goulet
2f71d0a243
Only include associated type bounds for Self:Sized associated types if they are provided 2025-05-09 18:12:08 +02:00
León Orell Valerian Liehr
fd5b1583fe
Don't delay a bug on malformed meta items involving interpolated tokens
Co-authored-by: Jana Dönszelmann <jana@donsz.nl>
2025-05-09 17:58:54 +02:00
Alex Macleod
287610b489
Restrict the cases where ptr_eq triggers (#14526)
`ptr_eq` was recently enhanced to lint on more cases of raw pointers
comparison:

- lint on all raw pointer comparison, by proposing to use
`[core|std]::ptr::eq(lhs, rhs)` instead of `lhs == rhs`;
- removing one symetric `as usize` on each size if needed
- peeling any level of `as *[const|mut] _` if the remaining expression
can still be coerced into the original one (i.e., is a ref or raw
pointer to the same type as before)

The current change restricts the lint to the cases where at least one
level of symetric `as usize`, or any conversion to a raw pointer, could
be removed. For example, a direct comparaison of two raw pointers will
not trigger the lint anymore.

changelog: [`ptr_eq`]: do not lint when comparing two raw pointers
directly with no casts involved

Fixes rust-lang/rust-clippy#14525
2025-05-09 17:41:24 +02:00
Alex Macleod
6e8f95f7ce
Ensure that peeling does not recurse into macros (#14527)
We do not want to remove casts done inside macros. Also, when printing
the suggestion, take it from the same context as the origin expression
(the root context).

Problems found while working on #14526, but should be merged even if
#14526 is not.

changelog: none
2025-05-09 17:41:18 +02:00
Alex Macleod
79df6ac1a7
fix: map_entry: don't emit lint before checks have been performed (#14568)
Fixes rust-lang/rust-clippy#14449, introduced in #14314

changelog: [`map_entry`]: fix a false positive where the lint would
trigger without any insert calls present
2025-05-09 17:41:11 +02:00
Timo
7d83c8c543
manual_ok_err: don't lint subpatterns (#14661)
Fixes https://github.com/rust-lang/rust-clippy/issues/14660

changelog: none
2025-05-09 17:41:03 +02:00
Pietro Albini
1ef8f764c9
update channel to stable 2025-05-09 17:39:23 +02:00
Pietro Albini
5082f5c0c3
update release notes from master 2025-05-09 17:38:59 +02:00
bors
af91af44eb Auto merge of #140727 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.87] Update cargo

1 commits in 202515849e943032d8fdd3eba57bf2c86e0da736..99624be96e9d213b0e9b1e36451271f24e4a41d8
2025-04-06 19:30:58 -0400 to 2025-05-06 19:28:33 -0500
- [beta-1.87] fix(rustc): Don't panic on unknown bins (rust-lang/cargo#15500)
2025-05-07 15:58:43 +00:00
Weihang Lo
bf217b4be0
[beta-1.87] Update cargo 2025-05-06 23:49:45 -04:00
bors
973ec11f61 Auto merge of #140592 - cuviper:beta-next, r=cuviper
[beta] backports

- Don't allow flattened format_args in const. #139624
- set subsections_via_symbols for ld64 helper sections #139752
- Fix detection of `main` function if there are expressions around it #140220
- rustdoc: Fix doctest heuristic for main fn wrapping #140420
- extend the list of registered dylibs on `test::prepare_cargo_test` #140563

r? cuviper
2025-05-03 03:52:37 +00:00
onur-ozkan
260fcc67f3 extend the list of registered dylibs on test::prepare_cargo_test
Signed-off-by: onur-ozkan <work@onurozkan.dev>
(cherry picked from commit 7b25d4a99e)
2025-05-02 17:25:15 -07:00
León Orell Valerian Liehr
8a4c4721cc rustdoc: Fix doctest heuristic for main fn wrapping
(cherry picked from commit 714ea10ea4)
2025-05-02 09:35:16 -07:00
Guillaume Gomez
1f6a6b1008 Fix bad handling of macros if there is already a main function
(cherry picked from commit aa69e3a0cb)
2025-05-02 09:29:33 -07:00
Guillaume Gomez
c44a1d7c45 If there is a ; alone, we consider that the doctest needs to be put inside a function
(cherry picked from commit 3ef98a55ef)
2025-05-02 09:29:33 -07:00
Guillaume Gomez
692490898b Improve code
(cherry picked from commit 3ededc1053)
2025-05-02 09:29:33 -07:00
Guillaume Gomez
745d54e5b2 Add regression ui test for #140162 and for #139651
(cherry picked from commit 81438c0b05)
2025-05-02 09:29:33 -07:00
Guillaume Gomez
0457f2e927 Fix detection of main function if there are expressions around it
(cherry picked from commit 3536324565)
2025-05-02 09:29:33 -07:00
usamoi
8ec60ca601 set subsections_via_symbols for ld64 helper sections
(cherry picked from commit b1a38313cb)
2025-05-02 09:29:27 -07:00
Mara Bos
4ad0f1e1d3 Add test for format_args!("{}", 0) in const.
(cherry picked from commit 56426db0b6)
2025-05-02 09:29:22 -07:00
Mara Bos
0980622033 Don't allow flattened format_args in const.
(cherry picked from commit cc791ebe60)
2025-05-02 09:29:22 -07:00
bors
9d6fe3d1b2 Auto merge of #139765 - dtolnay:hashextractif, r=ChrisDenton
[beta] Delay `hash_extract_if` stabilization from 1.87 to 1.88

This PR is a revert of:

- https://github.com/rust-lang/rust/pull/134655

for use in the event that we are unable to get https://github.com/rust-lang/rust/pull/139764 into 1.87 (current beta).
2025-04-28 23:17:14 +00:00
bors
74f40c495e Auto merge of #140269 - cuviper:beta-next, r=cuviper
[beta] backports

- Do not mix normalized and unnormalized caller bounds when constructing param-env for `receiver_is_dispatchable` #138941
- Ignore zero-sized types in wasm future-compat warning #139498
- Don't warn about `v128` in wasm ABI transition #139809
- Revert overzealous parse recovery for single colons in paths #140228

r? cuviper
2025-04-26 19:05:06 +00:00
Josh Stone
7ef00508c5 Bless ui/associated-consts/issue-93835
Beta-backporting #140228 has the same effect on this test as #139341
already had on master.
2025-04-24 13:56:16 -07:00
León Orell Valerian Liehr
2aec882174 Revert overzealous parse recovery for single colons
(cherry picked from commit 16da97be2f)
2025-04-24 13:55:32 -07:00
Alex Crichton
eaa7d3ace8 Don't warn about v128 in wasm ABI transition
This has other warnings if necessary and doesn't need extra warnings
from this FCW.

cc #138762

(cherry picked from commit 19e44d463b)
2025-04-24 13:38:46 -07:00
Alex Crichton
39721fa79b Ignore zero-sized types in wasm future-compat warning
This commit fixes a false positive of the warning triggered for #138762
and the fix is to codify that zero-sized types are "safe" in both the
old and new ABIs.

(cherry picked from commit f9091e24a0)
2025-04-24 13:38:40 -07:00
Michael Goulet
67737dfe28 Do not mix normalized and unnormalized caller bounds when constructing param-env for receiver_is_dispatchable
(cherry picked from commit 4f2baaa9c6)
2025-04-24 13:38:36 -07:00
bors
386abeb93a Auto merge of #139988 - cuviper:beta-next, r=cuviper
[beta] backports

- Fix 2024 edition doctest panic output #139328
- make `Arguments::as_statically_known_str` doc(hidden) #139389
- Revert "Deduplicate template parameter creation" #139878
- sync::mpsc: prevent double free on `Drop` #139553

r? cuviper
2025-04-19 12:54:40 +00:00
Petros Angelatos
f31cf5cb7c sync::mpsc: prevent double free on Drop
This PR is fixing a regression introduced by #121646 that can lead to a
double free when dropping the channel.

The details of the bug can be found in the corresponding crossbeam PR
https://github.com/crossbeam-rs/crossbeam/pull/1187

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
(cherry picked from commit b9e2ac5c7b)
2025-04-18 10:06:17 -07:00
Petros Angelatos
e71ad4a2c9 sync::mpsc: add miri reproducer of double free
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
(cherry picked from commit 9eb6a5446a)
2025-04-18 10:06:17 -07:00
Vadim Petrochenkov
4782bbc568 Revert "Deduplicate template parameter creation"
This reverts commit 6adc2c1fd6.

(cherry picked from commit 38f7060a73)
2025-04-17 10:26:17 -07:00
mejrs
d1cd5ee9f6 make Arguments::as_statically_known_str doc(hidden)
(cherry picked from commit cfcc47ea54)
2025-04-17 10:26:12 -07:00
Guillaume Gomez
10e682e67a Use eprint! instead of eprintln!
(cherry picked from commit f9927ee042)
2025-04-17 10:26:06 -07:00
Guillaume Gomez
3d4b571c3d Add regression test for #137970
(cherry picked from commit fff2484700)
2025-04-17 10:26:06 -07:00
Guillaume Gomez
84ed87a841 Fix 2024 edition doctest panic output
(cherry picked from commit a91e97c06c)
2025-04-17 10:26:06 -07:00
David Tolnay
d8fad7593a
[beta] Delay hash_extract_if stabilization from 1.87 to 1.88 2025-04-13 13:31:52 -07:00
bors
a5948295b4 Auto merge of #139625 - Zoxc:revert-pr138824, r=oli-obk
[beta] Revert "Remove `prev_index_to_index` field from `CurrentDepGraph`"

This reverts https://github.com/rust-lang/rust/pull/138824 on beta to fix issues with incremental compilation in that PR. https://github.com/rust-lang/rust/pull/139410 will fix these on master.

r? `@oli-obk`
2025-04-12 10:32:00 +00:00
John Kåre Alsaker
2f6851861f Revert "Remove prev_index_to_index field from CurrentDepGraph"
This reverts commit 60e4a1b8f3.
2025-04-10 11:34:00 +02:00
bors
a22ecb51f8 Auto merge of #139463 - weihanglo:update-beta-cargo, r=weihanglo
[beta-1.87] Update cargo

1 commits in a6c604d1b8a2f2a8ff1f3ba6092f9fda42f4b7e9..202515849e943032d8fdd3eba57bf2c86e0da736
2025-03-26 18:11:00 +0000 to 2025-04-06 19:30:58 -0400
- [beta-1.87] chore: Bump cargo-util-schemas to 0.8.1 (rust-lang/cargo#15402)

r? ghost
2025-04-07 16:07:19 +00:00
Weihang Lo
35dae586e3
[beta-1.87] Update cargo 2025-04-07 00:03:50 -04:00
bors
e6ed56aad8 Auto merge of #139360 - BoxyUwU:bump_beta_bootstrap, r=kobzol
[beta] bump stage0
2025-04-05 15:42:21 +00:00
Boxy
8e37a0b8a6 bump stage0 2025-04-04 11:41:34 +01:00
bors
45165c82a4 Auto merge of #139185 - BoxyUwU:beta, r=BoxyUwU
[beta] Prepare Rust 1.87.0

r? ghost
2025-04-01 00:58:36 +00:00
Boxy
2d814ae6d4 replace version placeholder 2025-03-31 18:09:32 +01:00