Chayim Refael Friedman
d1ab4e63dd
Merge pull request #20797 from A4-Tacks/fixed-fixme-tuple-field-infer
...
minor: Remove FIXME for test_tuple_field_inference
2025-10-05 07:49:48 +00:00
A4-Tacks
22c1eb85f8
minor: Remove FIXME for test_tuple_field_inference
...
This seems to have been fixed
2025-10-05 15:35:30 +08:00
Chayim Refael Friedman
995ba5f3b7
Merge pull request #20795 from A4-Tacks/parse-edition-extract-expr-format-str
...
minor: Fix CURRENT_FIXME for extract_expressions_from_format_string
2025-10-05 06:53:17 +00:00
Chayim Refael Friedman
fcf7795d58
Merge pull request #20793 from A4-Tacks/diag-paren-missing-unsafe
...
Fix missing parentheses for missing_unsafe
2025-10-05 06:52:31 +00:00
A4-Tacks
c7ed41ebd0
Fix parentheses for missing_unsafe
...
I seem unable to use `Expr::needs_parens*` to complete it
Example
---
```rust
static mut STATIC_MUT: u8 = 0;
fn foo() -> u8 {
STATIC_MUT$0 * 2
}
```
**Before this PR**:
```rust
static mut STATIC_MUT: u8 = 0;
fn foo() -> u8 {
unsafe { STATIC_MUT } * 2
}
```
**After this PR**:
```rust
static mut STATIC_MUT: u8 = 0;
fn foo() -> u8 {
(unsafe { STATIC_MUT }) * 2
}
```
2025-10-05 14:02:49 +08:00
A4-Tacks
b74760a664
minor: Fix CURRENT_FIXME for extract_expressions_from_format_string
2025-10-05 13:54:07 +08:00
Chayim Refael Friedman
b2dd71918b
Merge pull request #20794 from itsjunetime/dedup_dedup
...
Deduplicate sort+dedup calls
2025-10-04 18:11:26 +00:00
itsjunetime
c7d00075d9
Deduplicate sort+dedup calls
2025-10-04 13:00:09 -05:00
Chayim Refael Friedman
6ce82d488d
Merge pull request #20777 from itsjunetime/no_panic_analysis_stats
...
Fix panic when using analysis-stats
2025-10-04 17:39:23 +00:00
itsjunetime
82e2c67452
Move salsa attach to end before call to run_ide_things
2025-10-04 12:30:15 -05:00
Shoyu Vanilla (Flint)
30796a0db3
Merge pull request #20787 from ChayimFriedman2/fix-type-alias-enum
...
fix: Fix erroneous diagnostic incorrect_generics_len when there are generics on enum variant used through type alias
2025-10-03 04:54:50 +00:00
Chayim Refael Friedman
48df0e2833
Fix erroneous diagnostic incorrect_generics_len when there are generics on enum variant used through type alias
2025-10-03 06:54:32 +03:00
Laurențiu Nicola
8efe156db7
Merge pull request #20784 from Supakornn/master
...
Update license references to use markdown links
2025-10-02 17:05:26 +00:00
Supakorn Ieamgomol
73ee45d13a
Update license references to use markdown links
2025-10-02 23:56:02 +07:00
Laurențiu Nicola
19171322f7
Merge pull request #20776 from joaommartins/small-typo-fix
...
minor: fixes small typos in docs
2025-10-02 08:00:21 +00:00
Laurențiu Nicola
09e99daa1d
Merge pull request #20782 from lnicola/josh-pull-fmt
...
minor: Reformat code after rustc-pull
2025-10-02 07:55:54 +00:00
Laurențiu Nicola
ef237100f7
Reformat code after rustc-pull
2025-10-02 10:23:35 +03:00
Shoyu Vanilla (Flint)
a555a68be8
Merge pull request #20720 from ChayimFriedman2/no-rustup-auto-install
...
fix: Prevent rustup from automatically installing toolchains
2025-10-02 05:15:45 +00:00
Laurențiu Nicola
b5108da611
Merge pull request #20779 from rust-lang/rustc-pull
...
minor: Rustc pull update
2025-10-02 04:25:20 +00:00
Laurențiu Nicola
306527dac2
Format code
2025-10-02 07:16:40 +03:00
Laurențiu Nicola
854127ca65
Merge pull request #20778 from itsjunetime/clippy_fixes
...
Fix small things clippy was complaining about
2025-10-02 04:10:00 +00:00
The rustc-josh-sync Cronjob Bot
8404812786
Merge ref ' 3369e82c6b' from rust-lang/rust
...
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Upstream ref: 3369e82c6b
Filtered ref: abf6c425d3a4688fd64d51be9adef24ec58e128b
Upstream diff: f957826bff...3369e82c6b
This merge was created using https://github.com/rust-lang/josh-sync .
2025-10-02 04:07:04 +00:00
Jubilee Young
99550fbc3e
Return to needs-llvm-components being info-only
...
Partially revert a535042e80
Even with non-LLVM codegen backends, we want to allow for annotations
that express dependencies to LLVM-specific parts of the test suite.
This includes `//@ needs-llvm-components`, which just allows checking
that LLVM is built with relevant target support before the test is run.
It does not assert the test cannot work with another codegen backend.
2025-10-02 14:39:18 -07:00
The rustc-josh-sync Cronjob Bot
eb2877b380
Prepare for merging from rust-lang/rust
...
This updates the rust-version file to 3369e82c6b .
2025-10-02 04:07:01 +00:00
itsjunetime
4fdd9bf580
Get rid of unfulfilled expectation
2025-10-01 23:00:16 -05:00
itsjunetime
1c23491763
Fix two small things clippy was complaining about
2025-10-01 22:41:01 -05:00
João M. Martins
0ea569f7ae
fixes small typos in docs and indent issue
2025-10-02 13:33:53 +10:00
Shoyu Vanilla (Flint)
5e7247dcdd
Merge pull request #20770 from ChayimFriedman2/unsafe-impl-unresolved
...
fix: Ignore impl trait safety errors when the trait is unresolved
2025-10-02 03:29:55 +00:00
bors
3369e82c6b
Auto merge of #147210 - lnicola:sync-from-ra, r=lnicola
...
`rust-analyzer` subtree update
Subtree update of `rust-analyzer` to a6bc4a4bbe .
Created using https://github.com/rust-lang/josh-sync .
r? `@ghost`
2025-10-01 21:58:22 +00:00
bors
4da69dfff1
Auto merge of #147235 - matthiaskrgr:rollup-a0es1x9, r=matthiaskrgr
...
Rollup of 8 pull requests
Successful merges:
- rust-lang/rust#146593 (Allow specifying multiple bounds for same associated item, except in trait objects)
- rust-lang/rust#147177 ([DebugInfo] Fix MSVC tuple child creation)
- rust-lang/rust#147195 (iter repeat: add tests for new count and last behavior)
- rust-lang/rust#147202 (Swap order of `resolve_coroutine_interiors` and `handle_opaque_type_uses`)
- rust-lang/rust#147204 (Refactor ArrayWindows to use a slice)
- rust-lang/rust#147219 (Add proper error handling for closure in impl)
- rust-lang/rust#147226 (include `outer_inclusive_binder` of pattern types)
- rust-lang/rust#147230 (Fix typo in 'unfulfilled_lint_expectation' to plural)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-10-01 18:45:43 +00:00
Matthias Krüger
de67301a28
Rollup merge of #147230 - demoray:patch-1, r=jdonszelmann
...
Fix typo in 'unfulfilled_lint_expectation' to plural
2025-10-01 18:42:39 +02:00
Matthias Krüger
8e289788f9
Rollup merge of #147226 - jdonszelmann:pattern-types-next-solver, r=lcnr
...
include `outer_inclusive_binder` of pattern types
Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/237
r? ```@lcnr```
2025-10-01 18:42:38 +02:00
Matthias Krüger
ae60ebd46d
Rollup merge of #147219 - Kivooeo:typeof-is-imposter, r=jdonszelmann
...
Add proper error handling for closure in impl
Fixes https://github.com/rust-lang/rust/issues/147146
Fixes https://github.com/rust-lang/rust/issues/146620
Not sure if it can cause any regressions or anything, as for test also have no idea where to store this one
cc ```@theemathas```
r? compiler
2025-10-01 18:42:37 +02:00
Matthias Krüger
4b905f9cb0
Rollup merge of #147204 - camsteffen:array-windows-ref, r=joboet
...
Refactor ArrayWindows to use a slice
[Tracking issue](https://github.com/rust-lang/rust/issues/75027 )
2025-10-01 18:42:36 +02:00
Matthias Krüger
25f1d82109
Rollup merge of #147202 - jdonszelmann:swap-order, r=lcnr
...
Swap order of `resolve_coroutine_interiors` and `handle_opaque_type_uses`
r? ```@BoxyUwU```
if the comment says x should be last, it helps if it's actually last hehe :P
Fixes https://github.com/rust-lang/trait-system-refactor-initiative/issues/239
2025-10-01 18:42:36 +02:00
Matthias Krüger
1feb547a52
Rollup merge of #147195 - hkBst:repeat-3, r=Mark-Simulacrum
...
iter repeat: add tests for new count and last behavior
Tests for https://github.com/rust-lang/rust/pull/146410
2025-10-01 18:42:35 +02:00
Matthias Krüger
e40e50ed49
Rollup merge of #147177 - Walnut356:tuples, r=Mark-Simulacrum
...
[DebugInfo] Fix MSVC tuple child creation
This is a fix for the debugger visualizer scripts
For whatever reason, using `CreateChildAtOffset` on the child element sometimes caused issues with pointers (and maybe some other types). The resulting child's memory would be a block 4 bytes too far forward. Creating the child off of the parent `valobj` and using the type definition to get the correct offset seems to fix that.
Before:
<img width="489" height="136" alt="image" src="https://github.com/user-attachments/assets/fb4cb95c-f199-49a6-8eba-6d3ff486b69a " />
After:
<img width="518" height="145" alt="image" src="https://github.com/user-attachments/assets/3f50dbc3-19ca-4fd8-87c5-b4be295f6e7c " />
This shouldn't affect any tests as we don't run debuginfo tests for MSVC afaik
2025-10-01 18:42:34 +02:00
Matthias Krüger
15b7792a65
Rollup merge of #146593 - Jules-Bertholet:restrict-e0719, r=BoxyUwU
...
Allow specifying multiple bounds for same associated item, except in trait objects
Supersedes https://github.com/rust-lang/rust/pull/143146 , fixes https://github.com/rust-lang/rust/issues/143143 .
This PR proposes to stop enforcing E0719 in all contexts other than trait object types.
E0719 forbids constraining the same associated item twice within the same angle-bracket delimited associated item bound list (the `…` inside `T: Trait<…>`). For example, the following are forbidden:
| Forbidden | Working alternative |
|--------------------------------------------|--------------------------------------------------------------------|
| `T: Trait<Gat<u32> = u32, Gat<u64> = u64>` | `T: Trait<Gat<u32> = u32> + Trait<Gat<u64> = u64>` |
| `T: Iterator<Item = u32, Item = i32>` | `T: Iterator<Item = u32> + Iterator<Item = i32>` (trivially false) |
| `T: Iterator<Item = u32, Item = u32>` | `T: Iterator<Item = u32>` |
| `T: Iterator<Item: Send, Item: Sync>` | `T: Iterator<Item: Send + Sync>` |
| `T: Trait<ASSOC = 3, ASSOC = 4>` | `T: Trait<ASSOC = 3> + Trait<ASSOC = 4>` (trivially false) |
| `T: Trait<ASSOC = 3, ASSOC = 3>` | `T: Trait<ASSOC = 3>` |
With this PR, all those previously forbidden examples would start working, as well as their APIT and RPIT equivalents.
Types like `dyn Iterator<Item = u32, Item = u32>` will continue to be rejected, however. See https://github.com/rust-lang/rust/pull/143146#issuecomment-3274421752 for the reason why.
```@rustbot``` label T-lang T-types needs-fcp
2025-10-01 18:42:34 +02:00
Brian Caswell
84864bcf89
Fix typo in 'unfulfilled_lint_expectation' to plural
2025-10-01 11:07:42 -04:00
bors
d4ae855111
Auto merge of #147220 - Zalathar:rollup-fubv0wy, r=Zalathar
...
Rollup of 11 pull requests
Successful merges:
- rust-lang/rust#146918 (add regression test)
- rust-lang/rust#146980 (simplify setup_constraining_predicates, and note it is potentially cubic)
- rust-lang/rust#147170 (compiletest: Pass around `DirectiveLine` instead of bare strings)
- rust-lang/rust#147180 (add tests)
- rust-lang/rust#147188 (Remove usage of `compiletest-use-stage0-libtest` from CI)
- rust-lang/rust#147189 (Replace `rustc_span::Span` with a stripped down version for librustdoc's highlighter)
- rust-lang/rust#147199 (remove outdated comment in (inner) `InferCtxt`)
- rust-lang/rust#147200 (Fix autodiff empty ret regression)
- rust-lang/rust#147209 (Remove `no-remap-src-base` from tests)
- rust-lang/rust#147213 (Fix broken STD build for ESP-IDF)
- rust-lang/rust#147217 (Don't create a top-level `true` directory when running UI tests)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-10-01 14:36:51 +00:00
Jana Dönszelmann
0435b16f3b
swap order of resolve_coroutine_interiors and handle_opaque_type_uses
2025-10-01 16:28:53 +02:00
Jana Dönszelmann
96fb1b3b55
include outer_inclusive_binder of pattern types
2025-10-01 16:11:59 +02:00
Chayim Refael Friedman
aefa1ca26d
Merge pull request #20765 from ChayimFriedman2/infer-ns-types
...
internal: Migrate inference to next solver
2025-10-01 13:19:00 +00:00
Cameron Steffen
5ade7647b7
Change ArrayWindows to use a slice
2025-10-01 08:03:19 -05:00
Kivooeo
b810a68197
added error for closures case in impl
2025-10-01 12:38:16 +00:00
Stuart Cook
de20efd01e
Rollup merge of #147217 - Zalathar:true, r=petrochenkov
...
Don't create a top-level `true` directory when running UI tests
The funny thing about writing `-Cincremental=true` is that it *does* enable incremental compilation ... using an incremental compilation dir of `./true`.
And for UI tests, that ends up creating a `true` directory in the repository root, which is annoying.
Fortunately, compiletest has an existing `//@ incremental` directive that takes care of creating an empty incremental directory, and passing it to `-Cincremental`.
---
I have manually checked that reverting rust-lang/rust#146649 still causes the updated test to fail.
2025-10-01 22:15:03 +10:00
Stuart Cook
06e059d45d
Rollup merge of #147213 - ivmarkov:fix-hostname-espidf, r=joboet
...
Fix broken STD build for ESP-IDF
PRs rust-lang/rust#147162 and rust-lang/rust#146937 did [broke](https://github.com/esp-rs/esp-idf-sys/actions/runs/18151791720/job/51663969786 ) the STD build for `target_os = "espidf"` because that target [does not have neither a `gethostname`, not a `libc::_SC_HOST_NAME_MAX` by default](https://github.com/espressif/esp-idf/issues/14849 ).
While there is a [3rd party component for this syscall](https://components.espressif.com/components/espressif/sock_utils/versions/0.2.2/readme ) in the ESP-IDF component registry, I don't think we should use it, because it does not come with ESP-IDF by default.
Therefore, the one-liner fix just re-routes ESP-IDF into the `unsupported` branch.
2025-10-01 22:15:03 +10:00
Stuart Cook
f50c76f2fa
Rollup merge of #147209 - jieyouxu:remove-no-remap-src-base, r=Zalathar
...
Remove `no-remap-src-base` from tests
Previously in the `//`-compiletest-directive times, `no-remap-src-base` was implemented as a special `no-*` directive parsing. In the migration from `//` -> `//`@`,` the `// no-remap-src-base` directive was lost, most likely because it had no effect -- the default is not remapping `src-base`.
So remove occurrences of `no-remap-src-base`, as these are not valid directives.
r? `@Zalathar` (since we discussed this on discord, or compiler)
2025-10-01 22:15:02 +10:00
Stuart Cook
7b0236fbd8
Rollup merge of #147200 - ZuseZ4:fix-autodiff-emptry-ret, r=Zalathar
...
Fix autodiff empty ret regression
closes https://github.com/rust-lang/rust/issues/147144
The two gsoc summer projects caused a bit of churn, which was to be expected, especially since we don't run autodiff in CI yet.
This adds a void return testcase that we should have had anyway, and fixes the regression.
r? `@Zalathar` (Just guessing since I've seen you in a few LLVM PRs and Oli is probably still busy. Feel free to reroll!)
2025-10-01 22:15:01 +10:00
Stuart Cook
d4a0f21290
Rollup merge of #147199 - jdonszelmann:outdated-comment-infctx, r=lcnr
...
remove outdated comment in (inner) `InferCtxt`
This comment seems to have stopped being relevant around 3 years ago after 9f95c605f8 . A map? what map? :P
r? `@lcnr`
2025-10-01 22:15:01 +10:00