about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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.
2025-09-15Make llvm_enzyme a regular cargo featurebjorn3-7/+3
This makes it clearer that it is set by the build system rather than by the rustc that compiles the current rustc. It also avoids bootstrap needing to pass --check-cfg llvm_enzyme to rustc.
2025-09-15opt-dist: don't set `RUST_LOG=collector=debug`Maksim Bondarenkov-1/+0
see [Zulip discussion](https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/opt-dist.3A.20do.20not.20set.20RUST_LOG.3Dcollector.3Ddebug.20forcefully)
2025-09-15Merge pull request #20669 from ChayimFriedman2/testing-guideLaurențiu Nicola-0/+107
internal: Add a testing guide
2025-09-15Add a testing guideChayim Refael Friedman-0/+107
2025-09-15Clarify that backtick escaping doesn't work for `@bors try jobs`Jakub Beránek-2/+3
2025-09-15compiletest: Enable new-output-capture by defaultZalathar-1/+1
2025-09-15Merge pull request #20667 from ChayimFriedman2/ns-cleanup2Chayim Refael Friedman-0/+34
internal: Add Regression Test For The One And The Only Issue #5514
2025-09-15Add Regression Test For The One And The Only Issue #5514Chayim Refael Friedman-0/+34
2025-09-15Merge pull request #20652 from ChayimFriedman2/cli-diagsLaurențiu Nicola-14/+56
internal: Improve `rust-analyzer diagnostics`
2025-09-15Merge pull request #20665 from ChayimFriedman2/error-notableShoyu Vanilla (Flint)-0/+29
fix: Don't mark unknown type as implementing every notable trait
2025-09-15Add regression tests to some S-blocked-on-new-solver issuesChayim Refael Friedman-1/+137
That were fixed by the migration.
2025-09-15Don't mark unknown type as implementing every notable traitChayim Refael Friedman-0/+29
Because the new solver, will return "yes" for them (which is a good thing).
2025-09-15Rollup merge of #146501 - Enselic:x-test-filter, r=Mark-SimulacrumMatthias Krüger-11/+54
compiletest: Fix `--exact` test filtering This fix only changes the behavior when using `--exact` test filtering, which was quite broken. Before this fix, the following runs 0 tests: $ ./x test tests/run-make/crate-loading -- --exact running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 431 filtered out; finished in 24.95µs With the fix the desired test is run: $ ./x test tests/run-make/crate-loading -- --exact running 1 tests test [run-make] tests/run-make/crate-loading ... ok Without `--exact` the set of run tests is unchanged. This still runs "too many" (cc rust-lang/rust#134341) tests $ ./x test tests/run-make/crate-loading running 3 tests test [run-make] tests/run-make/crate-loading-crate-depends-on-itself ... ok test [run-make] tests/run-make/crate-loading-multiple-candidates ... ok test [run-make] tests/run-make/crate-loading ... ok This still runs the one and only right test $ ./x test tests/ui/lint/unused/unused-allocation.rs running 1 tests test [ui] tests/ui/lint/unused/unused-allocation.rs ... ok ### Notes - I have not verified this on Windows which treats paths differently (but I see no reason why it should not work since my code should be platform agnostic).
2025-09-15Rollup merge of #146471 - neuschaefer:no-target, r=Mark-SimulacrumMatthias Krüger-1/+1
bootstrap: Show target in "No such target exists" message This makes it a little easier to pinpoint the issue.
2025-09-15Rollup merge of #146416 - clubby789:tidy-deps-qol, r=jieyouxuMatthias Krüger-46/+143
Tidy dependency checks cleanups + QoL - Refactors the list of workspaces into a documented struct - Provide accurate line info in 'Go to ..... for the list' message - Print crate name on dependency issue (i.e. `dependency for rustc-main` instead of `dependency for .`
2025-09-14bootstrap.py: disable incremental build for bootstrap in CIbinarycat-0/+3
2025-09-14tidy: Remove `WorkspaceInfo` constructorclubby789-60/+90
2025-09-14Improve `rust-analyzer diagnostics`Chayim Refael Friedman-14/+56
In my experience the `processing <module>` messages make it harder to search for the actual diagnostics, so remove them and instead print the filename only if there is a diagnostic. Also allow choosing the minimum severity.
2025-09-14Merge pull request #20654 from ShoyuVanilla/predicatesChayim Refael Friedman-2/+61
fix: Infinite loop while elaborting predicates
2025-09-14fix: Infinite loop while elaborting predicatesShoyu Vanilla-2/+61
2025-09-14fix 404 linkLucas Baumann-1/+1
2025-09-14Merge pull request #20635 from iorizu/fix-double-flycheckShoyu Vanilla (Flint)-133/+170
fix: Don't trigger two flychecks when saving files that are part of targets
2025-09-14Drop armebv7r-none-eabi* to Tier 3Jonathan 'theJPster' Pallant-3/+3
These targets are not widely used, and are difficult to test because qemu-system-arm cannot emulate them.
2025-09-14Merge ref 'a015919e54c6' from rust-lang/rustThe Miri Cronjob Bot-144/+541
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: a015919e54c60b1b2bec7a98dec478cfc4a48f4e Filtered ref: 1867c5844dba22ac4d77d1ceb7d1624c14139c16 Upstream diff: https://github.com/rust-lang/rust/compare/4ba1cf9ade4c8e2fa10676a50ee34594eb161837...a015919e54c60b1b2bec7a98dec478cfc4a48f4e This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-14Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to a015919e54c60b1b2bec7a98dec478cfc4a48f4e.
2025-09-14Auto merge of #146507 - Mark-Simulacrum:add-version, r=Mark-Simulacrumbors-1/+1
Bump version to 1.92.0 https://forge.rust-lang.org/release/process.html#bump-the-stable-version-number-friday-the-week-before
2025-09-14rustdoc: Move HTML-specific attr rendering code into HTML rendering modLeón Orell Valerian Liehr-150/+143
These functions used to be shared with the JSON backend but nowadays they aren't.
2025-09-13initial implementation of the darwin_objc unstable featureJo Bates-0/+1
2025-09-13Rollup merge of #146506 - mikysett:patch-1, r=UrgauJacob Pratt-1/+1
Fix small typo in check-cfg.md
2025-09-13Rollup merge of #146419 - thejpster:update-arm-target-docs, r=workingjubileeJacob Pratt-40/+264
Update the arm-* and aarch64-* platform docs. This PR updates some of the arm*-unknown-none target docs, and adds some missing target pages. ## aarch64-none-elf and aarch64-none-elf-softfloat The Rust Embedded Devices Working Group's Arm Team is added as a maintainer, and a target page is added. Links are added to the EDWG's support crates for this target. ## armv7a-none-eabi and armv7a-none-eabihf The Rust Embedded Devices Working Group's Arm Team is added as a maintainer, and a target page is added. Links are added to the EDWG's support crates for this target. ## armv7r-none-eabi and armv7r-none-eabihf The Rust Embedded Devices Working Group's Arm Team is added as a maintainer, and the target page is split from the Big Endian versions. Links are added to the EDWG's support crates for this target. ## armebv7r-none-eabi and armveb7r-none-eabihf The target page is split from the Little Endian versions. No change in maintainers. I have agreement to add EDWG/T-Arm as maintainers, which was voted upon in [their repo](https://github.com/rust-embedded/wg/issues/851).
2025-09-13Rollup merge of #146171 - scrabsha:push-wovnxxwltsun, r=WaffleLapkinJacob Pratt-0/+66
tidy: check that error messages don't start with a capitalized letter
2025-09-13Note that these targets are bare-metal.Jonathan 'theJPster' Pallant-13/+25
This is important to note, as it affects how easy it is to build a binary, and that `#![no_std]` is mandatory. A different PR should probably add this to all the other platform pages.
2025-09-13Bump version to 1.92.0Mark Rousskov-1/+1
2025-09-13Auto merge of #145186 - camsteffen:assoc-impl-kind, r=petrochenkovbors-88/+95
Make `AssocItem` aware of its impl kind The general goal is to have fewer query dependencies by making `AssocItem` aware of its parent impl kind (inherent vs. trait) without having to query the parent def_kind. See individual commits.
2025-09-13Fix small typo in check-cfg.mdMichele Sessa-1/+1
2025-09-13Auto merge of #146499 - jhpratt:rollup-ufflehe, r=jhprattbors-2/+61
Rollup of 5 pull requests Successful merges: - rust-lang/rust#144498 (Add --print target-spec-json-schema) - rust-lang/rust#145471 (Stabilize BTree{Map,Set}::extract_if) - rust-lang/rust#145896 (Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [rust-lang/rust#3 of Batch rust-lang/rust#2]) - rust-lang/rust#146450 (bootstrap: rustdoc-js tests can now be filtered by js files) - rust-lang/rust#146456 (Fix panic and incorrectly suggested examples in `format_args` macro.) r? `@ghost` `@rustbot` modify labels: rollup
2025-09-13compiletest: Fix `--exact` test filteringMartin Nordholts-11/+54
This fix only changes the behavior when using `--exact` test filtering, which was quite broken. Before this fix, the following runs 0 tests: $ ./x test tests/run-make/crate-loading -- --exact running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 431 filtered out; finished in 24.95µs With the fix the desired test is run: $ ./x test tests/run-make/crate-loading -- --exact running 1 tests test [run-make] tests/run-make/crate-loading ... ok Without `--exact` the set of run tests is unchanged. This still runs "too many" tests $ ./x test tests/run-make/crate-loading running 3 tests test [run-make] tests/run-make/crate-loading-crate-depends-on-itself ... ok test [run-make] tests/run-make/crate-loading-multiple-candidates ... ok test [run-make] tests/run-make/crate-loading ... ok This still runs the one and only right test: $ ./x test tests/ui/lint/unused/unused-allocation.rs running 1 tests test [ui] tests/ui/lint/unused/unused-allocation.rs ... ok
2025-09-13Rollup merge of #146450 - lolbinarycat:bootstrap-test-js, r=jieyouxuJacob Pratt-1/+15
bootstrap: rustdoc-js tests can now be filtered by js files Before, a command like `./x test tests/rustdoc-js/path-ordering.js` would succeed, but run no tests, since the names of the tests are based on the `.rs` file. This is a bit confusing, as the `rustdoc-js-std` test suite only has `.js` files, and thus those are the files you filter on. Now, `./x test tests/rustdoc-js/path-ordering.js` will be treated as an alias for `./x test tests/rustdoc-js/path-ordering.rs`. This is fairly simple as each `rustdoc-js` test has 2 files, 1 js file and one rust file, each with an identical base filename, so all we need to do is swap the extension. r? `@Kobzol`
2025-09-13Rollup merge of #145471 - rs-sac:extr, r=the8472Jacob Pratt-1/+0
Stabilize BTree{Map,Set}::extract_if Tracking issue: rust-lang/rust#70530 FCP completed: https://github.com/rust-lang/rust/issues/70530#issuecomment-3191454465 Closes: rust-lang/rust#70530
2025-09-13Rollup merge of #144498 - Noratrieb:rustc-json-schema, r=jieyouxu,davidtwcoJacob Pratt-0/+46
Add --print target-spec-json-schema This schema is helpful for people writing custom target spec JSON. It can provide autocomplete in the editor, and also serves as documentation when there are documentation comments on the structs, as `schemars` will put them in the schema. I was motivated to do this because I saw someone write their own version of this schema by hand, so demand for this clearly exists. It's not a lot of effort to implement, so I thought it would make sense. MCP: https://github.com/rust-lang/compiler-team/issues/905 I think it would also be useful to put this in the sysroot in `etc` so people can link it directly in their editors. I would have loved to add a test that validates the JSON schema against the spec JSON of every builtin target, but I don't want to do it as the JSON schema validation crates have incredible amounts of dependencies because JSON schema supports a ton of random features. I don't want to add that, even as a dev dependency.
2025-09-13Auto merge of #146394 - Enselic:debuginfo-level-tests-2, r=jieyouxubors-1/+1
ci: Increase `rust.debuginfo-level-tests` to `2` in `x86_64-gnu-debug` job Simply to increase the scope of the testing. Part of https://github.com/rust-lang/rust/issues/61117. cc rust-lang/rust#145967 and rust-lang/rust#146025 which prepared for this. And rust-lang/rust#144499 that set to level to `1` try-job: x86_64-gnu-debug
2025-09-13Merge ref '4ba1cf9ade4c' from rust-lang/rustThe Miri Cronjob Bot-54/+180
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 4ba1cf9ade4c8e2fa10676a50ee34594eb161837 Filtered ref: 84b64d836ed478c54972a1d2639e60fa5f3ce26f Upstream diff: https://github.com/rust-lang/rust/compare/2a9bacf6187685931d52346a0ecff2e52bdc91cc...4ba1cf9ade4c8e2fa10676a50ee34594eb161837 This merge was created using https://github.com/rust-lang/josh-sync.
2025-09-13Prepare for merging from rust-lang/rustThe Miri Cronjob Bot-1/+1
This updates the rust-version file to 4ba1cf9ade4c8e2fa10676a50ee34594eb161837.
2025-09-13Rollup merge of #146389 - jdonszelmann:no-std, r=oli-obkJana Dönszelmann-8/+2
Convert `no_std` and `no_core` to the new attribute infrastructure r? ```@oli-obk``` Also added a test for these, since we didn't have any and I was kind of surprised new diagnostics didn't break anything hehe
2025-09-12rustdoc-search: delay loading type name IDs until type searchMichael Howell-90/+233
This avoids blocking on these lookups, so name-based searches return results more quickly.
2025-09-12Auto merge of #146444 - heiher:fix-loong-jemalloc-page-size, r=Mark-Simulacrumbors-11/+20
bootstrap: Build jemalloc for LoongArch with support for 16K pages By default, jemalloc is configured with a 4K page size. If the host’s page size is larger than this, it will crash at runtime. This patch raises the page size to 16K.
2025-09-12Don't store defaultness for inherent impl itemsCameron Steffen-2/+5
2025-09-12Split AssocContainer::{InherentImpl,TraitImpl}Cameron Steffen-38/+33
2025-09-12Introduce hir::ImplItemImplKindCameron Steffen-29/+45