Commit graph

295480 commits

Author SHA1 Message Date
Lukas Wirth
cd4100da47
Merge pull request #20092 from Veykril/push-kollxvpyknqs
Drop rustc workspace loading error, if we don't needs its sources
2025-06-25 10:20:30 +00:00
Lukas Wirth
7d6f77f8be Drop rustc workspace loading error, if we don't needs its sources 2025-06-25 12:09:54 +02:00
Lukas Wirth
ca062eb7d4
Merge pull request #20088 from Veykril/push-qrslvzzlqqoz
De-arc trait items query
2025-06-25 08:19:32 +00:00
Lukas Wirth
0876a5687e
Merge pull request #20077 from markpots5/master
feat: Extend vscode 'run' command with optional mode argument for run…
2025-06-25 08:13:14 +00:00
Lukas Wirth
d083ae8cf0
Merge pull request #20084 from ShoyuVanilla/fix-windows-cancel-par
ci:  Fix cancel parallel jobs on windows
2025-06-25 08:11:28 +00:00
Lukas Wirth
19b1938fd6 De-arc trait items query 2025-06-25 10:09:21 +02:00
Chayim Refael Friedman
4e61517384
Merge pull request #20089 from ChayimFriedman2/faq
minor: Fix link in the book
2025-06-25 03:40:59 +00:00
Chayim Refael Friedman
abb956bb02 Fix link in the book 2025-06-25 06:30:16 +03:00
Lukas Wirth
696813069e
Merge pull request #20087 from Veykril/push-rrtkwpzmmwwz
Short circuit a couple hir-ty/lower queries
2025-06-24 18:15:42 +00:00
Lukas Wirth
8b52babd45 Short circuit a couple hir-ty/lower queries 2025-06-24 20:04:43 +02:00
Shoyu Vanilla
18e008b981 ci: Fix cancel parallel jobs on windows 2025-06-24 23:10:52 +09:00
Mark Pots
7eb776e22e Remove special casing in command factory (revert changes in ctx.ts), update main.createCommands instead 2025-06-24 11:56:22 +02:00
Lukas Wirth
0b648f81af
Merge pull request #20012 from lnicola/bump-literal-escaper
Update to literal-escaper 0.0.4
2025-06-24 08:21:36 +00:00
Lukas Wirth
1fffcff006
Merge pull request #20080 from Veykril/push-vnrwqppplykm
Cleanup `folding_ranges` and support more things
2025-06-24 08:02:55 +00:00
Lukas Wirth
40aeda9e1f Cleanup folding_ranges and support more things 2025-06-24 09:51:44 +02:00
Lukas Wirth
e8388b0080
Merge pull request #20061 from ChayimFriedman2/wrap-ret-ty
fix: In "Wrap return type" assist, don't wrap exit points if they already have the right type
2025-06-24 07:16:46 +00:00
Lukas Wirth
04c908948c
Merge pull request #20064 from Wilfred/document_sysroot_project
Document sysroot_project field in rust-project.json
2025-06-24 07:15:19 +00:00
Lukas Wirth
bb164bf699
Merge pull request #20036 from Veykril/push-yquvoyrxkksx
Do not default to 'static for trait object lifetimes
2025-06-24 06:59:54 +00:00
Lukas Wirth
1d3b517a78 Do not default to 'static for trait object lifetimes
We lack trait object default lifetime elision, so `'static` can be wrong at times, confusing the user
2025-06-24 08:49:24 +02:00
Lukas Wirth
c30af1ba43
Merge pull request #20062 from ChayimFriedman2/doctests
minor: Don't run doctests
2025-06-24 06:47:24 +00:00
Lukas Wirth
7ce7c2eed6
Merge pull request #20072 from Veykril/push-sorvvvzskywv
fix: Respect `.cargo/config.toml` `build.target-dir`
2025-06-24 05:50:47 +00:00
Mark Pots
98e7b944fc feat: Extend vscode 'run' command with optional mode argument for running test(s) or bin at keyboard cursor 2025-06-23 21:27:26 +02:00
Laurențiu Nicola
c75104957e
Merge pull request #20076 from ChayimFriedman2/faq
docs: Add troubleshooting FAQ to the book
2025-06-23 18:27:36 +00:00
Chayim Refael Friedman
e40aa42f3b Add troubleshooting FAQ to the book
And one frequently asked question.
2025-06-23 21:16:21 +03:00
Lukas Wirth
c37994c726 fix: Respect .cargo/config.toml build.target-dir 2025-06-23 19:47:52 +02:00
Chayim Refael Friedman
dd142e4c80
Merge pull request #20073 from ShoyuVanilla/fix-fmt-args-hygiene
fix: Use `ROOT` hygiene for `args` inside new `format_args!` expansion
2025-06-23 16:22:07 +00:00
Shoyu Vanilla
b3c79137c1 fix: Use ROOT hygiene for args inside new format_args! expansion 2025-06-24 01:10:32 +09:00
Lukas Wirth
6c3a870545
Merge pull request #20069 from Veykril/push-mnqkqxomtlxn
fix: Fix cargo project manifest not pointing to the workspace root
2025-06-23 12:19:41 +00:00
Lukas Wirth
d0ebff0430 fix: Fix cargo project manifest not pointing to the workspace root 2025-06-23 14:04:57 +02:00
Laurențiu Nicola
4b37534615
Merge pull request #20063 from lnicola/sync-from-rust
minor: sync from downstream
2025-06-23 09:44:54 +00:00
Wilfred Hughes
18855c9775 Document sysroot_project field in rust-project.json 2025-06-23 10:43:45 +01:00
Laurențiu Nicola
3c4a690d01 Merge from rust-lang/rust 2025-06-23 12:17:31 +03:00
Guillaume Gomez
1052ddda96 Add regression test for #137857 to ensure that we generate intra doc links for extern crate items. 2025-06-28 11:27:12 +02:00
Laurențiu Nicola
3db7cffd54 Preparing for merge from rust-lang/rust 2025-06-23 12:17:08 +03:00
bors
22be76b7e2 Auto merge of #142901 - matthiaskrgr:rollup-topt4p6, r=matthiaskrgr
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#141597 (Document subdirectories of UI tests with README files)
 - rust-lang/rust#142823 (Port `#[no_mangle]` to new attribute parsing infrastructure)
 - rust-lang/rust#142828 (1.88.0 release notes)
 - rust-lang/rust#142854 (centralize `-Zmin-function-alignment` logic)
 - rust-lang/rust#142875 (Check rustdoc-json-types FORMAT_VERSION is correctly updated)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-23 06:37:23 +00:00
