summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-04-29Auto merge of #124517 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.78.0bors-25/+30
[stable] 1.78 (round 2) This backports "Don't trigger `unused_qualifications` on global paths" (https://github.com/rust-lang/rust/pull/122435). r? `@Mark-Simulacrum`
2024-04-29Don't trigger `unused_qualifications` on global paths许杰友 Jieyou Xu (Joe)-25/+30
2024-04-28Auto merge of #124477 - Mark-Simulacrum:stable-next, r=Mark-Simulacrumbors-3/+172
[stable] 1.78.0 release https://forge.rust-lang.org/release/process.html#promote-branches-t-3-days-monday This also includes a backport of: * Use raw-dylib for Windows synchronization functions #124019 r? `@Mark-Simulacrum`
2024-04-28Cranelift: Revert raw-dylib for Windows futex APIsChris Denton-0/+37
2024-04-28Use raw-dylib for Windows futex APIsChris Denton-1/+13
This is a workaround for older mingw `synchronization` import library not working on at least some system.
2024-04-28Prepare 1.78 releaseMark Rousskov-2/+122
2024-04-27Auto merge of #124369 - flip1995:clippy-backport, r=Mark-Simulacrumbors-114/+367
[beta] Clippy backport r? `@Mark-Simulacrum` Backports: - rust-lang/rust-clippy#12486 - rust-lang/rust-clippy#12572 - rust-lang/rust-clippy#12508 - rust-lang/rust-clippy#12617 The first one is a bit bigger as usual for a backport. But it fixes a major issue with this lint that we overlooked. So I think this is worth it. After that was merged into nightly, there were no new issues opened about this lint, so IMO this is safe to backport to `beta` and put into stable.
2024-04-25use `Lrc` instead of the aliased type `Arc` directlyy21-3/+3
2024-04-25Auto merge of #12617 - y21:issue-12616, r=Alexendoobors-1/+34
avoid an ICE in `ptr_as_ptr` when getting the def_id of a local Fixes #12616 `Res::def_id` can panic, so avoid calling it in favor of `opt_def_id`, so we can gracefully handle resolutions that don't have a `DefId` (e.g. local variables) and get a false negative in the worst case, rather than an ICE changelog: Fix ICE in [`ptr_as_ptr`] when the cast expression is a function call to a local variable
2024-04-25Auto merge of #12508 - y21:issue12506, r=llogiqbors-89/+118
Fix infinite loop in `cast_sign_loss` when peeling unwrap method calls Fixes #12506 The lint wants to peel method calls but didn't actually reassign the expression, leading to an infinite loop. ---- changelog: Fix infinite loop in [`cast_sign_loss`] when having two chained `.unwrap()` calls
2024-04-25Auto merge of #12572 - y21:mixed_attributes_style_style, r=llogiqbors-1/+1
Move `mixed_attributes_style` to style > It currently is in suspicious. I wouldn't say that the linted code is "most likely wrong or useless" [...] > :sweat_smile: I would still argue that this doesn't belong in the suspicious group, but rather in the style group. These are some good points made [on zulip](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/mixed_attributes_style.20on.20outlined.20modules/near/429823328). ---- changelog: Move [`mixed_attributes_style`] to the `style` category
2024-04-25Auto merge of #12486 - J-ZhengLi:issue12435, r=y21bors-23/+214
don't lint [`mixed_attributes_style`] when mixing docs and other attrs fixes: #12435 fixes: #12436 fixes: #12530 --- changelog: don't lint [`mixed_attributes_style`] when mixing different kind of attrs; and move it to late pass;
2024-04-23Auto merge of #124272 - cuviper:beta-next, r=cuviperbors-34/+84
[beta] backports - Stop using `HirId` for fn-like parents since closures are not `OwnerNode`s #123804 r? cuviper
2024-04-22Stop using HirId for fn-like parentsMichael Goulet-34/+84
(cherry picked from commit 68d7c837fc377ac4145d931171fa2b1d1bd1670f)
2024-04-19Auto merge of #124139 - cuviper:beta-next, r=cuviperbors-251/+71
[beta] backports - Silence `unused_imports` lint for redundant imports #123744 - Call the panic hook for non-unwind panics in proc-macros #123825 - rustdoc: check redundant explicit links with correct itemid #123905 - disable two debuginfo tests under gdb 15 #123963 r? cuviper
2024-04-19disable two debuginfo tests under gdb 15Rémy Rakic-0/+4
it seems gdb 15 regresses some of our debuginfo tests. disable them temporarily so that CI doesn't randomly start failing soon. (cherry picked from commit 6e19f82160c216fcb5f8eaff915b7fe274a5568e)
2024-04-18rustdoc: check redundant explicit links with correct itemidMichael Howell-11/+22
Fixes a regression caused by 0a50dba50bedd24377bd1066da3b4b7066df4d28 (cherry picked from commit 0fea38a01f4015d310230b76984068b6fe8414d4)
2024-04-18Call the panic hook for non-unwind panics in proc-macrosBen Kimock-1/+6
(cherry picked from commit d8dc28b93e4cbfe2a3c26af06c73b0ea46f67a1e)
2024-04-18Silence unused_imports lint for redundant importsMichael Goulet-239/+39
(cherry picked from commit 0db2a4010a5a7a57372e9135d327da8c7d92c8ab)
2024-04-12Auto merge of #123801 - cuviper:beta-next, r=cuviperbors-138/+402
[beta] backports - fix attribute validation on associated items in traits #121545 - Only inspect user-written predicates for privacy concerns #123377 - Check def id before calling `match_projection_projections` #123471 - Restore `pred_known_to_hold_modulo_regions` #123578 - Beta revert "Use OS thread name by default" #123533 r? cuviper
2024-04-11Beta revert "Use OS thread name by default"Chris Denton-130/+10
This reverts #121666 due to #123495 This has already been done on master but beta needs something that will backport cleanly. (cherry picked from commit 081ad8527d7b79e4761c497c12930e630de9a230)
2024-04-11Revert "remove `pred_known_to_hold_modulo_regions`"Rémy Rakic-3/+47
This reverts commit 399a258f46074740862568b124c02f7b7d04638c. (cherry picked from commit 68b4257ccf0c94f855a46b48e48c4c73559eff84)
2024-04-11add non-regression test for issue 123275Rémy Rakic-0/+244
(cherry picked from commit 54f8db84329116889fce5d58292b5cc6b83642e6)
2024-04-11Check def id before calling match_projection_projectionsMichael Goulet-0/+41
(cherry picked from commit 43dae6934153693be62902fcefed0f97b4ca892f)
2024-04-11Only inspect user-written predicates for privacy concernsOli Scherer-16/+12
(cherry picked from commit 83bd12c70fd34dece71bcc632ee3df64036ca1d8)
2024-04-11Add regression testOli Scherer-0/+43
(cherry picked from commit 769ab55558488d1ff786fa13e8ba1fb071a9791b)
2024-04-11fix attribute validation on associated items in traitsgvozdvmozgu-0/+16
(cherry picked from commit 8b576d553678688ece127b6f6a25b611e8726c05)
2024-04-09Auto merge of #123682 - pietroalbini:pa-cve-2024-24576-beta, r=pietroalbinibors-14/+456
[beta] Backport fix of CVE-2024-24576 r? `@ghost` See https://blog.rust-lang.org/2024/04/09/cve-2024-24576.html
2024-04-09allow the test bat files in tidyPietro Albini-0/+3
2024-04-09update release notesPietro Albini-0/+134
2024-04-09Use new-style directives in ui testChris Denton-3/+3
2024-04-09Document Windows argument splittingChris Denton-2/+133
2024-04-09Disallow or quote all specials in bat argsChris Denton-12/+186
2024-04-06Auto merge of #123466 - cuviper:beta-next, r=cuviperbors-16/+207
[beta] backports - Fix f16 and f128 feature gates in editions other than 2015 #123307 / #123445 - Update to LLVM 18.1.2 #122772 - unix fs: Make hurd using explicit new rather than From #123057 - Don't inherit codegen attrs from parent static #123310 - Make sure to insert Sized bound first into clauses list #123302 r? cuviper
2024-04-04Make sure to insert Sized bound first into clauses listMichael Goulet-3/+39
(cherry picked from commit f2fd2d8c7080f7a7d770b3e3d27e525250c182dc)
2024-04-04Don't inherit codegen attrs from parent staticMichael Goulet-1/+18
(cherry picked from commit 4ff8a9bd6b64e32703603cf8bc8cb5cb221d4889)
2024-04-04unix fs: Make hurd and horizon using explicit new rather than FromSamuel Thibault-2/+2
408c0ea2162b ("unix time module now return result") dropped the From impl for SystemTime, breaking the hurd and horizon builds. Fixes #123032 (cherry picked from commit 7b4e5079619f99a1bff8a2f388b498be5687d280)
2024-04-04Update to LLVM 18.1.2Nikita Popov-0/+0
(cherry picked from commit 022e42db00384212e0325d48316886fdf4af9c5b)
2024-04-04Fix f16 and f128 feature gates in editions other than 2015Trevor Gross-20/+22
Fixes https://github.com/rust-lang/rust/issues/123282 Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> (cherry picked from commit 5afe072ead1154f9817ee610e3e60345507c7625)
2024-04-04Update f16 and f128 tests to run on both 2015 and 2018 editionsTrevor Gross-10/+146
Reproduce the bug from <https://github.com/rust-lang/rust/issues/123282> that indicates this feature gate hits edition-dependent resolution paths. Resolution changed in edition 2018, so test that as well. (cherry picked from commit 9a7b1762279eaa95d0289760d3b859fbbc9221f1)
2024-03-29Auto merge of #123172 - cuviper:beta-next, r=cuviperbors-57/+428
[beta] backports - Do not eat nested expressions' results in `MayContainYieldPoint` format args visitor #122680 - Fix heading anchors in doc pages. #122693 - Make `#[diagnostic::on_unimplemented]` format string parsing more robust #122402 - Update ninja on Windows #123178 r? cuviper
2024-03-28Update ninja on WindowsNilstrieb-1/+1
Errors started showing up, and I read somewhere that this might be because of old ninja versions. This ninja version is indeed *ancient*. ``` multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you ``` (cherry picked from commit b546764cbef7ac449cbad86636b4ca8daa9f5ef6)
2024-03-28Make `#[diagnostic::on_unimplemented]` format string parsing more robustGeorg Semmler-54/+382
This commit fixes several issues with the format string parsing of the `#[diagnostic::on_unimplemented]` attribute that were pointed out by @ehuss. In detail it fixes: * Appearing format specifiers (display, etc). For these we generate a warning that the specifier is unsupported. Otherwise we ignore them * Positional arguments. For these we generate a warning that positional arguments are unsupported in that location and replace them with the format string equivalent (so `{}` or `{n}` where n is the index of the positional argument) * Broken format strings with enclosed }. For these we generate a warning about the broken format string and set the emitted message literally to the provided unformatted string * Unknown format specifiers. For these we generate an additional warning about the unknown specifier. Otherwise we emit the literal string as message. This essentially makes those strings behave like `format!` with the minor difference that we do not generate hard errors but only warnings. After that we continue trying to do something unsuprising (mostly either ignoring the broken parts or falling back to just giving back the literal string as provided). Fix #122391 (cherry picked from commit 5568c569c03c8c22ce81185b9e49efcaa6866050)
2024-03-28Fix heading anchors in doc pages.Eric Huss-0/+22
(cherry picked from commit 39f2d25090e4b61a695fb6d72113689dcf2ae724)
2024-03-28add non-regression test for issue 122674Rémy Rakic-0/+22
(cherry picked from commit f3e9dfaed6c4d44fc0a5182221c31e5b0ff038fd)
2024-03-28do not eat nested exprs result in format args visitorRémy Rakic-2/+1
(cherry picked from commit 8beec62315538da7449fe869fd366181f7923b6e)
2024-03-27Auto merge of #123117 - weihanglo:update-beta-cargo, r=weihanglobors-0/+0
[beta-1.78] Update cargo 2 commits in 2fe739fcf16c5bf8c2064ab9d357f4a0e6c8539b..54d8815d04fa3816edc207bbc4dd36bf18014dbc 2024-03-15 21:39:18 +0000 to 2024-03-26 18:23:22 +0000 - [beta-1.78] Do not strip debuginfo by default for MSVC (rust-lang/cargo#13653) - [beta 1.78] Fix publish script due to crates.io CDN change (rust-lang/cargo#13616) r? ghost
2024-03-26[beta-1.78] Update cargoWeihang Lo-0/+0
2024-03-23Auto merge of #122853 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-416/+317
[beta] Bump to releases 1.77 compiler Completing the release [process](https://forge.rust-lang.org/release/process.html)... r? `@Mark-Simulacrum`
2024-03-21Bump to releases 1.77 compilerMark Rousskov-416/+317