about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-09-16rustupRalf Jung-2/+3
2025-09-16fix issue with `cmse-nonsecure-entry` ABI being both async and c-variadicFolkert de Vries-26/+105
2025-09-16Suggest removing Box::newCameron Steffen-3/+49
2025-09-16Merge pull request #20612 from Veykril/veykril/push-vzuykrsxvrtsLukas Wirth-46/+49
fix: Fix expand macro recursively not working correctly for nested macro calls
2025-09-16Merge pull request #20402 from rust-lang/veykril/push-pursotqxutsxLukas Wirth-3/+22
Add more workaround hacks for incorrect startup diagnostics
2025-09-16Merge pull request #20517 from Veykril/veykril/push-wrurmtqppzusLukas Wirth-101/+144
fix: Only compute unstable paths on nightly toolchains for IDE features
2025-09-16Add more workaround hacks for incorrect startup diagnosticsLukas Wirth-8/+16
2025-09-16Workaround lsp-types typoLukas Wirth-1/+12
2025-09-16fix: Only compute unstable paths on nightly toolchains for IDE featuresLukas Wirth-101/+144
2025-09-16fix: Fix expand macro recursively not working correctly for nested macro callsLukas Wirth-46/+49
2025-09-16Auto merge of #146614 - Zalathar:rollup-hcxvdi1, r=Zalatharbors-1590/+1772
Rollup of 9 pull requests Successful merges: - rust-lang/rust#145095 (Migrate `UnsizedConstParamTy` to unstable impl of `ConstParamTy_`) - rust-lang/rust#145960 (Split `FnCtxt::report_args_error` into subfunctions) - rust-lang/rust#146402 (interpret: fix overlapping aggregate initialization) - rust-lang/rust#146466 (llvm-wrapper: other cleanup) - rust-lang/rust#146574 (compiletest: Enable new-output-capture by default) - rust-lang/rust#146599 (replace some `#[const_trait]` with `const trait`) - rust-lang/rust#146601 (compiletest: Make `./x test --test-args ...` work again) - rust-lang/rust#146608 (improve internal bootstrap docs) - rust-lang/rust#146609 (bootstrap: lower verbosity of cargo to one less than bootstrap's) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-15Don’t suggest foreign `doc(hidden)` types in E0277 diagnosticsJules Bertholet-15/+94
2025-09-16Restrict simple assignment condition.Camille Gillot-2/+8
2025-09-16Recognize canonical `?` pattern with `Result` (#15680)Jason Newcomb-40/+113
This recognizes the following expression as being equivalent to the question mark: ```rust match x { Ok(v) => v, Err(e) => return Err(e.into()), // or `Into::into(x)` or `<T as Into<U>>::into(x)` } ``` Fixes rust-lang/rust-clippy#15679 changelog: [`question_mark`]: recognizes a match with an early return with a call to `.into()` as possibly equivalent to a question mark
2025-09-16Rollup merge of #146609 - lolbinarycat:bootstrap-less-verbose-cargo, r=KobzolStuart Cook-7/+6
bootstrap: lower verbosity of cargo to one less than bootstrap's the main thing this does is eliminate the "Fresh ..." output when `--verbose` is only passed once. r? `@Kobzol`
2025-09-16Rollup merge of #146608 - lolbinarycat:bootstrap-readme, r=KobzolStuart Cook-0/+20
improve internal bootstrap docs Mainly focused on making it easier to figure out how tools get built without having to read the `bootstrap_tool!` macro, but also added some subdirs of `build/` to the readme.
2025-09-16Rollup merge of #146601 - Enselic:fix-test-args, r=Mark-SimulacrumStuart Cook-3/+6
compiletest: Make `./x test --test-args ...` work again It accidentally broke with https://github.com/rust-lang/rust/pull/146501. The intention of that PR was to keep existing behavior if `--exact` is not used, but it had a bug. This PR fixes that bug.
2025-09-16Rollup merge of #146599 - npmccallum:cleanup, r=fmeaseStuart Cook-6/+3
replace some `#[const_trait]` with `const trait`
2025-09-16Rollup merge of #146574 - Zalathar:capture, r=jieyouxuStuart Cook-1/+1
compiletest: Enable new-output-capture by default The new output-capture implementation was added in rust-lang/rust#146119, but was disabled by default and required opt-in. Since then, I haven't encountered any problems in my own testing/usage, and I haven't heard any problem reports from other contributors who might have opted in. It's unlikely that more opt-in testing will help, so the next step is to enable new-output-capture by default and see if anyone complains. (Hopefully nobody!) If needed, the new default can be overridden (for now) by setting environment variable `COMPILETEST_NEW_OUTPUT_CAPTURE=off`. Please file an issue (or let me know) if anyone finds a reason to do this. r? jieyouxu
2025-09-16Rollup merge of #146466 - klensy:llvm-wrapper-c, r=cuviperStuart Cook-131/+0
llvm-wrapper: other cleanup Cleanup few things around llvm-wrapper: First commit removes unused macro, added back in https://github.com/rust-lang/rust/pull/31709 it was used in `LLVMRustHasFeature`; second removes unused function, third one removes `jsbackend` llvm component - this is looks like remnants of some removed backend?
2025-09-16Rollup merge of #146402 - RalfJung:aggregate-init, r=saethlinStuart Cook-15/+92
interpret: fix overlapping aggregate initialization This fixes the problem pointed out by ````@saethlin```` in https://github.com/rust-lang/rust/issues/146383#issuecomment-3273224645. Also clarify when exactly current de-facto MIR semantics allow overlap of the LHS and RHS in an assignment.
2025-09-16Rollup merge of #145960 - scrabsha:push-kskuprrtmnky, r=jdonszelmannStuart Cook-1022/+1378
Split `FnCtxt::report_args_error` into subfunctions
2025-09-16Rollup merge of #145095 - tiif:unstable_const_param, r=BoxyUwUStuart Cook-405/+266
Migrate `UnsizedConstParamTy` to unstable impl of `ConstParamTy_` Now that we have ``#[unstable_feature_bound]``, we can remove ``UnsizedConstParamTy`` that was meant to be an unstable impl of stable type and ``ConstParamTy_`` trait. r? `@BoxyUwU`
2025-09-15Auto merge of #146610 - matthiaskrgr:rollup-xkt5kjz, r=matthiaskrgrbors-74/+93
Rollup of 9 pull requests Successful merges: - rust-lang/rust#146344 (tests/codegen-llvm: Make rust-abi-arch-specific-adjustment portable) - rust-lang/rust#146530 (rustc_codegen_llvm: Adjust RISC-V inline assembly's clobber list) - rust-lang/rust#146533 (Note some previous attempts to change the Default impl for `[T; 0]`) - rust-lang/rust#146539 (fix 404 MCP link) - rust-lang/rust#146546 (Switch `std::vec::PeekMut::pop` from self to this parameter.) - rust-lang/rust#146549 (On FreeBSD, use readdir instead of readdir_r) - rust-lang/rust#146559 (Fix typo in error message) - rust-lang/rust#146563 (bootstrap.py: disable incremental build for bootstrap in CI) - rust-lang/rust#146576 (opt-dist: don't set `RUST_LOG=collector=debug`) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-15Merge pull request #20671 from ShoyuVanilla/explicit-preds-fixChayim Refael Friedman-6/+20
fix: More precise clause filtering for `explicit_*_predicates_of`
2025-09-15Rollup merge of #146576 - ognevny:opt-dist-collector-logs, r=KobzolMatthias Krüger-1/+0
opt-dist: don't set `RUST_LOG=collector=debug` see https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/opt-dist.3A.20do.20not.20set.20RUST_LOG.3Dcollector.3Ddebug.20forcefully r? Kobzol
2025-09-15Rollup merge of #146563 - lolbinarycat:bootstrap-ci-no-incremental, r=KobzolMatthias Krüger-0/+3
bootstrap.py: disable incremental build for bootstrap in CI locally this seems to save a quarter of a second per build of bootstrap, presumably mainly because it avoids writing 280MB to disk. unsure if this is worth two extra lines of python, i'll let t-bootstrap decide.
2025-09-15Rollup merge of #146559 - Jules-Bertholet:fix-typo, r=nnethercoteMatthias Krüger-8/+8
Fix typo in error message
2025-09-15Rollup merge of #146549 - asomers:freebsd-readdir, r=Mark-SimulacrumMatthias Krüger-57/+63
On FreeBSD, use readdir instead of readdir_r readdir_r has the same problems on FreeBSD as it does on other platforms: it assumes a fixed NAME_MAX. And readdir has the same thread-safety guarantee as it does on other platforms: it's safe as long as only one thread tries to read from the directory stream at a given time. Furthermore, readdir_r is likely to be removed for FreeBSD 16, so we should stop using it now.
2025-09-15Rollup merge of #146546 - cammeresi:pop, r=Mark-SimulacrumMatthias Krüger-4/+5
Switch `std::vec::PeekMut::pop` from self to this parameter. Since PeekMut implements Deref, it shouldn't have any methods of its own. See also: `std::collections::binary_heap::PeekMut::pop` Pointed out: https://github.com/rust-lang/rust/issues/122742#issuecomment-3064050551 Related: rust-lang/rust#122742
2025-09-15Rollup merge of #146539 - luca3s:push-xuwtvwrsspnp, r=jieyouxuMatthias Krüger-1/+1
fix 404 MCP link I think this is what this should point to. The old link did a redirect, so one could also fix the redirect, but i wasn't able to find where the redirect target is defined. Found in https://rust-lang.zulipchat.com/#narrow/channel/242906-t-compiler.2Farm/topic/Tier.20changes.20for.20bare-metal.20Arm.20AArch32.20targets/with/539395822
2025-09-15Rollup merge of #146533 - Zalathar:array-default, r=compiler-errorsMatthias Krüger-0/+5
Note some previous attempts to change the Default impl for `[T; 0]` Recently, rust-lang/rust#145457 experimented with changing the Default impl for `[T; 0]`. Subsequently, rust-lang/rust#146531 also aimed to perform a similar experiment. It seems like a good idea to add some links to the relevant source code, so that the historical context of this tricky topic is easier to find.
2025-09-15Rollup merge of #146530 - a4lg:riscv-inline-asm-default-clobber-float-flags, ↵Matthias Krüger-1/+2
r=Amanieu rustc_codegen_llvm: Adjust RISC-V inline assembly's clobber list Despite that the `fflags` register (representing floating point exception flags) is stated as a flag register [in the reference](https://doc.rust-lang.org/reference/inline-assembly.html#r-asm.rules.preserved-registers), it's not in the default clobber list of the RISC-V inline assembly and it would be better to fix it.
2025-09-15Rollup merge of #146344 - Gelbpunkt:loongarch-codegen-llvm-test, ↵Matthias Krüger-2/+6
r=Mark-Simulacrum tests/codegen-llvm: Make rust-abi-arch-specific-adjustment portable This test currently only runs on RISC-V and loongarch hosts, but assumes that the host target is the -gnu target. By using minicore, we can run this test on all host targets, regardless of architecture, as long as the LLVM components are built. This also fixes this test on musl hosts of these architectures (though I've only tested on loongarch64-unknown-linux-musl).
2025-09-15Auto merge of #146405 - BoxyUwU:relnotes_1_90, r=Mark-Simulacrumbors-0/+126
Add relnotes for 1.90.0 r? `@Mark-Simulacrum` cc `@rust-lang/release` `@rustbot` ping relnotes-interest-group
2025-09-15remove FIXME from `has_significant_drop`, replaced with checking ↵ash-8/+19
non_region_infer
2025-09-15bootstrap: lower verbosity of cargo to one less than bootstrap'sbinarycat-7/+6
the main thing this does is eliminate the "Fresh ..." output when `--verbose` is only passed once.
2025-09-15Merge pull request #1921 from a4lg/riscv-inline-asm-general-improvementsSayantan Chakraborty-51/+215
RISC-V: Improvements of inline assembly uses
2025-09-15improve internal bootstrap docsbinarycat-0/+20
2025-09-15Merge pull request #2589 from Kobzol/ci-bors-backticksJakub Beránek-2/+3
Clarify that backtick escaping doesn't work for `@bors try jobs`
2025-09-15Update src/tests/ci.mdJakub Beránek-1/+1
Co-authored-by: Ralf Jung <post@ralfj.de>
2025-09-15fix: Move CoerceShared into opsAapo Alasuutari-15/+20
2025-09-15Bump rustfix 0.8.1 -> 0.8.7Jynn Nelson-10/+10
This commit can be replicated by running `cargo update -p rustfix --precise 0.8.7 && x test ui --bless`. --- The reasons this affects UI tests is as follows: - The UI test suite runs rustc with `-Z deduplicate-diagnostics=no --error-format=json`, which means that rustc emits multiple errors containing identical suggestions. That caused the weird-looking code that had multiple `X: Copy` suggestions. - Those suggestions are interpreted not by rustc itself, but by the `rustfix` library, maintained by cargo but published as a separate crates.io library and used by compiletest. - Sometime between rustfix 0.8.1 and 0.8.7 (probably in cargo 14747, but it's hard to tell because rustfix's versioning doesn't match cargo's), rustfix got smarter and stopped applying duplicate suggestions. Update rustfix to match cargo's behavior. Ideally, we would always share a version of rustfix between cargo and rustc (perhaps with a path dependency?), to make sure we are testing the behavior we ship. But for now, just manually update it to match. Note that the latest version of rustfix published to crates.io is 0.9.1, not 0.8.7. But 0.9.1 is not the version used in cargo, which is 0.9.3. Rather than trying to match versions exactly, I just updated rustfix to the latest in the 0.8 branch.
2025-09-15Introduce basic Reborrow testsAapo Alasuutari-0/+215
2025-09-15Add reborrow CoerceShared feature gate testAapo Alasuutari-0/+16
2025-09-15Introduce CoerceShared lang item and traitAapo Alasuutari-0/+11
2025-09-15Recognize canonical `?` pattern with `Result`Samuel Tardieu-40/+113
2025-09-16fix: More precise clause filtering for `explicit_*_predicates_of`Shoyu Vanilla-6/+20
2025-09-15compiletest: Make `./x test --test-args ...` work againMartin Nordholts-3/+6
It accidentally broke with a48c8e337d1. The intention of that commit was to keep existing behavior if `--exact` is not used, but it had a bug. This commit fixes that bug.
2025-09-15Port a bunch of stuff from rustc and fix a bunch of type mismatches/diagnosticsChayim Refael Friedman-3944/+9358
This started from porting coercion, but ended with porting much more.