about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-04-09update missing targets listBoxy-1/+0
2025-04-09update cfgsBoxy-3/+0
2025-04-09bump stage0Boxy-462/+460
2025-04-09Remove redundant wordstimesince-1/+1
2025-04-09Merge pull request #19255 from geetanshjuneja/masterLukas Wirth-1/+204
Add children modules feature
2025-04-09Merge pull request #19462 from Veykril/push-ypvprvvwkyllLukas Wirth-7988/+6728
refactor: Lower type-refs before type inference
2025-04-09refactor: Lower type-refs before type inferenceLukas Wirth-7988/+6728
This refactors how we deal with items in hir-def lowering. - It now lowers all of them through an "ExpressionStore" (kind of a misnomer as this point) as their so called *Signatures. - We now uniformly lower type AST into TypeRefs before type inference. - Likewise, this moves macro expansion out of type inference, resulting in a single place where we do non-defmap macro expansion. - Finally, this PR removes a lot of information from ItemTree, making the DefMap a lot less likely to be recomputed and have it only depend on actual early name resolution related information (not 100% true, we still have ADT fields in there but thats a follow up removal).
2025-04-09compiletest: Add directive `dont-require-annotations`Vadim Petrochenkov-15/+41
for making matching on specific diagnostic kinds non-exhaustive
2025-04-09Merge pull request #4067 from CraftSpider/windows-metadataRalf Jung-191/+896
Support getting file metadata on Windows
2025-04-09Auto merge of #139552 - matthiaskrgr:rollup-b194mk8, r=matthiaskrgrbors-35/+67
Rollup of 10 pull requests Successful merges: - #139494 (Restrict some queries by def-kind more) - #139496 (Revert r-a changes of rust-lang/rust#139455) - #139506 (add missing word in doc comment (part 2)) - #139515 (Improve presentation of closure signature mismatch from `Fn` trait goal) - #139520 (compiletest maintenance: sort deps and drop dep on `anyhow`) - #139523 (Rustc dev guide subtree update) - #139526 (Fix deprecation note for std::intrinsics) - #139528 (compiletest: Remove the `--logfile` flag) - #139541 (Instantiate higher-ranked transmute goal w/ placeholders before emitting sub-obligations) - #139547 (Update library tracking issue template to set S-tracking-unimplemented) r? `@ghost` `@rustbot` modify labels: rollup
2025-04-08Implement trivial file operations - opening and closing handles. Just enough ↵Rune Tynan-160/+838
to get file metadata.
2025-04-08fix title of offset_of_enum featureJacob Lifshay-1/+1
2025-04-08Do not optimize out SwitchInt before borrowck, or if Zmir-preserve-ubMichael Goulet-1/+30
2025-04-08Rollup merge of #139528 - Zalathar:no-logfile, r=jieyouxuMatthias Krüger-6/+1
compiletest: Remove the `--logfile` flag This flag is deprecated in libtest (#134283), and there's no evidence in-tree of this flag actually being passed to compiletest. For detailed information about test results, bootstrap parses JSON output from compiletest instead (#108659). As part of my experimental work on removing the libtest dependency from compiletest, it's useful to be able to disconnect libtest functionality that isn't needed.
2025-04-08Rollup merge of #139523 - BoxyUwU:rgd-push, r=jieyouxuMatthias Krüger-7/+13
Rustc dev guide subtree update r? `@jieyouxu`
2025-04-08Rollup merge of #139520 - jieyouxu:compiletest-maintenance-1, r=lqdMatthias Krüger-14/+14
compiletest maintenance: sort deps and drop dep on `anyhow` Two changes: 1. Sort compiletest deps alphabetically because it was annoying me (harder to quickly glance what deps compiletest is using). 2. Drop dependency on `anyhow`. There's only one usage of `anyhow`, which is for `with_context` on sth that would immediately panic anyway.
2025-04-08Rollup merge of #139506 - tshepang:patch-6, r=jieyouxuMatthias Krüger-1/+1
add missing word in doc comment (part 2)
2025-04-08Rollup merge of #139496 - Skgland:139455-went-too-far, r=VeykrilMatthias Krüger-7/+38
Revert r-a changes of rust-lang/rust#139455 I discovered https://github.com/rust-lang/rust/issues/132735#issuecomment-2784205477 that I might have done too much in rust-lang/rust#132735 by also removing support in r-a. So this reverts the commit with the changes to r-a. r? RalfJung
2025-04-08Rollup merge of #139509 - xizheyin:issue-139359, r=lcnrMatthias Krüger-6/+6
clean: remove Deref<Target=RegionKind> impl for Region and use `.kind()` Closes #139359 r? `@lcnr`
2025-04-08Rollup merge of #139504 - tshepang:patch-5, r=jieyouxuMatthias Krüger-6/+6
add missing word in doc comment
2025-04-08Rollup merge of #139491 - rustbot:docs-update, r=ehussMatthias Krüger-0/+0
Update books ## rust-lang/reference 12 commits in e95ebdfee02514d93f79ec92ae310a804e87f01f..46435cd4eba11b66acaa42c01da5c80ad88aee4b 2025-04-07 14:21:21 UTC to 2025-03-25 20:13:17 UTC - Update book.toml fix the authors field (rust-lang/reference#1780) - Update precedence table for borrow operators (rust-lang/reference#1776) - Add the ability for rules to be specified in link definitions (rust-lang/reference#1775) - Rework trait parameter patterns (rust-lang/reference#1771) - Fix header rules (rust-lang/reference#1770) - Add test wrappers (rust-lang/reference#1774) - Update tools to Rust 2024 (rust-lang/reference#1773) - Define byte (rust-lang/reference#1772) - Fix CSS for new footnote style (rust-lang/reference#1777) - do not reference LLVM in our definition of UB (rust-lang/reference#1750) - Tweak reference for precise capturing in traits (rust-lang/reference#1769) - Add edition admonitions (rust-lang/reference#1764) ## rust-lang/rust-by-example 2 commits in 6f69823c28ae8d929d6c815181c73d3e99ef16d3..0d7964d5b22cf920237ef1282d869564b4883b88 2025-04-07 11:19:31 UTC to 2025-03-29 02:25:52 UTC - Rename count to index for clarity (rust-lang/rust-by-example#1920) - Fixing grammar in panic section (rust-lang/rust-by-example#1916)
2025-04-08Rollup merge of #139485 - petrochenkov:errkind-light, r=oli-obk,jieyouxuMatthias Krüger-94/+96
compiletest: Stricter parsing for diagnostic kinds Non-controversial parts of https://github.com/rust-lang/rust/pull/139427 not requiring many changes in the test suite. r? ``@jieyouxu``
2025-04-08Merge pull request #19536 from jackh726/closure-inferDavid Barsky-157/+405
Port closure inference from rustc
2025-04-08compiletest: Remove the `--logfile` flagZalathar-6/+1
This flag is deprecated in libtest, and there's no evidence in-tree of this flag actually being passed to compiletest. (For detailed information about test results, bootstrap parses JSON output from compiletest instead.)
2025-04-08Auto merge of #139525 - Zalathar:rollup-5t5xsrw, r=Zalatharbors-113/+124
Rollup of 10 pull requests Successful merges: - #138676 (Implement overflow for infinite implied lifetime bounds) - #139024 (Make error message for missing fields with `..` and without `..` more consistent) - #139098 (Tell LLVM about impossible niche tags) - #139124 (compiler: report error when trait object type param reference self) - #139321 (Update to new rinja version (askama)) - #139346 (Don't construct preds w escaping bound vars in `diagnostic_hir_wf_check`) - #139386 (make it possible to use stage0 libtest on compiletest) - #139421 (Fix trait upcasting to dyn type with no principal when there are projections) - #139464 (Allow for reparsing failure when reparsing a pasted metavar.) - #139490 (Update some comment/docs related to "extern intrinsic" removal) r? `@ghost` `@rustbot` modify labels: rollup
2025-04-08compiletest: Trim whitespace from environment variable namesZalathar-16/+13
2025-04-08Rollup merge of #139490 - RalfJung:unstable-intrinsics-docs, r=oli-obkStuart Cook-80/+10
Update some comment/docs related to "extern intrinsic" removal Follow-up to https://github.com/rust-lang/rust/pull/139455. r? `@oli-obk`
2025-04-08Rollup merge of #139386 - onur-ozkan:configurable-compiletest-libtest, ↵Stuart Cook-8/+87
r=jieyouxu,kobzol make it possible to use stage0 libtest on compiletest With https://github.com/rust-lang/rust/pull/119899, building the library tree will require a stage 1 compiler. This is because `compiletest` is defined as a `ToolStd` (since https://github.com/rust-lang/rust/pull/68019) in order to use the in-tree library. As a result, https://github.com/rust-lang/rust/pull/119899 makes certain development workflows more difficult as changes on the compiler tree will now require recompiling `compiletest` each time. This PR allows switching `ToolStd` to `ToolBootstrap` with a simple boolean option in `bootstrap.toml` to allow `compiletest` to use the stage 0 `libtest` instead. The changes under `src/ci` are clearly intended to make sure that `compiletest` doesn't break during future bootstrap beta bumps.
2025-04-08Rollup merge of #139321 - GuillaumeGomez:update-rinja, ↵Stuart Cook-25/+27
r=notriddle,lolbinarycat,yotamofek Update to new rinja version (askama) Askama maintenance was handed over to rinja maintainers so new `rinja` release is actually `askama`. More information [here](https://blog.guillaume-gomez.fr/articles/2025-03-19+Askama+and+Rinja+merge). r? ``@notriddle``
2025-04-08make hover_feature test less fragileRalf Jung-79/+8
2025-04-08Auto merge of #139474 - jieyouxu:bump-rustc-perf, r=Kobzolbors-1/+0
rustc-perf: update to `c0f3b53c8e5de87714d18a5f42998859302ae03a` Hopefully unblocks https://github.com/rust-lang/rust/pull/139279. r? `@Kobzol` (or compiler) `@bors` rollup=never
2025-04-08compiletest: drop dependency on `anyhow`Jieyou Xu-7/+5
Currently `compiletest` panics all over the place but doesn't really use `anyhow` anyway. I'd like to introduce some more principled error handling and disciplined diagnostic reporting in the near future.
2025-04-08compiletest: sort dependencies alphabeticallyJieyou Xu-8/+10
2025-04-08test_dependencies: bump tokioRalf Jung-3/+3
2025-04-08Merge pull request #19541 from Veykril/push-twqrorwqzmwvLukas Wirth-109/+291
fix(auto-import): Prefer imports of matching types for argument lists
2025-04-08fix(auto-import): Prefer imports of matching types for argument lists Lukas Wirth-109/+291
2025-04-08Stabilize precise capture syntax in style guidexizheyin-12/+12
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-08clean code: remove Deref<Target=RegionKind> impl for Region and use `.kind()`xizheyin-6/+6
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-04-08add missing word in doc comment (part 2)Tshepang Mbambo-1/+1
2025-04-08remove unusual indentationTshepang Mbambo-5/+5
This also fixes markdown rendering
2025-04-08add missing word in doc commentTshepang Mbambo-1/+1
2025-04-07Port closure inference from rustcjackh726-157/+405
2025-04-07mitigate MSVC unsoundness by not emitting alignment attributes on win32-msvc ↵Ralf Jung-5/+7
targets also mention the MSVC alignment issue in platform-support.md
2025-04-07Revert "remove rust-analyser support for `extern "rust-intrinsic"` blocks"Bennet Bleßmann-7/+38
This reverts commit 51b51b51d7931da85280382a81c4dd80c73ca754.
2025-04-07Update booksrustbot-0/+0
2025-04-07compiletest: Avoid ignoring empty diagnostics in one more placeVadim Petrochenkov-2/+1
This catches some silly notes emitted by rustc, which should ideally be fixed
2025-04-07unstable-book/intrinsics: wordsmith MIR-lowering intrinsic docsRalf Jung-1/+2
2025-04-07compiletest: Stricter parsing for diagnostic kindsVadim Petrochenkov-35/+37
2025-04-07compiletest: Always preserve kind for compiler diagnosticsVadim Petrochenkov-22/+36
Those that didn't previously preserved kind are now marked as not requiring annotations to keep the previous behavior. Also, do not lose diagnostics with an empty message.
2025-04-07compiletest: Cleanup collection of actual errorsVadim Petrochenkov-48/+35