about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-06-17Rollup merge of #142371 - fee1-dead-contrib:push-xqlkumzurkus, r=petrochenkovJacob Pratt-3/+3
avoid `&mut P<T>` in `visit_expr` etc methods trying a different way than rust-lang/rust#141636 r? ghost
2025-06-17Rollup merge of #142100 - lolbinarycat:rustdoc-srcIndex-138467, r=GuillaumeGomezJacob Pratt-28/+11
rustdoc: make srcIndex no longer a global variable this is one-time initialization data, it can just be a function parameter. while we're doing that, we can more the json parsing into the function and save a few extra bytes of storage for free, at least in the case of multiple crates in a doc bundle. fixes https://github.com/rust-lang/rust/issues/138467
2025-06-17convert entire codebase to parsed inline attrsJana Dönszelmann-29/+28
2025-06-17Auto merge of #142567 - lnicola:sync-from-ra, r=lnicolabors-3488/+4773
Subtree update of `rust-analyzer` r? `@ghost`
2025-06-17Auto merge of #142613 - workingjubilee:rollup-yuod2hg, r=workingjubileebors-0/+8
Rollup of 13 pull requests Successful merges: - rust-lang/rust#138538 (Make performance description of String::{insert,insert_str,remove} more precise) - rust-lang/rust#141946 (std: refactor explanation of `NonNull`) - rust-lang/rust#142216 (Miscellaneous RefCell cleanups) - rust-lang/rust#142542 (Manually invalidate caches in SimplifyCfg.) - rust-lang/rust#142563 (Refine run-make test ignores due to unpredictable `i686-pc-windows-gnu` unwind mechanism) - rust-lang/rust#142570 (Reject union default field values) - rust-lang/rust#142584 (Handle same-crate macro for borrowck semicolon suggestion) - rust-lang/rust#142585 (Update books) - rust-lang/rust#142586 (Fold unnecessary `visit_struct_field_def` in AstValidator) - rust-lang/rust#142587 (Make sure to propagate result from `visit_expr_fields`) - rust-lang/rust#142595 (Revert overeager warning for misuse of `--print native-static-libs`) - rust-lang/rust#142598 (Set elf e_flags on ppc64 targets according to abi) - rust-lang/rust#142601 (Add a comment to `FORMAT_VERSION`.) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-17Update libc to 0.2.174Trevor Gross-2/+2
This includes a fix for building on gnux32. [1]: https://github.com/rust-lang/libc/releases/tag/0.2.174
2025-06-17allow spawn to behave according to failure behaviorbit-aloo-36/+52
2025-06-17Add linksBoxy-9/+19
2025-06-17Write chapter on Unambig vs Ambig Types/ConstsBoxy-1/+53
2025-06-17Stub chapter and consolidate under `/hir/`Boxy-6/+8
2025-06-17Profiling with perf: specify the section of bootstrap settings.lolbinarycat-2/+2
2025-06-17Update cargoEric Huss-0/+0
2025-06-17Try to downgrade objectLaurențiu Nicola-12/+3
2025-06-17change to executed atbit-aloo-11/+13
2025-06-17Merge pull request #20025 from SoxPopuli/hide_private_imports_without_peLaurențiu Nicola-5/+98
Hide imported privates if private editable is disabled
2025-06-17add run_always to recently migrated start_process commandbit-aloo-1/+4
2025-06-17move execution context out of deferred command, add as_ref implementation ↵bit-aloo-26/+20
and update wait_for_output usage
2025-06-17explain reasoning behind spawn APIbit-aloo-0/+1
2025-06-17add created at to command executionbit-aloo-4/+8
2025-06-17remove new method from command executionbit-aloo-12/+14
2025-06-17remove start_porcess helper methodbit-aloo-29/+0
2025-06-17move from start process to new start and wait for output api'sbit-aloo-18/+23
2025-06-17add start methods in execbit-aloo-3/+18
2025-06-17add deferred command in execution context and update run methodbit-aloo-46/+91
2025-06-17Auto merge of #137944 - davidtwco:sized-hierarchy, r=oli-obkbors-17/+75
Sized Hierarchy: Part I This patch implements the non-const parts of rust-lang/rfcs#3729. It introduces two new traits to the standard library, `MetaSized` and `PointeeSized`. See the RFC for the rationale behind these traits and to discuss whether this change makes sense in the abstract. These traits are unstable (as is their constness), so users cannot refer to them without opting-in to `feature(sized_hierarchy)`. These traits are not behind `cfg`s as this would make implementation unfeasible, there would simply be too many `cfg`s required to add the necessary bounds everywhere. So, like `Sized`, these traits are automatically implemented by the compiler. RFC 3729 describes changes which are necessary to preserve backwards compatibility given the introduction of these traits, which are implemented and as follows: - `?Sized` is rewritten as `MetaSized` - `MetaSized` is added as a default supertrait for all traits w/out an explicit sizedness supertrait already. There are no edition migrations implemented in this, as these are primarily required for the constness parts of the RFC and prior to stabilisation of this (and so will come in follow-up PRs alongside the const parts). All diagnostic output should remain the same (showing `?Sized` even if the compiler sees `MetaSized`) unless the `sized_hierarchy` feature is enabled. Due to the use of unstable extern types in the standard library and rustc, some bounds in both projects have had to be relaxed already - this is unfortunate but unavoidable so that these extern types can continue to be used where they were before. Performing these relaxations in the standard library and rustc are desirable longer-term anyway, but some bounds are not as relaxed as they ideally would be due to the inability to relax `Deref::Target` (this will be investigated separately). It is hoped that this is implemented such that it could be merged and these traits could exist "under the hood" without that being observable to the user (other than in any performance impact this has on the compiler, etc). Some details might leak through due to the standard library relaxations, but this has not been observed in test output. **Notes:** - Any commits starting with "upstream:" can be ignored, as these correspond to other upstream PRs that this is based on which have yet to be merged. - This best reviewed commit-by-commit. I've attempted to make the implementation easy to follow and keep similar changes and test output updates together. - Each commit has a short description describing its purpose. - This patch is large but it's primarily in the test suite. - I've worked on the performance of this patch and a few optimisations are implemented so that the performance impact is neutral-to-minor. - `PointeeSized` is a different name from the RFC just to make it more obvious that it is different from `std::ptr::Pointee` but all the names are yet to be bikeshed anyway. - `@nikomatsakis` has confirmed [that this can proceed as an experiment from the t-lang side](https://rust-lang.zulipchat.com/#narrow/channel/435869-project-goals/topic/SVE.20and.20SME.20on.20AArch64.20.28goals.23270.29/near/506196491) - FCP in https://github.com/rust-lang/rust/pull/137944#issuecomment-2912207485 Fixes rust-lang/rust#79409. r? `@ghost` (I'll discuss this with relevant teams to find a reviewer)
2025-06-17Hide imported privates if private editable is disabledCharlotte Smith-5/+98
2025-06-17Add `StepMetadata` to describe stepsJakub Beránek-45/+83
This is used to replace the previous downcasting of executed steps, which wasn't very scalable. In addition to tests, we could also use the metadata e.g. for tracing.
2025-06-17Actually take `--build` into account in bootstrapJakub Beránek-1/+3
I went back 20 *stable* versions of Rust and I couldn't find this flag actually being used. Despite some of our CI workflows actually set this flag (!).
2025-06-17dogfood clippy::or_fun_callklensy-1/+1
2025-06-17Merge pull request #20023 from Veykril/push-vkqlnyttnqzlLukas Wirth-154/+256
Improve completions in if / while expression conditions
2025-06-17Better completion test sortingLukas Wirth-38/+38
2025-06-17Improve completions in if / while expression conditionsLukas Wirth-122/+224
2025-06-17apply clippy::or_fun_callklensy-4/+5
2025-06-17Lint about `console` calls in rustdoc JSGuillaume Gomez-0/+2
2025-06-17Never make type mismatch diagnostic stable, even when there is a fixChayim Refael Friedman-6/+2
We show fixes now even for experimental diagnostics anyway, and it has false positives.
2025-06-17Merge pull request #20020 from Veykril/push-yuqmorzsqumwLukas Wirth-11/+15
fix: Reload workspaces when cargo configs change
2025-06-17fix: Reload workspaces when cargo configs changeLukas Wirth-11/+15
2025-06-17chore: Start infesting ide crates with 'db lifetimeLukas Wirth-815/+1214
2025-06-17Merge pull request #20018 from Veykril/push-pkowrtoturkrLukas Wirth-84/+176
fix: Copy lockfiles into target directory before invoking `cargo metadata`
2025-06-17Merge pull request #19939 from ChayimFriedman2/fill-arms-selfLukas Wirth-29/+227
feat: In "Fill match arms", allow users to prefer `Self` to the enum name when possible
2025-06-17Merge pull request #19945 from ChayimFriedman2/private-field-quickfixLukas Wirth-32/+125
feat: Add the quickfix for increasing visibility of a private field to the private-field diagnostic (previously it was only on no-such-field)
2025-06-17fix: Copy lockfiles into target directory before invoking `cargo metadata`Lukas Wirth-84/+176
2025-06-17Rollup merge of #142601 - nnethercote:format_version-comment, r=aDotInTheVoidJubilee-0/+8
Add a comment to `FORMAT_VERSION`. This minimizes the chance of two PRs changing it from N to N+1. Fixes rust-lang/rust#94591. r? `@aDotInTheVoid`
2025-06-17Rollup merge of #142585 - rustbot:docs-update, r=ehussJubilee-0/+0
Update books ## rust-lang/book 1 commits in 634724ea85ebb08a542970bf8871ac8b0f77fd15..4433c9f0cad8460bee05ede040587f8a1fa3f1de 2025-06-03 16:34:00 UTC to 2025-06-03 16:34:00 UTC - Chapter 11 from tech review (rust-lang/book#4391) ## rust-lang/reference 10 commits in 8e0f593a30f3b56ddb0908fb7ab9249974e08738..d4c66b346f4b72d29e70390a3fa3ea7d4e064db1 2025-06-13 17:05:11 UTC to 2025-06-03 21:28:42 UTC - Align pattern destructuring with rest of patterns documentation (rust-lang/reference#1853) - Use extern "system" instead of "stdcall" in example (rust-lang/reference#1854) - Mention that `thiscall` is a 32-bit calling convention (rust-lang/reference#1855) - Add doc for keylocker target features (rust-lang/reference#1829) - Add doc for `sha512`, `sm3` and `sm4` target features (rust-lang/reference#1830) - Fix(typo): 'though' should be 'through' (rust-lang/reference#1850) - intro note: make text more simple (rust-lang/reference#1844) - nit: add missing period (rust-lang/reference#1843) - add a warning about using `safe` on extern c-variadic functions (rust-lang/reference#1839) - remove the `safe` keyword from a c-variadic foreign function. (rust-lang/reference#1838) ## rust-lang/rust-by-example 3 commits in 21f4e32b8b40d36453fae16ec07ad4b857c445b6..9baa9e863116cb9524a177d5a5c475baac18928a 2025-06-11 13:00:27 UTC to 2025-06-10 12:43:14 UTC - introduce new ``@media`` query to set a higher content width on ultra wide screens (rust-lang/rust-by-example#1937) - Fix syntax highligting (rust-lang/rust-by-example#1935) - fix(rust-lang/rust#1656): update doc tests to use `playground` as the crate name (rust-lang/rust-by-example#1934)
2025-06-17Merge from rustcThe Miri Cronjob Bot-317/+289
2025-06-17Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-16don't unwrap in enzyme builds in case of missing llvm-configManuel Drehwald-13/+14
2025-06-17Add a comment to `FORMAT_VERSION`.Nicholas Nethercote-0/+8
This minimizes the chance of two PRs changing it from N to N+1.
2025-06-16rustdoc: make srcIndex no longer a global variablebinarycat-28/+11
this is one-time initialization data, it can just be a function parameter. we also move the json parsing into createSrcSidebar to save a few bytes.
2025-06-16miri: bless testsDavid Wood-4/+4
These error messages include lines of the standard library which have changed and so need updated.