about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-06-03make library profile to use stage 1 on `x check`onur-ozkan-1/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03make `x check` to use stage0 by defaultonur-ozkan-1/+4
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-06-03Auto merge of #141944 - matthiaskrgr:rollup-e7xhp6w, r=matthiaskrgrbors-32/+35
Rollup of 8 pull requests Successful merges: - rust-lang/rust#140715 (Clarify &mut-methods' docs on sync::OnceLock) - rust-lang/rust#141677 (Async drop - type instead of async drop fn, fixes rust-lang/rust#140484) - rust-lang/rust#141741 (Overhaul `UsePath`) - rust-lang/rust#141873 (Fixed a typo in `ManuallyDrop`'s doc) - rust-lang/rust#141876 (Don't declare variables in `ExprKind::Let` in invalid positions) - rust-lang/rust#141886 (Add missing 2015 edition directives) - rust-lang/rust#141889 (Add missing `dyn` keywords to tests that do not test for them) - rust-lang/rust#141891 (Fix borrowck mentioning a name from an external macro we (deliberately) don't save) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-03Merge pull request #19869 from MatrixFrog/publicize_fieldLukas Wirth-182/+138
Add a quickfix for accessing a private field of a struct
2025-06-03Merge pull request #19894 from ShoyuVanilla/some-query-cyclesLukas Wirth-7/+72
fix: Cycle handlers for `HirDatabase::infer, const_param_ty_with_diagnostics`
2025-06-03Merge pull request #19901 from BazookaMusic/masterLukas Wirth-12/+192
Enable Assist edit for tuple<->named struct for the struct and visiblity keywords
2025-06-02Add a quickfix for accessing a private field of a structTyler Breisacher-182/+138
2025-06-03Rollup merge of #141741 - nnethercote:overhaul-UsePath, r=petrochenkovMatthias Krüger-32/+35
Overhaul `UsePath` It currently uses `SmallVec<[Res; 3]>` which is really weird. Details in the individual commits. r? `@petrochenkov`
2025-06-03Merge from rustcThe Miri Cronjob Bot-1357/+3019
2025-06-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-03Auto merge of #141210 - RalfJung:miri-std-doctests, r=saethlinbors-12/+11
tools-aux ci runner: also cross-test doctests in Miri Miri now supports running doctests across different targets. Let's use that to run the std doctests on aarch64-apple-darwin, i686-pc-windows-msvc. try-job: x86_64-gnu-aux
2025-06-03fix: Cycle handlers for `HirDatabase::infer, const_param_ty_with_diagnosticsShoyu Vanilla-7/+72
2025-06-02feat: implement completion for diagnostic moduleRyan Mehri-17/+175
2025-06-03Overhaul `UsePath`.Nicholas Nethercote-29/+32
`UsePath` contains a `SmallVec<[Res; 3]>`. This holds up to three `Res` results, one per namespace (type, value, or macro). `lower_import_res` takes a `PerNS<Option<Res<NodeId>>>` result and lowers it into the `SmallVec`. This is pretty weird. The input `PerNS` makes it clear which `Res` belongs to which namespace, but the `SmallVec` throws that information away. And code that operates on the `SmallVec` tends to use iteration (or even just grabbing the first entry!) without knowing which namespace the `Res` belongs to. Even weirder! Also, `SmallVec` is an overly flexible type to use here, because it can contain any number of elements (even though it's optimized for 3 in this case). This commit changes `UsePath` so it also contains a `PerNS<Option<Res<HirId>>>`. This type preserves more information and is more self-documenting. The commit also changes a lot of the use sites to access the result for a particular namespace. E.g. if you're looking up a trait, it will be in the `Res` for the type namespace if it's present; it's silly to look in the `Res` for the value namespace or macro namespace. Overall I find the new code much easier to understand. However, some use sites still iterate. These now use `present_items` because that filters out the `None` results. Also, `redundant_pub_crate.rs` gets a bigger change. A `UseKind:ListStem` item gets no `Res` results, which means the old `all` call in `is_not_macro_export` would succeed (because `all` succeeds on an empty iterator) and the `ListStem` would be ignored. This is what we want, but was more by luck than design. The new code detects `ListStem` explicitly. The commit generalizes the name of that function accordingly. Finally, the commit also removes the `use_path` arena, because `PerNS<Option<Res>>` impls `Copy` (unlike `SmallVec`) and it can be allocated in the arena shared by all `Copy` types.
2025-06-02simplify expression that checks the offsetBazookaMusic-36/+30
2025-06-02Auto merge of #141912 - Kobzol:rollup-wurlnsx, r=Kobzolbors-1/+10
Rollup of 5 pull requests Successful merges: - rust-lang/rust#141767 (ci: use free runner for aarch64-gnu-llvm-19-1 PR job) - rust-lang/rust#141858 (Fix typo in `StructuralPartialEq` docs) - rust-lang/rust#141865 (Optionally don't steal the THIR) - rust-lang/rust#141874 (add f16_epsilon and f128_epsilon diagnostic items) - rust-lang/rust#141904 (test-float-parse: apply `cfg(not(bootstrap))`) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-02fix: don't duplicate must_use for functions and traitsRyan Mehri-2/+2
2025-06-02Update booksrustbot-0/+0
2025-06-02Auto merge of #141906 - chenyukang:rollup-k6v59ty, r=chenyukangbors-134/+284
Rollup of 6 pull requests Successful merges: - rust-lang/rust#141884 (allow macro_use as first segment) - rust-lang/rust#141885 ([RTE-484] Update SGX maintainers) - rust-lang/rust#141892 (Fix false positive lint error from no_implicit_prelude attr) - rust-lang/rust#141894 (rustc-dev-guide subtree update) - rust-lang/rust#141895 (tshepang has a new email) - rust-lang/rust#141897 (Fix citool tests when executed locally) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-02Clarify why we are talking about a failed const eval at a random placeOli Scherer-4/+4
2025-06-02Use the informative error as the main const eval error messageOli Scherer-12/+12
2025-06-02Merge pull request #2443 from smanilov/patch-21Tshepang Mbambo-1/+3
Simplify long sentence
2025-06-02Simplify long sentenceStan Manilov-1/+3
2025-06-02Merge pull request #2446 from fmease/fix-warning-blocksLeón Orell Valerian Liehr-1/+15
Fix some warning blocks that contain Markdown
2025-06-02Fix some warning blocks that contain MarkdownLeón Orell Valerian Liehr-1/+15
Contents inside of an HTML element only get interpreted as Markdown (as opposed to HTML) if its separated from the HTML tags with line breaks.
2025-06-02Merge pull request #2445 from smanilov/patch-23Tshepang Mbambo-9/+13
Add title and toc to Async chapter
2025-06-02Add title and toc to Async chapterStan Manilov-9/+13
This is standard for other chapters.
2025-06-02Trivial: dedup wordStan Manilov-1/+1
2025-06-02Support derive-macros for rename prefix magicLukas Wirth-117/+211
2025-06-02fix: Fix edition handling for names in rename logicLukas Wirth-115/+161
2025-06-02Enhance renaming to include identifiers that are generated from the original ↵Lukas Wirth-44/+251
symbol Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2025-06-02Rollup merge of #141904 - jieyouxu:test-float-parse, r=Mark-SimulacrumJakub Beránek-0/+2
test-float-parse: apply `cfg(not(bootstrap))` Prior to stage 0 redesign, `test-float-parse` ran against in-tree std but now it runs against beta std. `f16::FromStr` is only present in in-tree std and not yet beta std, so apply `cfg(not(bootstrap))` gating to unbrick `./x check --stage=0`. Fixes rust-lang/rust#141900. `./x check --stage=0` in CI is intended for follow-up. r? `@Mark-Simulacrum` (or bootstrap/libs) cc `@tgross35`
2025-06-02Rollup merge of #141865 - Nadrieril:dont-steal-thir, r=oli-obkJakub Beránek-0/+7
Optionally don't steal the THIR The THIR being stolen is a recurrent pain for authors of rustc drivers. This makes it optional, so that the `thir_body` query can still be used after analysis of the crate has completed.
2025-06-02Rollup merge of #141767 - marcoieni:free-pr-job, r=KobzolJakub Beránek-1/+1
ci: use free runner for aarch64-gnu-llvm-19-1 PR job
2025-06-02Fix `create-docs-artifacts.sh` with new borsJakub Beránek-1/+2
2025-06-02Rollup merge of #141897 - Kobzol:fix-citool-tests, r=marcoieniYukang-0/+2
Fix citool tests when executed locally They couldn't be executed locally before due to some additional environment reads. I also investigated the annoying rebuilds that we see on CI all the time, and they are caused by `ring`'s build script. It should be fixed in the next ring release (https://github.com/briansmith/ring/issues/2525), so we can just wait for that and then update `ring`. r? `@marcoieni`
2025-06-02Rollup merge of #141894 - tshepang:rdg-push, r=jieyouxuYukang-133/+281
rustc-dev-guide subtree update r? `@ghost`
2025-06-02Rollup merge of #141885 - raoulstrackx:raoul/rte-484-update_sgx_maintainers, ↵Yukang-1/+1
r=Noratrieb [RTE-484] Update SGX maintainers `@mzohreva` is no longer with Fortanix. We need to change the SGX maintainers accordingly.
2025-06-02Auto merge of #141814 - flip1995:clippy-subtree-update, r=Manishearthbors-671/+1995
Clippy subtree update r? `@Manishearth`
2025-06-02test-float-parse: apply `cfg(not(bootstrap))`Jieyou Xu-0/+2
Prior to stage 0 redesign, `test-float-parse` ran against in-tree std but now it runs against beta std. `f16::FromStr` were only present in in-tree std and not yet beta std, so apply `cfg(not(bootstrap))` gating to unbrick `./x check --stage=0`.
2025-06-02bootstrap: Remove `rustc_snapshot_libdir` from PATH in one more placeVadim Petrochenkov-4/+2
2025-06-02Use ccache for stage0 tool and rustc buildsJakub Beránek-0/+22
2025-06-02[rustdoc-json] Implement PartialOrd and Ord for rustdoc_types::IdLuca Palmieri-1/+1
2025-06-02Fix citool tests when executed ocallyJakub Beránek-0/+2
They couldn't be executed locally before due to some additional environment reads.
2025-06-02use consistent title capitalizationTshepang Mbambo-28/+28
2025-06-02distracting indirectionTshepang Mbambo-2/+2
2025-06-02use a relative path, so that this also works offlineTshepang Mbambo-1/+1
2025-06-02internal: Use 'ProjectJson' consistentlyWilfred Hughes-5/+5
The Rust source code previously mised ProjectJson and JsonProject, and the TypeScript definition didn't match either. Use 'ProjectJson' everywhere. This is purely an internal change.
2025-06-02Merge pull request #2386 from Lysxia/fix-linkTshepang Mbambo-1/+1
Fix link to GatherBorrows
2025-06-02Merge pull request #2435 from smanilov/patch-19Tshepang Mbambo-0/+3
Add opaque type attributes