Matthias Krüger
110492092c
Rollup merge of #142875 - GuillaumeGomez:rustdoc-json-types-version-update, r=Kobzol
Check rustdoc-json-types FORMAT_VERSION is correctly updated

Follow-up of https://github.com/rust-lang/rust/pull/142677.

``@nnethercote`` suggested that we should also ensure that the `FORMAT_VERSION` was only increased by 1 and we should check for it, this PR does it.

cc ``@aDotInTheVoid``
r? ghost
2025-06-23 06:07:21 +02:00
Matthias Krüger
57abad8cc5
Rollup merge of #142854 - folkertdev:centralize-min-function-alignment, r=workingjubilee
centralize `-Zmin-function-alignment` logic

tracking issue: https://github.com/rust-lang/rust/issues/82232
discussed in: https://github.com/rust-lang/rust/pull/142824#discussion_r2160056244

Apply the `-Zmin-function-alignment` value to the alignment field of the function attributes when those are created, so that individual backends don't need to consider it.

The one exception right now is cranelift, because it can't yet set the alignment for individual functions, but it can (and does) set the global minimum function alignment.

cc ``@RalfJung`` I think this is an improvement regardless, is there anything else that should be done for miri?
2025-06-23 06:07:20 +02:00
Matthias Krüger
2357fb05bb
Rollup merge of #142828 - Mark-Simulacrum:relnotes, r=Mark-Simulacrum
1.88.0 release notes

r? cuviper
2025-06-23 06:07:20 +02:00
Matthias Krüger
9b6665fafa
Rollup merge of #142823 - JonathanBrouwer:no_mangle_parser, r=jdonszelmann
Port `#[no_mangle]` to new attribute parsing infrastructure

Ports `no_mangle` to the new attribute parsing infrastructure for https://github.com/rust-lang/rust/issues/131229#issuecomment-2971353197

r? ``@jdonszelmann``
2025-06-23 06:07:19 +02:00
Matthias Krüger
f63fdde764
Rollup merge of #141597 - Oneirical:unquestionable-instruction, r=jieyouxu
Document subdirectories of UI tests with README files

Part of rust-lang/rust#133895 and the [2025 Google Summer of Code](https://blog.rust-lang.org/2025/05/08/gsoc-2025-selected-projects/) associated project.

When adding a new UI test, one is faced with hundreds of subdirectories in `tests/ui` reflecting various categories. Knowing where to put the new test is not trivial, as many of the categories have slightly misleading names. For example, `moves` does not only refer to the `move` keyword but to functions taking ownership in general, whereas `allocator` does not refer to allocation in general but rather to the very specific `allocator_api` and `global_allocator` features.

