about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-08-06add note on how to build wasiJana Dönszelmann-1/+22
2025-08-06coverage: Remove all unstable support for MC/DC instrumentationZalathar-4/+1
2025-08-06bump stage0Boxy-480/+500
2025-08-06Embed GDB pretty printers in rlibs and dylibsSebastian Poeplau-0/+1
Instead of collecting pretty printers transitively when building executables/staticlibs/cdylibs, let the debugger find each crate's pretty printers via its .debug_gdb_scripts section. This covers the case where libraries defining custom pretty printers are loaded dynamically.
2025-08-06remove redundant _toml suffix and other misc changesbit-aloo-389/+371
2025-08-06Merge pull request #20387 from ChayimFriedman2/rename-macroShoyu Vanilla (Flint)-63/+81
fix: Do not remove the original token when descending into derives
2025-08-06Auto merge of #143684 - nikic:llvm-21, r=cuviperbors-2/+4
Update to LLVM 21 Timeline: LLVM 21.1.0 is scheduled to release on Aug 26th. Rust 1.90 branches on Aug 1st and releases September 18. Depends on: * [x] https://github.com/llvm/llvm-project/issues/147781 * [x] https://github.com/llvm/llvm-project/issues/147935 * [x] https://github.com/llvm/llvm-project/issues/139443 * [x] https://github.com/llvm/llvm-project/pull/148207 * [x] https://github.com/llvm/llvm-project/pull/148607 * [x] https://github.com/llvm/llvm-project/pull/149046 * [x] https://github.com/llvm/llvm-project/issues/149097 * [x] https://github.com/rust-lang/rust/pull/144116 r? `@ghost`
2025-08-06run-make: Allow blessing snapshot files that don't exist yetZalathar-1/+10
This makes it possible to bless the snapshot files used by `diff()` in newly-created run-make tests, without having to create the files manually beforehand.
2025-08-05Merge pull request #20384 from vxpm/fix-external-docsChayim Refael Friedman-1/+26
fix external docs for exported macros
2025-08-05Merge pull request #2534 from skrobchik/patch-1Manuel Drehwald-1/+1
Update installation.md
2025-08-05fix external docs for exported macrosvinícius x-1/+26
add test
2025-08-05rustdoc: fix caching of intra-doc links on reexportsbinarycat-2/+25
2025-08-05Add aarch64_be-unknown-none-softfloat targetJens Reidel-0/+76
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-08-05Merge pull request #20381 from A4-Tacks/fix-assign-sugChayim Refael Friedman-0/+82
Add assignment type analysis for ide-completion
2025-08-05Use runtimes build for host compiler-rt buildNikita Popov-1/+3
The project build for compiler-rt is deprecated. The runtimes build will use the just-built clang. As such, we also need to pass --gcc-toolchain to the runtimes build, so that it can find the GCC installation.
2025-08-05fix(unicode-table-generator): fix duplicated unique indicesMarco Cavenati-1/+1
unicode-table-generator panicked while populating distinct_indices because of duplicated indices. This was introduced by swapping the order of canonical_words.push(...) and canonical_words.len().
2025-08-05Change prev whitespace to prev triviaA4-Tacks-3/+3
2025-08-05Auto merge of #144303 - Kobzol:bootstrap-tool-cleanup, r=jieyouxubors-453/+744
Consolidate staging for `rustc_private` tools This PR continues bootstrap refactoring, this time by consolidating staging for `Mode::ToolRustc` tools. This refactoring was in the critical path of refactoring `test`/`dist`/`clippy`/`doc` steps, and getting rid of the rmeta/rlib sysroot copy, because tools are pervasive and they are being used for a lot of things in bootstrap. The main idea is to explicitly model the fact that a stage N `Mode::ToolRustc` tool always works with two different compilers: - Stage N-1 rustc (`build_compiler`) builds stage N rustc (`target_compiler`) - Rlib artifacts from stage N rustc are copied to the sysroot of stage N-1 rustc - Stage N-1 rustc builds the (stage N) tool itself, the tool links to the rlib artifacts of the stage N rustc Before, the code often used `compiler`, which meant sometimes the build compiler, sometimes the target compiler, and sometimes neither (looking at you, `download-rustc`). This is especially annoying when you get to a situation where you have an install step that invokes a dist step that invokes a tool build step, where *some* compiler is being propagated through, without it being clear what does that compiler represent. This refactoring hopefully makes that clearer and more explicit. It also gets rid of a few `builder.ensure(Rustc(...))` calls within bootstrap, which is always nice. `Rustdoc` needs to be handled a bit specially, because it acts as a compiler itself, I documented that in the changes. It wasn't practical to do these refactorings in multiple PRs, so I did it all in one PR. The meat of the change is 9ee6d1c1ed112c3dcfb5684b33772b136df0dca3. I tested manually that `x build rustdoc` and `x build miri` still works even with `download-rustc`, although I cannot promise any extra support for `download-rustc`, IMO we will just have to reimplement it from scratch in a different way. As usually, I did some drive-by refactorings to bootstrap, trying to document and clarify things, add more step metadata and tests. Since these changes broke Cargo, which was incorrectly using `Mode::ToolRustc`, I also changed cargo to `ToolTarget` in this PR. Best reviewed commit-by-commit (note that I renamed `link_compiler` to `target_compiler`, in accordance to the rest of bootstrap, in the last commit). r? `@jieyouxu` try-job: x86_64-gnu-aux try-job: x86_64-msvc-ext1
2025-08-05Merge pull request #20385 from Hmikihiro/migrate_expand_glob_importShoyu Vanilla (Flint)-5/+4
Migrate `expand_glob_import` assist to use `SyntaxEditor`
2025-08-05Merge pull request #20383 from ↵Shoyu Vanilla (Flint)-17/+19
Hmikihiro/remove_ted_from_replace_named_generic_with_impl remove `ted` from replace_named_generic_with_impl.rs
2025-08-05Merge pull request #20380 from Hmikihiro/add_attr_argShoyu Vanilla (Flint)-116/+185
remove `add_attr()` from edit_in_place.rs because it use `ted`.
2025-08-05Merge pull request #20389 from Veykril/push-ssyssvnrywvyLukas Wirth-7/+3
Slim down compile time artifact progress reports
2025-08-05Slim down compile time artifact progress reportsLukas Wirth-7/+3
2025-08-05Rollup merge of #144905 - tshepang:rdg-sync, r=jieyouxuSamuel Tardieu-156/+205
rustc-dev-guide subtree update Subtree update of `rustc-dev-guide` to https://github.com/rust-lang/rustc-dev-guide/commit/1263fc23672325c1d2e3d6bba8a7dd89e986245c. Created using https://github.com/rust-lang/josh-sync. r? ``@ghost``
2025-08-05Rollup merge of #144887 - lnicola:sync-from-ra, r=lnicolaSamuel Tardieu-4814/+5513
`rust-analyzer` subtree update Subtree update of `rust-analyzer` to https://github.com/rust-lang/rust-analyzer/commit/8d75311400a108d7ffe17dc9c38182c566952e6e. Created using https://github.com/rust-lang/josh-sync. r? `@ghost`
2025-08-05Rollup merge of #144813 - jieyouxu:no-top-level-tests, r=KobzolSamuel Tardieu-105/+173
Add a tidy check to prevent adding UI tests directly under `tests/ui/` This PR implements https://github.com/rust-lang/compiler-team/issues/902. Only the last commit (adding the new check) is functional; earlier commits are just small drive-by changes to make the other ui/ui-fulldeps checks more logically contained. r? ```@Kobzol``` (or compiler)
2025-08-05Rollup merge of #144779 - Kobzol:bootstrap-dot, r=jieyouxuSamuel Tardieu-2/+229
Implement debugging output of the bootstrap Step graph into a DOT file There are already a bunch of ways how we can debug bootstrap, so why not add one more =D (ideally I'd like to consolidate these approaches somewhat, ```@Shourya742``` is looking into that, but I think that this specific debugging tool is orthogonal to the rest of them, and is quite useful). This PR adds the option to render the bootstrap step graph into the DOT format, in order to understand what steps were executed, along with their fields (`Debug` output). Here you can see an example of the generated DOT files for the `BOOTSTRAP_TRACING=1 ./x build compiler --stage 2 --dry-run` command on x64 Linux. One is with cached deps (what this PR does), the other one without. [bootstrap-dot.zip](https://github.com/user-attachments/files/21548679/bootstrap-dot.zip) Visual example: <img width="1899" height="445" alt="image" src="https://github.com/user-attachments/assets/ae40e6d2-0ea8-48bb-b77e-6b21700b95ee" /> r? ```@jieyouxu```
2025-08-05Rollup merge of #144467 - hydro-project:users/mingwes/rustdoc-fix-cors, ↵Samuel Tardieu-1/+54
r=GuillaumeGomez rustdoc template font links only emit `crossorigin` when needed The `crossorigin` attribute may cause issues when the href is not actually cross-origin. Specifically, the tag causes the browser to send a preflight OPTIONS request to the server even if it is same-origin. Some temperamental servers may reject all CORS preflight requests even if they're actually same-origin, which causes a CORS error and prevents the fonts from loading, even later on. This commit fixes that problem by not emitting `crossorigin` if the url appears to be relative to the same origin.
2025-08-04[win][arm64ec] Fix msvc-wholearchive for Arm64ECDaniel Paoliello-8/+34
2025-08-05Do not remove the original token when descending into derivesChayim Refael Friedman-11/+9
This caused rename to remove both, because it couldn't rename the derive-expanded one. I spent some time trying to create a test for this, before giving up. But I checked manually that this works.
2025-08-05Allow renaming when there are multiple definitions (due to macros) even when ↵Chayim Refael Friedman-52/+72
some cannot rename
2025-08-05updated doc commentKivooeo-4/+4
2025-08-04compiletest: add hint for when a ui test produces no errorsbinarycat-1/+1
2025-08-04windows-gnullvm: include `libunwind.dll` in distMateusz Mikuła-7/+24
2025-08-04Fix wrong font being used for tooltips `i` iconsGuillaume Gomez-0/+4
2025-08-05Migrate `expand_glob_import` assist to use `SyntaxEditor`Hmikihiro-5/+4
2025-08-05remove `ted` from replace_named_generic_with_impl.rsHmikihiro-17/+19
2025-08-04Merge pull request #20378 from skewb1k/chore/folding_ranges-permsLaurențiu Nicola-0/+0
chore: fix crates/ide/src/folding_ranges.rs file perms
2025-08-04Merge pull request #20382 from ChayimFriedman2/goto-def-from-macroShoyu Vanilla (Flint)-4/+30
fix: Correctly goto `From` impl when on `into()` even when the call is inside a macro
2025-08-04Add if..else completions in LetStmt and ArgListA4-Tacks-1/+127
Example === ```rust let x = $0; ``` Old completions: ```rust let x = if $1 { $0 }; ``` This PR current completions: ```rust let x = if $1 { $2 } else { $0 }; ```
2025-08-04Correctly goto `From` impl when on `into()` even when the call is inside a macroChayim Refael Friedman-4/+30
Descend into macros first.
2025-08-04Require approval from t-infra instead of t-release on tier bumpsJakub Beránek-9/+9
2025-08-04remove begin prefixKivooeo-23/+23
2025-08-04remvoe add_attr edit_in_place.rs because it use ted.Hmikihiro-116/+185
2025-08-04Update installation.mdRobert Serrano Kobylyansky-1/+1
The `--enable-offload` and `--enable--enzyme` arguments don't seem to work. Changing them to `--enable-llvm-offload` and `--enable-llvm-enzyme` resulted in the `boostrap.toml` file generating succesfully.
2025-08-04fix(hover): unify horizontal rule formatting to `---`skewb1k-42/+42
Replaces all `___` with `---` in hover documentation markups. Both styles are valid per the GitHub Flavored Markdown spec, but `---` is less ambiguous and already more widely used in rust-analyzer
2025-08-04chore: fix crates/ide/src/folding_ranges.rs file permsskewb1k-0/+0
755 -> 644
2025-08-04Fix splitting dylib pathsJakub Beránek-10/+8
2025-08-04Do not render both cached and uncached edge between two stepsJakub Beránek-1/+7
2025-08-04Implement debugging output of the bootstrap Step graph into a DOT fileJakub Beránek-2/+223