about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-03refactor bootstrap path resolutiononur-ozkan-8/+29
Previously we removed paths as soon as we found the first intersection, which made it impossible to find other intersecting paths. This patch changes that by marking the intersecting paths instead, so we can collect them all and remove them together when needed. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-03Merge from rustcThe Miri Cronjob Bot-590/+349106
2025-01-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-01-03Add UWP support pagebdbai-5/+58
2025-01-02limit special `FileCheck` revision checksDavis Muro-11/+51
2025-01-02Auto merge of #122565 - Zoxc:atomic-panic-msg, r=the8472bors-0/+58
Try to write the panic message with a single `write_all` call This writes the panic message to a buffer before writing to stderr. This allows it to be printed with a single `write_all` call, preventing it from being interleaved with other outputs. It also adds newlines before and after the message ensuring that only the panic message will have its own lines. Before: ``` thread 'thread 'thread 'thread 'thread '<unnamed>thread 'thread 'thread 'thread '<unnamed><unnamed>thread '<unnamed>' panicked at ' panicked at <unnamed><unnamed><unnamed><unnamed><unnamed>' panicked at <unnamed>' panicked at src\heap.rssrc\heap.rs' panicked at ' panicked at ' panicked at ' panicked at ' panicked at src\heap.rs' panicked at src\heap.rs::src\heap.rssrc\heap.rssrc\heap.rssrc\heap.rssrc\heap.rs:src\heap.rs:455455:::::455:455::455455455455455:455:99:::::9:9: : 999: 999: assertion failed: size <= (*queue).block_size: : assertion failed: size <= (*queue).block_size: assertion failed: size <= (*queue).block_size: : : assertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_size assertion failed: size <= (*queue).block_size assertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_sizeerror: process didn't exit successfully: `target\debug\direct_test.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) ``` After: ``` thread '<unnamed>' panicked at src\heap.rs:455:9: assertion failed: size <= (*queue).block_size thread '<unnamed>' panicked at src\heap.rs:455:9: assertion failed: size <= (*queue).block_size thread '<unnamed>' panicked at src\heap.rs:455:9: assertion failed: size <= (*queue).block_size error: process didn't exit successfully: `target\debug\direct_test.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) ``` --- try-jobs: x86_64-gnu-llvm-18
2025-01-02Use `is_some_and` helperMichael Howell-2/+1
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-01-02allow targetDir to be an absolute pathBryce Berger-2/+1
2025-01-02rustdoc: treat `allowed_through_unstable_modules` as deprecationMichael Howell-1/+30
This ensures `std::intrinsics::transmute` is deemphasized in the search engine and other UI, by cleaning it into a deprecation without propagating it through reexports when the parent module is stable.
2025-01-02Auto merge of #135040 - matthiaskrgr:rollup-34vsa8n, r=matthiaskrgrbors-20/+45
Rollup of 5 pull requests Successful merges: - #135016 (Ping me for rustc-dev-guide subtree changes on this repo) - #135027 (Remove range-metadata amdgpu workaround) - #135029 (Update mailmap) - #135033 (try to dedup me in the mailmap) - #135035 (Fix formatting command) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-02Rollup merge of #135035 - Noratrieb:fixfmt, r=jieyouxuMatthias Krüger-20/+45
Fix formatting command The formatting command previously had two issues: - if rustfmt failed, it would print the command invocation. this is unnecessarily noisy - there was a race condition that lead to orphan rustfmts that would print their output after bootstrap exited We fix this by - removing the printing, it's not really useful - threading failure through properly instead of just yoloing exit(1)
2025-01-02Store token trees in contiguous `Vec` instead of as a treeChayim Refael Friedman-2252/+2322
I expected this to be faster (due to less allocations and better cache locality), but benchmarked it is not (neither it is slower). Memory usage, however, drops by ~50mb (of `analysis-stats .`). I guess tt construction is just not hot. This also simplifies using even less memory for token trees by compressing equal span, which I plan to do right after. Some workflows are more easily expressed with a flat tt, while some are better expressed with a tree. With the right helpers, though (which was mostly a matter of trial and error), even the worst workflows become very easy indeed.
2025-01-02Fix formatting commandNoratrieb-20/+45
The formatting command previously had two issues: - if rustfmt failed, it would print the command invocation. this is unnecessarily noisy - there was a race condition that lead to orphan rustfmts that would print their output after bootstrap exited We fix this by - removing the printing, it's not really useful - threading failure through properly instead of just yoloing exit(1)
2025-01-02Auto merge of #135014 - Zalathar:tool-build-step, r=jieyouxubors-113/+135
bootstrap: Overhaul and simplify the `tool_extended!` macro Similar to #134950, but for the macro that declares build steps for some tools. The main changes are: - Removing some functionality that isn't needed by any of the tools currently using the macro - Moving some code out of the macro and into ordinary helper functions - Switching to one macro invocation per tool, and struct-like syntax so that rustfmt will format them There should be no functional change.
2025-01-02Temporarily make the `test` cfg a well known bootstrap cfgUrgau-0/+4
2025-01-02Make the `test` cfg a "userspace" check-cfgUrgau-4/+7
2025-01-02Remove rust-analyzer duplicate crates integration testslucasholten-332/+0
2025-01-02Automatically sort crate graphlucasholten-11/+7
2025-01-02bootstrap: temporarily flip `compile::Rustc` vs `compile::Assemble`许杰友 Jieyou Xu (Joe)-1/+5
The PathSet prefix matching unfortunately also has implications for `./x build compiler`, because the path filter `"compiler"` gets consumed by `compile::Rustc` step first after PathSet prefix matching, whereas before PathSet prefix matching, the later-registered `compile::Assemble` step would've consumed the `"compiler"` path filter. This merely papers over the issue with PathSet prefix handling to unblock contributors for using `./x build compiler`.
2025-01-02fix no space insert before and after if value is only spacesdfireBird-2/+38
2025-01-02Merge pull request #4106 from shamb0/generalize-callback-miri-concurrencyRalf Jung-131/+171
Concurrency: Generalize UnblockCallback to MachineCallback
2025-01-02tweak docs a littleRalf Jung-35/+19
2025-01-02Fix overflow detection in MIR evaluationChayim Refael Friedman-19/+206
With a bit of higher-order macros everything sorts out well. And also fix a discovered bug when comparing long strings.
2025-01-02fix: Fix flycheck cancellations leaving stale errorsLukas Wirth-14/+18
2025-01-02Move most of `Step::should_run` out of `tool_extended!`Zalathar-15/+30
2025-01-02Use struct-like syntax in `tool_extended!`Zalathar-18/+36
Using struct-like syntax allows rustfmt to format macro invocations, instead of giving up and ignoring them. Using a separate macro invocation per tool makes the macro slightly simpler, and isolates syntax errors to individual invocations.
2025-01-02Move most of `Step::run` out of `tool_extended!`Zalathar-30/+48
2025-01-02Don't pass `(self, builder)` identifiers to `tool_extended!`Zalathar-14/+15
2025-01-02Remove two unused parameters from `tool_extended!`Zalathar-4/+2
2025-01-02Remove the unused `extra_features` field from `tool_extended!`Zalathar-46/+18
This field was introduced in #48097 to support the "clippy" feature of RLS.
2025-01-02Auto merge of #134907 - Kobzol:rustc-dev-guide-josh, r=ehussbors-35/+348505
Turn rustc-dev-guide into a Josh subtree Discussed on [Zulip](https://rust-lang.zulipchat.com/#narrow/channel/196385-t-compiler.2Fwg-rustc-dev-guide/topic/a.20move.20to.20main.20repo.20.28rust-lang.2Frust.29). Accompanying rustc-dev-guide PR: https://github.com/rust-lang/rustc-dev-guide/pull/2183 I didn't create a bootstrap step for rustc-dev-guide yet, because the rustc-dev-guide version that we currently use in this repo doesn't have linkcheck enabled and that fails tests. The subtree starts with commit [ad93c5f1c49f2aeb45f7a4954017b1e607df9f5e](https://github.com/rust-lang/rustc-dev-guide/commit/ad93c5f1c49f2aeb45f7a4954017b1e607df9f5e). What I did: ``` export DIR=src/doc/rustc-dev-guide # Remove submodule git submodule status ${DIR} git submodule deinit ${DIR} git rm -r --cached ${DIR} rm -rf ${DIR} # Remove rustc-dev-guide from .gitmodules git commit -m"Removed `${DIR}` submodule" # Import history with josh git fetch https://github.com/rust-lang/rustc-dev-guide ad93c5f1c49f2aeb45f7a4954017b1e607df9f5e josh-filter ':prefix=src/doc/rustc-dev-guide' FETCH_HEAD git merge --allow-unrelated FILTERED_HEAD # A few follow-up cleanup commits ``` r? ehuss
2025-01-01Rollup merge of #134973 - ericlehong:fix-typo, r=GuillaumeGomezMatthias Krüger-7/+7
Fix typos This PR fixes typos errors in comments and docs. Thank you very much.
2025-01-01Rollup merge of #134967 - onur-ozkan:auto-submodule-handler, r=jieyouxuMatthias Krüger-32/+40
handle submodules automatically on `doc` steps Helps to make `doc` macros less complicated.
2025-01-01Do not pass LLD flags to targets flags of compiletestJakub Beránek-1/+0
Not all targets support these flags, so we cannot just pass them to the tests unconditionally. Before, we were using a linker arg (`-Clink-arg=-fuse-ld=lld`), which circumvented this in a hacky way.
2025-01-01Actually use self-contained lld in bootstrap when `use-lld = ↵Jakub Beránek-1/+14
"self-contained"` is used Before, we just used the global `lld` anyway.
2025-01-01Auto merge of #134964 - Kobzol:tidy-full-check, r=onur-ozkanbors-3/+13
Run Python formatting check in tidy on CI I don't think that there's a reason why we should ignore Python formatting on CI, when we already check Python lints and C++ formatting. r? `@onur-ozkan`
2025-01-01Remove mention of rustc-dev-guide from toolstateJakub Beránek-4/+1
2025-01-01Remove obsolete `RustcGuide` bootstrap stepJakub Beránek-30/+0
It was not working for a long time.
2025-01-01Fix source code path in commentJakub Beránek-1/+1
2025-01-01Add rustc-dev-guide as a josh subtreeJakub Beránek-0/+348503
2025-01-01Removed `rustc-dev-guide` as a submoduleJakub Beránek-0/+0
2025-01-01Fix testslucasholten-2/+2
2025-01-01Remove load_cargo_with_fake_sysrootlucasholten-54/+30
2025-01-01Try to write the panic message with a single `write_all` callJohn Kåre Alsaker-0/+58
2025-01-01Merge pull request #18179 from ChayimFriedman2/omit-trait-completionLukas Wirth-100/+1028
feat: Allow excluding specific traits from completion
2025-01-01CleanupLukas Wirth-68/+46
2025-01-01Revamp auto-import exclude configLukas Wirth-55/+169
2025-01-01Simplify completion config path resolutionsLukas Wirth-94/+49
2025-01-01Reduce the default autoimport exclusion listLukas Wirth-186/+90
2025-01-01Merge pull request #18809 from Veykril/push-ktwrzsmzlplwLukas Wirth-9/+3
internal: Do not render closure ids in hover messages