35918 Commits

Author SHA1 Message Date
jackh726
74a9d17920 Convert more of dyn_compatibility to next-solver 2025-08-17 16:04:50 +00:00
jackh726
f9d2d2dd87 Switch associated_type_shorthand_candidates to lower_nextsolver 2025-08-17 16:04:50 +00:00
jackh726
496f5f9e96 Cleanup assoc_type_shorthand_candidates 2025-08-17 16:04:50 +00:00
jackh726
aa890b49ff Change direct_super_traits to use generic_predicates_for_param_ns 2025-08-17 16:04:50 +00:00
jackh726
17b94c41b1 Convert some of mir/eval to next-solver types 2025-08-17 16:04:50 +00:00
jackh726
9912b803bc Deduplicate layout_of_adt 2025-08-17 16:04:50 +00:00
jackh726
eeaefa4b9d impl HirDisplay for next_solver::Ty 2025-08-17 16:04:49 +00:00
jackh726
b2f107cb8b Convert more of dyn_compatibility to next-solver 2025-08-17 16:02:59 +00:00
jackh726
8228f6f9f7 Convert some of dyn_compatibility to next-solver and remove generic_predicates_without_parent_query 2025-08-17 16:02:59 +00:00
Chayim Refael Friedman
484db3a517
Merge pull request #20475 from ShoyuVanilla/analysis-std-panic
fix: Make lang items query properly filter out overwritten/excluded sysroots
2025-08-17 13:46:37 +00:00
Shoyu Vanilla
15ac6a21dd fix: Make lang items query properly filter out overwritten/excluded sysroots 2025-08-17 22:28:04 +09:00
Lukas Wirth
e10fa9393e
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
11917cd270 Use a more specific error message when talking about the server logs 2025-08-15 20:15:21 +03:00
Lukas Wirth
a6b199c1a8
Merge pull request #20462 from jackh726/nts-part3
Add test for webrender-2022 dyn issue
2025-08-15 06:35:13 +00:00
jackh726
651ec4b08b add comment 2025-08-15 05:04:41 +00:00
jackh726
c3cad7d3f4 Add test for webrender-2022 metrics 2025-08-15 05:03:44 +00:00
Lukas Wirth
03a6465d2e
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
70fcdd59c6
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
e7c3fe1978
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)
92ba1cc30c
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
e87a2fcff2 Track diagnostic generations per package 2025-08-14 14:33:50 +02:00
Shoyu Vanilla (Flint)
4d7b9044c3
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)
83b852353a
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
8399a88e99
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
e797f81f2a
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
fb53fdc1e4 Shift vars when mapping Dyn 2025-08-13 19:50:15 +00:00
jackh726
65d12c4bab Don't panic if unable to identify host in metrics 2025-08-13 19:49:59 +00:00
Chayim Refael Friedman
b06ce60086
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
c4e73f7bac
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
812cd91b9f
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
5c262a6f05 [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
53b27f2ab2
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
7af2dd9704
Merge pull request #20446 from lcnr/kinda-unhelpful-3
next-solver fun time
2025-08-13 10:17:53 +00:00
lcnr
164d42ceab manually normalize alias 2025-08-13 11:00:00 +02:00
lcnr
425d68fc02 layout_of uses PostAnalysis 2025-08-13 10:57:45 +02:00
lcnr
70ec05eed7 implement type_of_opaque 2025-08-13 10:57:45 +02:00
Lukas Wirth
ac9d0f8049
Merge pull request #20376 from fee1-dead/traitalias
Merge Trait and TraitAlias handling
2025-08-13 08:27:54 +00:00
Lukas Wirth
2cc7bb371d
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
f228c58776 update a few fixmes, and one trivial improvement 2025-08-13 10:01:17 +02:00
Lukas Wirth
96e6e3a83c
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
90647a195f fix: Attach db for inlay hint compute 2025-08-13 09:42:50 +02:00
Deadbeef
d9f67325ab fix errors after rebase 2025-08-13 15:33:08 +08:00
Lukas Wirth
216a986614 Fix metrics checking out repos into toplevel folder instead of target 2025-08-13 09:31:03 +02:00
Lukas Wirth
f8ef356226 Print fields of interned IDs in hir-ty instead of just the ID 2025-08-13 09:29:04 +02:00
Deadbeef
9deb3e440e add test for trait alias projections 2025-08-13 15:28:08 +08:00
Deadbeef
82f174fbd9 Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00
Lukas Wirth
a9450ebba3
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
8c1c689977 Only import the item in "Unqualify method call" if needed 2025-08-13 05:23:58 +03:00
Chayim Refael Friedman
b2a58b8c6e
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
8ab683759e fix: Implement default member to resolve IdentPat 2025-08-12 21:53:50 +09:00