Lukas Wirth
8e7cca8334
Merge pull request #20467 from SomeoneToIgnore/error-message
...
Use a more specific error message when talking about the server logs
2025-08-15 17:35:33 +00:00
Kirill Bulatov
b38dd2acb5
Use a more specific error message when talking about the server logs
2025-08-15 20:15:21 +03:00
Lukas Wirth
1f12c623bd
Merge pull request #20462 from jackh726/nts-part3
...
Add test for webrender-2022 dyn issue
2025-08-15 06:35:13 +00:00
jackh726
06336efca9
add comment
2025-08-15 05:04:41 +00:00
jackh726
cc3c5cfb2e
Add test for webrender-2022 metrics
2025-08-15 05:03:44 +00:00
Lukas Wirth
0dbacbc957
Merge pull request #20453 from jackh726/nts-part2
...
Fix webrender-2022 metrics - shift vars when mapping dyn
2025-08-14 21:27:42 +00:00
Chayim Refael Friedman
50690b1646
Merge pull request #20425 from avrabe/feat/unterminated-string-hints
...
feat: hint at unterminated strings in unknown prefix errors
2025-08-14 17:58:13 +00:00
Ralf Anton Beier
58ec13d793
feat: hint at unterminated strings in unknown prefix errors
...
When encountering 'unknown literal prefix' errors, check for unbalanced
quotes in recent code and suggest checking for unterminated string literals.
2025-08-14 19:30:29 +02:00
Shoyu Vanilla (Flint)
e9ca08a56c
Merge pull request #20459 from rust-lang/veykril/push-pwzyxwuozkrq
...
Track diagnostic generations per package
2025-08-14 13:17:14 +00:00
Lukas Wirth
6772f18557
Track diagnostic generations per package
2025-08-14 14:33:50 +02:00
Shoyu Vanilla (Flint)
6e55052f42
Merge pull request #20455 from A4-Tacks/fix-indent-conv-match-to-let-else
...
Fix indent for convert_match_to_let_else
2025-08-14 08:23:48 +00:00
Shoyu Vanilla (Flint)
82006f9c8f
Merge pull request #20456 from A4-Tacks/match-with-if-let-guard
...
Add guard to let-chain for replace_match_with_if_let
2025-08-14 08:22:05 +00:00
A4-Tacks
c78177b7f9
Add guard to let-chain for replace_match_with_if_let
...
```rust
fn main() {
match$0 Some(0) {
Some(n) if n % 2 == 0 && n != 6 => (),
_ => code(),
}
}
```
->
```rust
fn main() {
if let Some(n) = Some(0) && n % 2 == 0 && n != 6 {
()
} else {
code()
}
}
2025-08-14 10:07:25 +08:00
A4-Tacks
861f9122c8
Fix indent for convert_match_to_let_else
...
Example
---
```
//- minicore: option
fn f() {
let x$0 = match Some(()) {
Some(it) => it,
None => {//comment
println!("nope");
return
},
};
}
```
**Old output**:
```rust
fn f() {
let Some(x) = Some(()) else {//comment
println!("nope");
return
};
}
```
**This PR output**:
```rust
fn f() {
let Some(x) = Some(()) else {//comment
println!("nope");
return
};
}
```
2025-08-14 08:34:31 +08:00
jackh726
8e5818df2e
Shift vars when mapping Dyn
2025-08-13 19:50:15 +00:00
jackh726
23e8a1e139
Don't panic if unable to identify host in metrics
2025-08-13 19:49:59 +00:00
Chayim Refael Friedman
fbf642e32d
Merge pull request #20390 from A4-Tacks/if-else-comp-in-args-or-let
...
Add if..else completions in LetStmt and ArgList
2025-08-13 16:44:39 +00:00
Chayim Refael Friedman
a5e2a53b5c
Merge pull request #20448 from donni-h/patch-2
...
Fix dead link to Cargo.toml in documentation
2025-08-13 16:42:15 +00:00
Laurențiu Nicola
3d16f1ca40
Merge pull request #20450 from Wilfred/update_vsce
...
[internal] Update to the latest @vscode/vsce for extension build
2025-08-13 14:47:20 +00:00
Wilfred Hughes
8ef6a8ff6d
[internal] Update to the latest @vscode/vsce for extension build
...
This isn't a logic change, but it fixes an npm warning during the
build. vsce itself hasn't had any major changes between 3.2.2 and 3.6.
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.3.0
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.4.0
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.5.0
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.6.0
2025-08-13 15:25:34 +01:00
donni-h
1d57d7800d
Fix dead link to Cargo.toml in documentation
...
../../Cargo.toml resolves to https://rust-analyzer.github.io/Cargo.toml , which is an invalid link
2025-08-13 13:03:52 +02:00
Lukas Wirth
b7e4b28c3b
Merge pull request #20446 from lcnr/kinda-unhelpful-3
...
next-solver fun time
2025-08-13 10:17:53 +00:00
lcnr
67b1e32908
manually normalize alias
2025-08-13 11:00:00 +02:00
lcnr
5849fef132
layout_of uses PostAnalysis
2025-08-13 10:57:45 +02:00
lcnr
00941b3142
implement type_of_opaque
2025-08-13 10:57:45 +02:00
Lukas Wirth
9b089011a0
Merge pull request #20376 from fee1-dead/traitalias
...
Merge Trait and TraitAlias handling
2025-08-13 08:27:54 +00:00
Lukas Wirth
178007c0fd
Merge pull request #20445 from rust-lang/veykril/push-twmmuyzwtxno
...
fix: Attach db for inlay hint compute
2025-08-13 08:01:19 +00:00
lcnr
39ac6e1eed
update a few fixmes, and one trivial improvement
2025-08-13 10:01:17 +02:00
Lukas Wirth
0387ecb5d4
Merge pull request #20444 from rust-lang/veykril/push-snuuupqnrqzx
...
minor: Print fields of interned IDs in hir-ty instead of just the ID
2025-08-13 07:50:15 +00:00
Lukas Wirth
4bbbe6ee2b
fix: Attach db for inlay hint compute
2025-08-13 09:42:50 +02:00
Deadbeef
b62116bda7
fix errors after rebase
2025-08-13 15:33:08 +08:00
Lukas Wirth
2a509717b4
Fix metrics checking out repos into toplevel folder instead of target
2025-08-13 09:31:03 +02:00
Lukas Wirth
b416845683
Print fields of interned IDs in hir-ty instead of just the ID
2025-08-13 09:29:04 +02:00
Deadbeef
0d2f8aff1b
add test for trait alias projections
2025-08-13 15:28:08 +08:00
Deadbeef
8d247472e5
Merge Trait and TraitAlias handling
2025-08-13 15:28:08 +08:00
Lukas Wirth
6e4644fd31
Merge pull request #20329 from jackh726/next-trait-solver-querify
...
Switch from Chalk to the next trait solver
2025-08-13 06:10:45 +00:00
Chayim Refael Friedman
40b8d41367
Merge pull request #20432 from sgasho/fix/20215_implement_default_member_to_resolve_ident_pat
...
Fix "Implement default members" to resolve IdentPat
2025-08-12 13:18:36 +00:00
sgasho
875c158686
fix: Implement default member to resolve IdentPat
2025-08-12 21:53:50 +09:00
Shoyu Vanilla (Flint)
c14814cb66
Merge pull request #20434 from ShoyuVanilla/diag-fix-again
...
fix: Panic while trying to clear old diagnostics while there's nothing
2025-08-11 15:35:38 +00:00
Shoyu Vanilla
6c3c620e6b
fix: Panic while trying to clear old diagnostics while there's nothing
2025-08-12 00:24:44 +09:00
Chayim Refael Friedman
2e4c8e2b66
Merge pull request #20420 from iorizu/doc-symbols-filter
...
feat: Add Config Option to Exclude Locals from Document Symbol Search
2025-08-11 14:46:18 +00:00
Lukas Wirth
1b5dbd9dfa
Merge pull request #20429 from ShoyuVanilla/master
...
hotfix: Update flycheck diagnostics generation
2025-08-11 09:31:31 +00:00
Shoyu Vanilla (Flint)
7daaa4ee01
hotfix: Update flycheck diagnostics generation
2025-08-11 18:18:55 +09:00
Laurențiu Nicola
6bb9af0eeb
Merge pull request #20424 from rust-lang/rustc-pull
...
Rustc pull update
2025-08-11 06:58:04 +00:00
The rustc-josh-sync Cronjob Bot
0585bdff8b
Merge ref ' 21a19c297d' from rust-lang/rust
...
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Upstream ref: 21a19c297d
Filtered ref: 9a5c1fb93028e1a29a7598ce782efb0c5d7be534
This merge was created using https://github.com/rust-lang/josh-sync .
2025-08-11 04:30:34 +00:00
The rustc-josh-sync Cronjob Bot
af10cb727f
Prepare for merging from rust-lang/rust
...
This updates the rust-version file to 21a19c297d .
2025-08-11 04:25:52 +00:00
bors
21a19c297d
Auto merge of #135846 - estebank:non-exhaustive-dfv-ctor-2, r=BoxyUwU
...
Detect struct construction with private field in field with default
When trying to construct a struct that has a public field of a private type, suggest using `..` if that field has a default value.
```
error[E0603]: struct `Priv1` is private
--> $DIR/non-exhaustive-ctor-2.rs:19:39
|
LL | let _ = S { field: (), field1: m::Priv1 {} };
| ------ ^^^^^ private struct
| |
| while setting this field
|
note: the struct `Priv1` is defined here
--> $DIR/non-exhaustive-ctor-2.rs:14:4
|
LL | struct Priv1 {}
| ^^^^^^^^^^^^
help: the type `Priv1` of field `field1` is private, but you can construct the default value defined for it in `S` using `..` in the struct initializer expression
|
LL | let _ = S { field: (), .. };
| ~~
```
2025-08-10 23:47:25 +00:00
Ifeanyi Orizu
00d000ce74
Fix minor things
2025-08-10 17:48:17 -05:00
Ifeanyi Orizu
802fa9255b
Add config option to exclude locals from doc search
2025-08-10 17:48:17 -05:00
bors
c8ca44c98e
Auto merge of #145223 - jhpratt:rollup-xcqbwqe, r=jhpratt
...
Rollup of 7 pull requests
Successful merges:
- rust-lang/rust#144553 (Rehome 32 `tests/ui/issues/` tests to other subdirectories under `tests/ui/`)
- rust-lang/rust#145064 (Add regression test for `saturating_sub` bounds check issue)
- rust-lang/rust#145121 (bootstrap: `x.py dist rustc-src` should keep LLVM's siphash)
- rust-lang/rust#145150 (Replace unsafe `security_attributes` function with safe `inherit_handle` alternative)
- rust-lang/rust#145152 (Use `eq_ignore_ascii_case` to avoid heap alloc in `detect_confuse_type`)
- rust-lang/rust#145200 (mbe: Fix typo in attribute tracing)
- rust-lang/rust#145222 (Fix typo with paren rustc_llvm/build.rs)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-08-10 20:44:38 +00:00