Many contributors will therefore place their test at the top level of ̀`tests/ui` where it will be mixed with hundreds of unrelated tests.

This PR is a tentative move towards more clearly defined tag/categories, with a SUMMARY.md file documenting the true purpose of each subdirectory, placed inside `tests/ui`.

r? ``@jieyouxu``
2025-06-23 06:07:19 +02:00
bors
58d5e11690 Auto merge of #142898 - ehuss:update-cargo, r=ehuss
Update cargo

7 commits in 2251525ae503fa196f6d7f9ce6d32eccb2d5f044..84709f085062cbf3c51fa507527c1b2334015178
2025-06-16 22:01:27 +0000 to 2025-06-22 23:58:39 +0000
- Bump cargo-util-schemas version (rust-lang/cargo#15696)
- test(msrv): use a far future "newer" version (rust-lang/cargo#15693)
- Plumb rustc `-Zhint-mostly-unused` flag through as a profile option (rust-lang/cargo#15643)
- Disable lldb test, which seems to be broken due to issues with lldb (rust-lang/cargo#15687)
- docs(contrib): change clap URL to docs.rs/clap (rust-lang/cargo#15682)
- feat: Introduce perma unstable `--compile-time-deps` option for `cargo build` (rust-lang/cargo#15674)
- fix: Failing tests on rustc nightly (rust-lang/cargo#15679)
2025-06-23 03:38:39 +00:00
Eric Huss
74973d72fd Update cargo 2025-06-22 17:43:06 -07:00
bors
8387d61a6e Auto merge of #142728 - kornelski:string-track, r=tgross35
Let String pass #[track_caller] to its Vec calls

I've added `#[track_caller]` to `String` methods that delegate to `Vec` methods that already have `#[track_caller]`.

I've also added `#[track_caller]` to methods that have `assert!` or `panic!` due to invalid inputs.
2025-06-22 23:30:10 +00:00
Chayim Refael Friedman
a78bc7cb64 Don't run doctests 2025-06-23 00:50:22 +03:00
Chayim Refael Friedman
47b29ea0c0 In "Wrap return type" assist, don't wrap exit points if they already have the right type 2025-06-23 00:45:40 +03:00
Jonathan Brouwer
2084831cd5
Port #[no_mangle] to new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-22 22:17:04 +02:00
bors
be19eda0dc Auto merge of #142508 - Mark-Simulacrum:skip-noop-drop-glue, r=fee1-dead
Skip no-op drop glue

Since rust-lang/rust#122662 this no longer gets used in vtables, so we're safe to fully
drop generating functions from vtables. Those are eventually cleaned up
by LLVM, but it's wasteful to produce them in the first place.

This doesn't appear to be a significant win (and shows some slight regressions) but
seems like the right thing to do. At minimum it reduces noise in the LLVM IR we generate,
which seems like a good thing.
2025-06-22 20:10:07 +00:00
bors
111e9bc64b Auto merge of #142878 - GuillaumeGomez:rollup-53dohob, r=GuillaumeGomez
Rollup of 10 pull requests

Successful merges:

 - rust-lang/rust#142458 (Merge unboxed trait object error suggestion into regular dyn incompat error)
 - rust-lang/rust#142593 (Add a warning to LateContext::get_def_path)
 - rust-lang/rust#142594 (Add DesugaringKind::FormatLiteral)
 - rust-lang/rust#142740 (Clean-up `FnCtxt::is_destruct_assignment_desugaring`)
 - rust-lang/rust#142780 (Port `#[must_use]` to new attribute parsing infrastructure)
 - rust-lang/rust#142798 (Don't fail to parse a struct if a semicolon is used to separate fields)
 - rust-lang/rust#142856 (Add a few inline directives in rustc_serialize.)
 - rust-lang/rust#142868 (remove few allow(dead_code))
 - rust-lang/rust#142874 (cranelift: fix target feature name typo: "fxsr")
 - rust-lang/rust#142877 (Document why tidy checks if `eslint` is installed via `npm`)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-22 17:10:28 +00:00
Oneirical
b433aba3df Add a SUMMARY.md outlining immediate subdirectories of the ui test suite
Co-authored-by: Jieyou Xu <jieyouxu@outlook.com>
2025-06-22 12:18:22 -04:00
Mark Rousskov
b4568d9135 Fix tests to drop now-skipped codegen 2025-06-22 12:03:42 -04:00