summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-05-09Auto merge of #140859 - pietroalbini:pa-stable, r=pietroalbini 1.87.0bors-139/+551
[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-09update wordingPietro Albini-1/+1
2025-05-09update links to point to stablePietro Albini-73/+73
2025-05-09fix new apis being marked as becoming const this releasePietro Albini-5/+5
2025-05-09ReviewMichael Goulet-6/+21
2025-05-09Only include associated type bounds for Self:Sized associated types if they ↵Michael Goulet-8/+55
are provided
2025-05-09Don't delay a bug on malformed meta items involving interpolated tokensLeón Orell Valerian Liehr-9/+30
Co-authored-by: Jana Dönszelmann <jana@donsz.nl>
2025-05-09Restrict the cases where `ptr_eq` triggers (#14526)Alex Macleod-100/+60
`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-09Ensure that peeling does not recurse into macros (#14527)Alex Macleod-15/+38
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-09fix: map_entry: don't emit lint before checks have been performed (#14568)Alex Macleod-15/+62
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`manual_ok_err`: don't lint subpatterns (#14661)Timo-2/+12
Fixes https://github.com/rust-lang/rust-clippy/issues/14660 changelog: none
2025-05-09update channel to stablePietro Albini-1/+1
2025-05-09update release notes from masterPietro Albini-0/+289
2025-05-07Auto merge of #140727 - weihanglo:update-beta-cargo, r=weihanglobors-0/+0
[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-06[beta-1.87] Update cargoWeihang Lo-0/+0
2025-05-03Auto merge of #140592 - cuviper:beta-next, r=cuviperbors-62/+274
[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-02extend the list of registered dylibs on `test::prepare_cargo_test`onur-ozkan-3/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev> (cherry picked from commit 7b25d4a99edc12909dc73c31cb6a44238c4b9bf9)
2025-05-02rustdoc: Fix doctest heuristic for main fn wrappingLeón Orell Valerian Liehr-88/+182
(cherry picked from commit 714ea10ea41e97310a1b3d90fed4cfb3e2dd6b73)
2025-05-02Fix bad handling of macros if there is already a `main` functionGuillaume Gomez-1/+27
(cherry picked from commit aa69e3a0cb8f1b2e086709a038baad6f39249150)
2025-05-02If there is a `;` alone, we consider that the doctest needs to be put inside ↵Guillaume Gomez-29/+4
a function (cherry picked from commit 3ef98a55ef95b058e55897f1b213dd965839e3ed)
2025-05-02Improve codeGuillaume Gomez-4/+7
(cherry picked from commit 3ededc1053f752d993a0b25286faebfe3616819d)
2025-05-02Add regression ui test for #140162 and for #139651Guillaume Gomez-0/+28
(cherry picked from commit 81438c0b05f177ae7bc0d6511d1cc507652eb241)
2025-05-02Fix detection of `main` function if there are expressions around itGuillaume Gomez-4/+17
(cherry picked from commit 35363245657ee53a3735f1cef0df9a45e9ed44b9)
2025-05-02set subsections_via_symbols for ld64 helper sectionsusamoi-0/+53
(cherry picked from commit b1a38313cb0dee9a7c5573ae37ad48b0a347cb7c)
2025-05-02Add test for format_args!("{}", 0) in const.Mara Bos-1/+14
(cherry picked from commit 56426db0b634fcd8d7e5842f39593651a594e602)
2025-05-02Don't allow flattened format_args in const.Mara Bos-1/+8
(cherry picked from commit cc791ebe60f936355ffa62a53789cc69bcfde7e6)
2025-04-28Auto merge of #139765 - dtolnay:hashextractif, r=ChrisDentonbors-10/+16
[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-26Auto merge of #140269 - cuviper:beta-next, r=cuviperbors-145/+193
[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-24Bless ui/associated-consts/issue-93835Josh Stone-25/+10
Beta-backporting #140228 has the same effect on this test as #139341 already had on master.
2025-04-24Revert overzealous parse recovery for single colonsLeón Orell Valerian Liehr-92/+64
(cherry picked from commit 16da97be2f1e94a550985f22289975db4b32c18d)
2025-04-24Don't warn about `v128` in wasm ABI transitionAlex Crichton-2/+47
This has other warnings if necessary and doesn't need extra warnings from this FCW. cc #138762 (cherry picked from commit 19e44d463bf671f6ec1b02b32837ad54dd5d626f)
2025-04-24Ignore zero-sized types in wasm future-compat warningAlex Crichton-0/+11
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 f9091e24a0af713378ee705c86689c1435d0b157)
2025-04-24Do not mix normalized and unnormalized caller bounds when constructing ↵Michael Goulet-26/+61
param-env for receiver_is_dispatchable (cherry picked from commit 4f2baaa9c6b75d4267eea9e1096339d56d380615)
2025-04-19Auto merge of #139988 - cuviper:beta-next, r=cuviperbors-30/+142
[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-18sync::mpsc: prevent double free on `Drop`Petros Angelatos-2/+8
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 b9e2ac5c7b1d6bb3b6f5fdfe0819eaf7e95bf7ff)
2025-04-18sync::mpsc: add miri reproducer of double freePetros Angelatos-0/+50
Signed-off-by: Petros Angelatos <petrosagg@gmail.com> (cherry picked from commit 9eb6a5446a4e35f48ad22a5b70a74a8badb9fa0d)
2025-04-17Revert "Deduplicate template parameter creation"Vadim Petrochenkov-26/+45
This reverts commit 6adc2c1fd6ecde7bf83c8b8fbc71f402ced87054. (cherry picked from commit 38f7060a73acd5ec6ed7d4820dccbf2aa584fc68)
2025-04-17make `Arguments::as_statically_known_str` doc(hidden)mejrs-0/+1
(cherry picked from commit cfcc47ea540750dac30010edb42c4fa21efd577a)
2025-04-17Use `eprint!` instead of `eprintln!`Guillaume Gomez-33/+23
(cherry picked from commit f9927ee042f7d7418fbb64082272ce1feff4d895)
2025-04-17Add regression test for #137970Guillaume Gomez-0/+44
(cherry picked from commit fff2484700bb7d1fa320a666109d1868767dfa6a)
2025-04-17Fix 2024 edition doctest panic outputGuillaume Gomez-3/+5
(cherry picked from commit a91e97c06c778b84663cfe4f2871b868d275a137)
2025-04-13[beta] Delay `hash_extract_if` stabilization from 1.87 to 1.88David Tolnay-10/+16
2025-04-12Auto merge of #139625 - Zoxc:revert-pr138824, r=oli-obkbors-144/+185
[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-10Revert "Remove `prev_index_to_index` field from `CurrentDepGraph`"John Kåre Alsaker-144/+185
This reverts commit 60e4a1b8f37c48cfc4c8c78aaafc5ff2f8d02ca1.
2025-04-07Auto merge of #139463 - weihanglo:update-beta-cargo, r=weihanglobors-0/+0
[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[beta-1.87] Update cargoWeihang Lo-0/+0
2025-04-05Auto merge of #139360 - BoxyUwU:bump_beta_bootstrap, r=kobzolbors-464/+358
[beta] bump stage0
2025-04-04bump stage0Boxy-464/+358
2025-04-01Auto merge of #139185 - BoxyUwU:beta, r=BoxyUwUbors-150/+150
[beta] Prepare Rust 1.87.0 r? ghost
2025-03-31replace version placeholderBoxy-149/+149