about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-06-24Rollup merge of #142799 - petrochenkov:expnop, r=bjorn3Matthias Krüger-13/+8
rustc_session: Add a structure for keeping both explicit and default sysroots Also avoid creating and cloning sysroot unnecessarily. Implements the suggestion from https://github.com/rust-lang/rust/pull/142089#discussion_r2132204079. r? ``@bjorn3``
2025-06-24Short circuit a couple hir-ty/lower queriesLukas Wirth-15/+40
2025-06-24ci: Fix cancel parallel jobs on windowsShoyu Vanilla-0/+4
2025-06-24Rollup merge of #142843 - dpaoliello:reproducible-build-2, r=jieyouxuGuillaume Gomez-1/+7
Enable reproducible-build-2 for Windows MSVC Works with MSVC if instructing the linker to avoid timestamps and deleting the PDB between compilations. Addresses item in rust-lang/rust#128602 --- try-job: x86_64-mingw-* try-job: x86_64-msvc-* try-job: i686-msvc-*
2025-06-24Rollup merge of #142704 - tgross35:remove-concat_idents, r=fee1-deadGuillaume Gomez-33/+4
Remove the deprecated unstable `concat_idents!` macro In [rust-lang/rust#137653], the lang and libs-API teams did a joint FCP to deprecate and eventually remove the long-unstable `concat_idents!` macro. The deprecation is landing in 1.88, so do the removal here (target version 1.90). This macro has been superseded by the more recent `${concat(...)}` metavariable expression language feature, which avoids some of the limitations of `concat_idents!`. The metavar expression is unstably available under the [`macro_metavar_expr_concat`] feature. History is mildly interesting here: `concat_idents!` goes back to 2011 when it was introduced with 513276e595f8 ("Add #concat_idents[] and #ident_to_str[]"). The syntax looks a bit different but it still works about the same: let asdf_fdsa = "<.<"; assert(#concat_idents[asd,f_f,dsa] == "<.<"); assert(#ident_to_str[use_mention_distinction] == "use_mention_distinction"); (That test existed from introduction until its removal here.) Closes: https://github.com/rust-lang/rust/issues/29599 [rust-lang/rust#137653]: https://github.com/rust-lang/rust/pull/137653 [`macro_metavar_expr_concat`]: https://github.com/rust-lang/rust/issues/124225
2025-06-24rustc_session: Add a structure for keeping both explicit and default sysrootsVadim Petrochenkov-13/+8
Also avoid creating and cloning sysroot unnecessarily.
2025-06-24Update tidy exceptionsbjorn3-0/+3
2025-06-24Remove the deprecated `concat_idents!` macroTrevor Gross-30/+3
In [137653], the lang and libs-API teams did a joint FCP to deprecate and eventually remove the long-unstable `concat_idents!` macro. The deprecation is landing in 1.88, so do the removal here (target version 1.90). This macro has been superseded by the more recent `${concat(...)}` metavariable expression language feature, which avoids some of the limitations of `concat_idents!`. The metavar expression is unstably available under the [`macro_metavar_expr_concat`] feature. History is mildly interesting here: `concat_idents!` goes back to 2011 when it was introduced with 513276e595f8 ("Add #concat_idents[] and about the same: let asdf_fdsa = "<.<"; assert(#concat_idents[asd,f_f,dsa] == "<.<"); assert(#ident_to_str[use_mention_distinction] == "use_mention_distinction"); (That test existed from introduction until its removal here.) Closes: https://www.github.com/rust-lang/rust/issues/29599 [137653]: https://www.github.com/rust-lang/rust/pull/137653 [`macro_metavar_expr_concat`]: https://www.github.com/rust-lang/rust/issues/124225
2025-06-24Move some `issues-*` tests to better homesTrevor Gross-3/+1
These tests were updated in the previous commit; while they are being cleaned up, move them to a non-issue directory.
2025-06-24Remove special casing in command factory (revert changes in ctx.ts), update ↵Mark Pots-12/+3
main.createCommands instead
2025-06-24Rollup merge of #142932 - Enselic:keep-empty-generic-params, r=aDotInTheVoidGuillaume Gomez-13/+16
rustdoc-json: Keep empty generic args if parenthesized Because in the case of for example pub fn my_fn3(f: impl FnMut()) {} we want to keep `()` even if it is empty since that matches e.g. Rust syntax requirements. This is an amendment to https://github.com/rust-lang/rust/pull/142502, so: r? ``@aDotInTheVoid`` cc ``@nnethercote`` cc https://github.com/cargo-public-api/cargo-public-api/pull/798
2025-06-24Rollup merge of #142928 - Noratrieb:no-more-hang, r=clubby789Guillaume Gomez-0/+6
Fix hang in --print=file-names in bootstrap In an interactive context, the subprocess inherited a real tty stdin, which lead it it waiting for something to happen, even though nothing happened. By explicitly passing null as stdin we make sure an empty file is passed, which achieves the desired behavior. Fixes rust-lang/rust#142926 (verified locally by cherry-picking the patch onto beta where I was building).
2025-06-24Rollup merge of #142354 - gstjepan2:firefox_copy_paste_issue, r=GuillaumeGomezGuillaume Gomez-1/+29
Fixes firefox copy paste issue
2025-06-24Rollup merge of #140622 - petrochenkov:annusexp, r=jieyouxuGuillaume Gomez-76/+159
compiletest: Improve diagnostics for line annotation mismatches When some line annotations are missing or misplaced, compiletest reports an error, but the error is not very convenient. This PR attempts to improve the user experience. - The "expected ... not found" messages are no longer duplicated. - The `proc_res.status` and `proc_res.cmdline` message is no longer put in the middle of other messages describing the annotation mismatches, it's now put into the end. - Compiletest now makes suggestions if there are fuzzy matches between expected and actually reported errors (e.g. the annotation is put on a wrong line). - Missing diagnostic kinds are no longer produce an error eagerly, but instead treated as always mismatching kinds, so they can produce suggestions telling the right kind. I'll post screenshots in the thread below, but the behavior shown on the screenshots can be reproduced locally using the new test `tests/ui/compiletest-self-test/line-annotation-mismatches.rs`. This also fixes https://github.com/rust-lang/rust/issues/140940. r? ``@jieyouxu``
2025-06-24Merge pull request #20012 from lnicola/bump-literal-escaperLukas Wirth-169/+139
Update to literal-escaper 0.0.4
2025-06-24Merge pull request #20080 from Veykril/push-vnrwqppplykmLukas Wirth-39/+60
Cleanup `folding_ranges` and support more things
2025-06-24Cleanup `folding_ranges` and support more thingsLukas Wirth-39/+60
2025-06-24Merge pull request #20061 from ChayimFriedman2/wrap-ret-tyLukas Wirth-34/+133
fix: In "Wrap return type" assist, don't wrap exit points if they already have the right type
2025-06-24Merge pull request #20064 from Wilfred/document_sysroot_projectLukas Wirth-0/+3
Document sysroot_project field in rust-project.json
2025-06-24Merge pull request #20036 from Veykril/push-yquvoyrxkksxLukas Wirth-70/+70
Do not default to 'static for trait object lifetimes
2025-06-24Do not default to 'static for trait object lifetimesLukas Wirth-70/+70
We lack trait object default lifetime elision, so `'static` can be wrong at times, confusing the user
2025-06-24Merge pull request #20062 from ChayimFriedman2/doctestsLukas Wirth-0/+32
minor: Don't run doctests
2025-06-24Add change tracker entryJakub Beránek-0/+5
2025-06-24Merge pull request #20072 from Veykril/push-sorvvvzskywvLukas Wirth-10/+44
fix: Respect `.cargo/config.toml` `build.target-dir`
2025-06-24Tweak `-Zmacro-stats` measurement.Nicholas Nethercote-3/+3
It currently reports net size, i.e. size(output) - size(input). After some use I think this is sub-optimal, and it's better to just report size(output). Because for derive macros the input size is always 1, and for attribute macros it's almost always 1.
2025-06-24rustdoc-json: Keep empty generic args if parenthesizedMartin Nordholts-13/+16
Because in the case of for example pub fn my_fn3(f: impl FnMut()) {} we want to keep `()` even if it is empty since that matches e.g. Rust syntax requirements.
2025-06-23Enable reproducible-build-2 for WindowsDaniel Paoliello-1/+7
2025-06-23Rollup merge of #142922 - JonathanBrouwer:fix-rustdoc-comment, r=jdonszelmannJubilee-1/+2
Fix comment on NoMangle Fix comment on NoMangle. This was discussed in comments of https://github.com/rust-lang/rust/pull/142823#discussion_r2162219576 and https://github.com/rust-lang/rust/pull/142921
2025-06-23Rollup merge of #142908 - psumbera:solaris-tr, r=jieyouxuJubilee-4/+4
Fix install-template.sh for Solaris tr Allow to run install.sh also on Solaris where tr is not GNU tr.
2025-06-23Rollup merge of #142827 - GuillaumeGomez:tidy-error-code-removal, r=KobzolJubilee-69/+103
Move error code explanation removal check into tidy Follow-up of https://github.com/rust-lang/rust/pull/142677. This PR replaces a shell script with rust code. r? ghost
2025-06-23feat: Extend vscode 'run' command with optional mode argument for running ↵Mark Pots-4/+70
test(s) or bin at keyboard cursor
2025-06-23Fix hang in --print=file-names in bootstrapNoratrieb-0/+6
In an interactive context, the subprocess inherited a real tty stdin, which lead it it waiting for something to happen, even though nothing happened. By explicitly passing null as stdin we make sure an empty file is passed, which achieves the desired behavior.
2025-06-23Add `#[loop_match]` for improved DFA codegenbjorn3-0/+52
Co-authored-by: Folkert de Vries <folkert@folkertdev.nl>
2025-06-23compiletest: Improve diagnostics for line annotation mismatchesVadim Petrochenkov-76/+159
2025-06-23Merge pull request #20076 from ChayimFriedman2/faqLaurențiu Nicola-0/+12
docs: Add troubleshooting FAQ to the book
2025-06-23Fix comment on NoMangleJonathan Brouwer-1/+2
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-23Add troubleshooting FAQ to the bookChayim Refael Friedman-0/+12
And one frequently asked question.
2025-06-23fix: Respect `.cargo/config.toml` `build.target-dir`Lukas Wirth-10/+44
2025-06-24fix: Use `ROOT` hygiene for `args` inside new `format_args!` expansionShoyu Vanilla-27/+36
2025-06-23Auto merge of #142907 - lnicola:sync-from-ra, r=lnicolabors-1241/+2756
Subtree update of `rust-analyzer` r? `@ghost`
2025-06-23Remove stdarch submodule checkoutJakub Beránek-7/+1
2025-06-23Port more tests to snapshot testsJakub Beránek-647/+614
2025-06-23Fixes firefox copy paste issuegstjepan2-1/+29
2025-06-23Improve code and documentationGuillaume Gomez-12/+22
2025-06-23Update tests to work with new DocFragment field and ↵Guillaume Gomez-0/+1
`redundant_explicit_links` new API
2025-06-23Update clippy source code to changes on `source_span_for_markdown_range`Guillaume Gomez-2/+2
2025-06-23Do not emit `redundant_explicit_links` rustdoc lint if the doc comment comes ↵Guillaume Gomez-22/+50
from expansion
2025-06-23Auto merge of #142906 - jdonszelmann:rollup-togt1dl, r=jdonszelmannbors-7/+24
Rollup of 5 pull requests Successful merges: - rust-lang/rust#142493 (rework `#[naked]` attribute parser) - rust-lang/rust#142636 (bootstrap.example.toml: use less contextual format) - rust-lang/rust#142822 (Make `PartialEq` a `const_trait`) - rust-lang/rust#142892 (Fix ICE on debug builds where lints are delayed on the crate root) - rust-lang/rust#142904 (notify me when rdg is touched) Failed merges: - rust-lang/rust#142827 (Move error code explanation removal check into tidy) r? `@ghost` `@rustbot` modify labels: rollup
2025-06-23Merge pull request #20069 from Veykril/push-mnqkqxomtlxnLukas Wirth-1/+29
fix: Fix cargo project manifest not pointing to the workspace root
2025-06-23fix: Fix cargo project manifest not pointing to the workspace rootLukas Wirth-1/+29