about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-04-10Merge pull request #19461 from Hmikihiro/shadow_by_moduleLukas Wirth-7/+180
fix: shadow type by module
2025-04-10Merge pull request #19555 from Urgau/patch-1Lukas Wirth-0/+6
Enable `[canonicalize-issue-links]` and `[no-mentions]` in triagebot
2025-04-10Merge pull request #4262 from RalfJung/win-pathRalf Jung-36/+107
path: add more Windows tests
2025-04-10make GetFullPathNameW more correct on non-Windows hostsRalf Jung-38/+104
2025-04-10Rollup merge of #139507 - Zalathar:trim-env-name, r=jieyouxuMatthias Krüger-16/+13
compiletest: Trim whitespace from environment variable names When a test contains a directive like `//@ exec-env: FOO=bar`, compiletest currently includes that leading space in the name of the environment variable, so it is defined as ` FOO` instead of `FOO`. This is an annoying footgun that is pretty much never intended, especially since most other directives *do* trim whitespace. So let's get rid of it by trimming the environment variable name. Values remain untrimmed, since there could conceivably be a use-case for values with leading space, but perhaps we'll end up trimming values too in the future. Recently observed in https://github.com/rust-lang/rust/pull/138603#issuecomment-2783709359. Fixes #132990. Supersedes #133148. --- try-job: test-various
2025-04-10Merge pull request #4209 from LorrensP-2158466/freebsd_futexRalf Jung-1/+521
Implement FreeBSD syscall _umtx_op for futex support
2025-04-10Merge pull request #19559 from ChayimFriedman2/rust-186Lukas Wirth-1258/+1010
internal: Switch to Rust 1.86.0
2025-04-10feature: implement WAIT & WAKE operations of FreeBSD _umtx_op syscall for ↵LorrensP-2158466-1/+521
Futex support
2025-04-10Remove all upcasts!Chayim Refael Friedman-1257/+1009
It turns out there were a lot redundant too.
2025-04-10Update MSRV to Rust 1.86.0Chayim Refael Friedman-1/+1
2025-04-10include --edition in the compiletest stampPietro Albini-0/+1
2025-04-10prevent configuring the edition with //@compile-flagsPietro Albini-1/+7
2025-04-10ensure //@compile-flags are last even when passing --editionPietro Albini-2/+6
2025-04-10Update crates/hir-def/src/resolver.rsHayashi Mikihiro-1/+1
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2025-04-10TypeNs contain moduleHayashi Mikihiro-88/+71
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10return single optionHayashi Mikihiro-78/+59
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10fix: shadow type by moduleHayashi Mikihiro-72/+281
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10compiletest: update to Edition 2024Jieyou Xu-15/+44
2025-04-10path: add more Windows testsRalf Jung-1/+6
2025-04-10Fix a small bug with catastrophic effectsChayim Refael Friedman-1/+1
The tiny bug was that `FnFlags::DEPRECTAED_SAFE_2024` and `FnFlags::RUSTC_ALLOW_INCOHERENT_IMPLS` were assigned the same value. The catastrophic effect was that every function marked as `#[rustc_allow_incoherent_impl]` was considered safe-deprecated for edition 2024, which caused it to be considered unsafe to call when called from edition 2024. And that includes `<[_]>::into_vec()`, which is called by the `vec![]` macro. So, catastrophic effect. This innocent-looking bug probably arose from the item tree rewrite. No review would've catch that!
2025-04-10compiletest: add `needs-crate-type` directiveJieyou Xu-2/+117
The `//@ needs-crate-type: $crate_types...` directive takes a comma-separated list of crate types that the target platform must support in order for the test to be run.
2025-04-10compiletest: don't use stringly paths for `compose_and_run`Jieyou Xu-22/+23
2025-04-10Auto merge of #139279 - BoxyUwU:bump-boostrap, r=jieyouxubors-3/+0
Bump boostrap compiler to new beta try-job: `*msvc*`
2025-04-10Rename some `name` variables as `ident`.Nicholas Nethercote-5/+5
It bugs me when variables of type `Ident` are called `name`. It leads to silly things like `name.name`. `Ident` variables should be called `ident`, and `name` should be used for variables of type `Symbol`. This commit improves things by by doing `s/name/ident/` on a bunch of `Ident` variables. Not all of them, but a decent chunk.
2025-04-10update miniz_oxide to 0.8.8oyvindln-4/+4
0.8.7 can trigger a panic when debug assertions are enabled when used via flate2 in some cases
2025-04-09Enable `[canonicalize-issue-links]` and `[no-mentions]` in triagebotUrgau-0/+6
2025-04-09triagebot: enable `[canonicalize-issue-links]` and `[no-mentions]`Urgau-0/+6
2025-04-09Rollup merge of #139489 - petrochenkov:noreqann, r=jieyouxuMatthias Krüger-15/+41
compiletest: Add directive `dont-require-annotations` for making matching on specific diagnostic kinds non-exhaustive. E.g. `//@ dont-require-annotations:ERROR`, like in the examples in this PR. cc https://github.com/rust-lang/rust/pull/139427#issuecomment-2782827583 Closes #132647 FYI `@BoxyUwU` since you've wanted this. r? `@jieyouxu`
2025-04-09Merge pull request #19553 from davidbarsky/davidbarsky/fix-rustdoc-testsDavid Barsky-4/+4
internal: fix `NameGenerator`'s and `AnyMap`'s rustdocs
2025-04-09internal: fix `NameGenerator`'s and `AnyMap`'s rustdocsDavid Barsky-4/+4
2025-04-09internal: rename `children_modules` to `child_modules`David Barsky-39/+45
2025-04-09Add a Miri test for 134713Scott McMurray-0/+30
2025-04-09Merge pull request #19550 from Veykril/push-rsskztqzwuzkLukas Wirth-87/+104
refactor: Turn `LifetimeRef` into an enum
2025-04-09refactor: Turn `LifetimeRef` into an enumLukas Wirth-87/+104
This makes things more structured
2025-04-09Rollup merge of #139573 - RalfJung:miri-sync, r=RalfJungMatthias Krüger-801/+789
Miri subtree update r? `@ghost`
2025-04-09update cfgsBoxy-3/+0
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-27/+53
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-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 #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 #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 #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.)