Commit Graph

303456 Commits

Author SHA1 Message Date
Jana Dönszelmann
269b67d6b8 fix 142891 2025-06-23 12:20:02 +02:00
Jana Dönszelmann
2313d4c571 test for lint on root node crash 2025-06-23 12:17:57 +02:00
bjorn3
9f5fc01b8b Rustup to rustc 1.89.0-nightly (be19eda0d 2025-06-22) 2025-06-23 10:08:13 +00:00
bjorn3
fc8631bb1b Sync from rust be19eda0dc 2025-06-23 09:59:06 +00:00
lcnr
e8e32c30c2 inspect: merge [Canonical]GoalEvaluation 2025-06-23 11:50:36 +02:00
lcnr
5132e6c540 evaluate_goal: avoid unnecessary step 2025-06-23 11:50:36 +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
bors
ae2fc9722f Auto merge of #142792 - cuviper:version-1.90, r=cuviper
Bump the version number to 1.90.0

Part of the release process. This PR must not be rolled up.

r? cuviper
2025-06-23 09:36:06 +00:00
Tshepang Mbambo
9dd7bcb75a notify me when rdg is touched 2025-06-23 11:33:23 +02:00
Laurențiu Nicola
3c4a690d01 Merge from rust-lang/rust 2025-06-23 12:17:31 +03:00
Laurențiu Nicola
3db7cffd54 Preparing for merge from rust-lang/rust 2025-06-23 12:17:08 +03:00
Oli Scherer
993344257d Make PartialEq a const_trait 2025-06-23 08:45:26 +00:00
Camille GILLOT
2074013f44 Only store the LocalDefId instead of the whole instance. 2025-06-23 08:44:31 +00:00
Jakub Beránek
809f75058e Remove build --stage 0 from CI scripts 2025-06-23 10:11:01 +02:00
Jakub Beránek
250804d171 Add snapshot tests for compiler builds 2025-06-23 10:11:01 +02:00
Jakub Beránek
ac8920fa4c Do not allow building anything on stage 0 2025-06-23 10:11:01 +02:00
Jakub Beránek
9e08d8769d Do not explicitly build Rustc when bootstrap is invoked with the compiler path
It was confusing that the `Rustc` step was invoked twice, once with all crates and once with no crates (even though both of these mean the same thing).
2025-06-23 10:11:01 +02:00
Jakub Beránek
450a2d8dc1 Add Builder::std method for building a standard library 2025-06-23 10:11:01 +02:00
Jakub Beránek
332ae3b7e6 Add codegen timing section 2025-06-23 08:50:17 +02: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
Marijn Schouten
707a6f5463 update to literal-escaper 0.0.4 for better API without unreachable and faster string parsing 2025-06-23 06:36:22 +00:00
Marijn Schouten
05b74d558f update to literal-escaper 0.0.4 for better API without unreachable and faster string parsing 2025-06-23 06:36:22 +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
Laine Taffin Altman
b946d06677 phantom_variance_markers: fix identifier usage in macro
This shouldn't have worked originally, as far as we can tell.
2025-06-22 16:06:25 -07:00
Mark Rousskov
928564c7bf Stop collecting unmentioned constants
This avoids generating useless dead LLVM IR.
2025-06-22 17:52:49 -04: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
Camille GILLOT
1b4a19d4ac Hash less while hashing def-ids. 2025-06-22 20:29:39 +00:00
Camille GILLOT
89e5db8fea Only inherit local hash for paths. 2025-06-22 20:25:55 +00:00
Jonathan Brouwer
1d764e022f Port #[no_mangle] to new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-22 22:17:04 +02: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
Camille GILLOT
8a35c7ac5b Cache queries. 2025-06-22 20:14:38 +00: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
Camille GILLOT
09aab29ebf Only compute recursive callees once. 2025-06-22 20:08:49 +00:00
Martin Nordholts
45538e0beb ci: aarch64-gnu: Stop skipping panic_abort_doc_tests
The skipped test passes since nightly-2024-11-29. Let's stop skipping
it to increase the chance of detecing a regression.
2025-06-22 20:48:27 +02:00
Makai
e40515a494 add method to retrieve body of coroutine 2025-06-22 18:01:39 +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
Kornel
d18a43c3ac Init local_names lazily for borrowck diagnostics 2025-06-22 17:16:36 +01:00
Mark Rousskov
b4568d9135 Fix tests to drop now-skipped codegen 2025-06-22 12:03:42 -04:00
Kornel
a7baff819d Avoid panic when debug info is missing 2025-06-22 17:00:09 +01:00
Mark Rousskov
f8db66bc5c Remove dead instructions in terminate blocks 2025-06-22 11:38:47 -04:00