about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-05-06Rollup merge of #140687 - ehuss:update-mdbook, r=jieyouxuStuart Cook-3/+3
Update mdbook to 0.4.49 This is a routine update to pull in some fixes and updates. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0449
2025-05-06Rollup merge of #140251 - Zalathar:coverage-dump-path, r=clubby789Stuart Cook-104/+377
coverage-dump: Resolve global file IDs to filenames The coverage-dump tool, used by coverage tests, currently includes “global file ID” numbers in its dump output. This PR adds support for parsing coverage filename information from LLVM assembly `.ll` files, and resolving those file IDs to the corresponding filename, for inclusion in dump output. This makes dump output more informative, especially for test cases involving multiple files, and will be important for testing expansion region support in the future. --- The bootstrap changes don't necessarily have to land at the same time (e.g. they could be deferred to after the stage0 redesign if requested), but I would prefer to land them now if possible.
2025-05-06Rollup merge of #140035 - fee1-dead-contrib:push-oszwkkvmpkks, ↵Stuart Cook-6/+50
r=jieyouxu,wesleywiser Implement RFC 3503: frontmatters Tracking issue: #136889 Supercedes #137193. This implements [RFC 3503](https://github.com/rust-lang/rfcs/blob/master/text/3503-frontmatter.md). This might break rust-analyzer. Will look into how to fix that. Suggestions welcome for how to improve diagnostics.
2025-05-06Rollup merge of #139773 - thaliaarchi:vec-into-iter-last, r=workingjubileeStuart Cook-7/+46
Implement `Iterator::last` for `vec::IntoIter` Avoid iterating everything when we have random access to the last element.
2025-05-06coverage-dump: Dump filenames instead of global file IDs (and bless)Zalathar-2/+1
2025-05-06coverage-dump: Make filenames available to covfun record dumpingZalathar-3/+87
Actually printing the filenames is deferred to a subsequent commit that will simultaneously bless all affected tests.
2025-05-06coverage-dump: Include filenames hash in covfun line dataZalathar-26/+101
2025-05-06coverage-dump: Extract a common parser method for maybe-compressed bytesZalathar-23/+41
2025-05-06coverage-dump: Extract some common code to an `llvm_utils` submoduleZalathar-48/+51
2025-05-06bootstrap: Add check/test/run steps for src/tools/coverage-dumpZalathar-4/+98
This also causes the coverage-dump unit tests to run in CI and `./x test` by default.
2025-05-06Auto merge of #131160 - ↵bors-31/+31
ismailarilik:handle-potential-query-instability-lint-for-rustc-middle, r=oli-obk Handle `rustc_middle` cases of `rustc::potential_query_instability` lint This PR removes `#![allow(rustc::potential_query_instability)]` line from [`compiler/rustc_middle/src/lib.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_middle/src/lib.rs#L29) and converts `FxHash{Map,Set}` types into `FxIndex{Map,Set}` to suppress lint errors. A somewhat tracking issue: https://github.com/rust-lang/rust/issues/84447 r? `@compiler-errors`
2025-05-05Auto merge of #140682 - GuillaumeGomez:rollup-6xjf6zn, r=GuillaumeGomezbors-16/+39
Rollup of 11 pull requests Successful merges: - #140080 (mir-opt: Use one MirPatch in MatchBranchSimplification) - #140115 (mir-opt: execute MatchBranchSimplification after GVN) - #140357 (bypass linker configuration and cross target check on `x check`) - #140374 (Resolve instance for SymFn in global/naked asm) - #140559 (Removing rustc_type_ir in the rustc_infer codebase) - #140605 (`fn check_opaque_type_parameter_valid` defer error) - #140636 (implement `PanicTracker` to track `t` panics) - #140661 (Make `-Zfixed-x18` into a target modifier) - #140670 (calculate step duration in a panic-safe way) - #140672 (Deeply normalize in the new solver in WF) - #140676 (Update books) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-05Update mdbook to 0.4.49Eric Huss-3/+3
This is a routine update to pull in some fixes and updates. Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0449
2025-05-05Add a `--num-threads` to the `prime-caches` CLI commandChayim Refael Friedman-60/+61
And make it parallel by default (and remove the `--parallel` flag) to mirror the IDE cache priming.
2025-05-05Better manage parallel prime cachesChayim Refael Friedman-245/+167
To make best use of available cores, and don't waste time waiting for other tasks. See the comments in the code for explanation.
2025-05-05Support environment variable CARGO_MANIFEST_PATH.Victor-0/+17
2025-05-05Rollup merge of #140676 - rustbot:docs-update, r=ehussGuillaume Gomez-0/+0
Update books ## rust-lang/reference 9 commits in 3bf3402aea982b876eb56c87da17b0685c6461d5..387392674d74656f7cb437c05a96f0c52ea8e601 2025-05-03 21:29:09 UTC to 2025-04-22 15:25:03 UTC - Document `let_chains` again (rust-lang/reference#1740) - Add: orphan rule rationale. (rust-lang/reference#1755) - Remove apologies about the Reference (rust-lang/reference#1792) - Clean up some inline assembly examples (rust-lang/reference#1804) - Remove StructExprTuple and StructExprUnit (rust-lang/reference#1803) - Improve documentation of struct expressions (rust-lang/reference#1799) - Clarify interaction of asm-goto with IBT (rust-lang/reference#1790) - naked functions (rust-lang/reference#1689) - Relabel grammarRailroad-Button (rust-lang/reference#1798) ## rust-lang/rust-by-example 3 commits in 0d7964d5b22cf920237ef1282d869564b4883b88..8a8918c698534547fa8a1a693cb3e7277f0bfb2f 2025-04-30 12:20:49 UTC to 2025-04-22 17:42:30 UTC - The example is not meant to be compiled. Changed the code block ann… (rust-lang/rust-by-example#1926) - Non-tail recursive call note in testcase_linked_list.md (rust-lang/rust-by-example#1924) - docs: mark illustrative 'static lifetime example with `ignore` (rust-lang/rust-by-example#1923)
2025-05-05Rollup merge of #140670 - onur-ozkan:129959, r=KobzolGuillaume Gomez-1/+1
calculate step duration in a panic-safe way obvious/self-explanatory change. Fixes #129959
2025-05-05Rollup merge of #140636 - onur-ozkan:panic-tracker-for-t-macro, r=KobzolGuillaume Gomez-5/+26
implement `PanicTracker` to track `t` panics Trying to understand panics triggered by `t` macro is very exhausting (especially on CI failures) because it doesn't provide any information about where the macro was originally invoked. This change adds that missing information when an inner call inside the `t` macro panics. Resolves #137557
2025-05-05Rollup merge of #140374 - compiler-errors:global_asm-bug, r=lcnrGuillaume Gomez-1/+1
Resolve instance for SymFn in global/naked asm `Instance::expect_resolve` ensures that we're actually going from trait item -> impl item. Fixes #140373
2025-05-05Rollup merge of #140357 - onur-ozkan:133840, r=clubby789Guillaume Gomez-9/+11
bypass linker configuration and cross target check on `x check` I was going to handle this using the untracked env approach, but I realized it somehow doesn't regress https://github.com/rust-lang/rust/issues/130108 anymore... Anyway, if it works, it works. 😄 No need to dig deeper but my guess is we moved some cache-invalidating env from these functions to others. Fixes https://github.com/rust-lang/rust/issues/133840 try-job: aarch64-apple
2025-05-05Auto merge of #140664 - RalfJung:miri-sync, r=RalfJungbors-1541/+1796
Miri subtree update r? `@ghost`
2025-05-05Update booksrustbot-0/+0
2025-05-05Implement RFC 3503: frontmattersDeadbeef-6/+50
Supercedes #137193
2025-05-05Merge pull request #19750 from Veykril/push-zvvsopwxovrnLukas Wirth-5/+0
fix: Remove unnecessary token length check for macros in renaming
2025-05-05calculate step duration in a panic-safe wayonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-05-05Auto merge of #140651 - lnicola:sync-from-ra, r=lnicolabors-1704/+2427
Subtree update of `rust-analyzer` r? `@ghost`
2025-05-05fix: Remove unnecessary token length check for macros in renamingLukas Wirth-5/+0
2025-05-05Merge pull request #19749 from Veykril/push-tsxvxzzmlxpqLukas Wirth-56/+4
refactor: Remove unnecessary `AsAny` trait
2025-05-05Merge pull request #19748 from Veykril/push-qvmtutwtonouLukas Wirth-10/+4
github: Direct users to discussions instead of issues for questions
2025-05-05refactor: Remove unnecessary `AsAny` traitLukas Wirth-56/+4
2025-05-05github: Direct users to discussions instead of issues for questionsLukas Wirth-10/+4
2025-05-05Handle rustc_middle cases of rustc::potential_query_instability lintismailarilik-31/+31
2025-05-05fix: negative nums in `concat!` expansionVishruth-Thimmaiah-3/+36
2025-05-05Merge pull request #19747 from Veykril/push-kqxvxrxozswrLukas Wirth-18/+111
fix: Fix `move_bounds` assists not working for lifetimes
2025-05-05Rename Instance::new to Instance::new_raw and add a note that it is rawMichael Goulet-1/+1
2025-05-05Merge pull request #4310 from RalfJung/addr-space-conservationRalf Jung-8/+17
alloc_addresses: when we are running out of addresses, start reusing more aggressively
2025-05-05Merge pull request #4309 from RalfJung/both-borrows-testsRalf Jung-532/+94
move tests that are identical between SB and TB to shared files
2025-05-05fix: Fix `move_bounds` assists not working for lifetimesLukas Wirth-47/+196
2025-05-05alloc_addresses: when we are running out of addresses, start reusing more ↵Ralf Jung-8/+17
aggressively
2025-05-05consistent folder naming: stacked-borrows -> stacked_borrowsRalf Jung-6/+6
2025-05-05Merge pull request #19746 from Veykril/push-swvuyqwwplrtLukas Wirth-44/+415
fix: Fix proc-macro API creating malformed negative literals
2025-05-05fix: Fix proc-macro API creating malformed negative literalsLukas Wirth-29/+85
2025-05-05Merge pull request #4306 from yoctocell/fix-unsafecell-inside-boxRalf Jung-1/+43
Tree Borrows: Correctly handle interior mutable data in `Box`
2025-05-05move tests that are identical between SB and TB to shared filesRalf Jung-764/+326
2025-05-05minor: Add more proc-macro tests for parsing negative literalsLukas Wirth-26/+341
2025-05-05update unstable bookdianne-7/+24
2025-05-05update `cc_detect` testsonur-ozkan-6/+6
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-05-05Merge pull request #19745 from Veykril/push-rnqulnqvltroLukas Wirth-0/+118
minor: Add a mbe test for parsing negative literals
2025-05-05minor: Add a mbe test for parsing negative literalsLukas Wirth-0/+118