Commit graph

302893 commits

Author SHA1 Message Date
lumiscosity
3141739bad Optimize icon
Losslessly optimizes the icon with:

```
oxipng -o max -a -s
oxipng -o max --zopfli -a -s
```
2025-08-19 11:41:58 +02:00
Shoyu Vanilla (Flint)
51524e0900
Merge pull request #20447 from lcnr/typing-mode
user facing code should use not use `PostAnalysis`
2025-08-19 06:53:17 +00:00
lcnr
8eaa4ad7a4 user facing code should use not use PostAnalysis 2025-08-19 08:24:34 +02:00
Lukas Wirth
2ffa02265a
Merge pull request #20470 from rust-lang/veykril/push-wppxsntzqtou
Auto-attach database in `Analysis` calls
2025-08-18 08:14:07 +00:00
Lukas Wirth
b9d225b6d8 Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00
Shoyu Vanilla (Flint)
af8988cd96
Merge pull request #20442 from ChayimFriedman2/unqualify
fix: Only import the item in "Unqualify method call" if needed
2025-08-18 06:24:35 +00:00
Shoyu Vanilla (Flint)
37a352d3ec
Merge pull request #20454 from jackh726/next-trait-solver-next
Convert some things from chalk_ir types to rustc_type_ir types
2025-08-17 16:23:17 +00:00
jackh726
3486a2c3e7 Remove fixme comment 2025-08-17 16:04:50 +00:00
jackh726
058a398f9f Add FIXME in named_associated_type_shorthand_candidates 2025-08-17 16:04:50 +00:00
jackh726
3e41e85b27 Add fixme to associated_ty_item_bounds 2025-08-17 16:04:50 +00:00
jackh726
0e2b63cd87 Update fixme 2025-08-17 16:04:50 +00:00
jackh726
5c89346171 Add new_empty_tuple 2025-08-17 16:04:50 +00:00
jackh726
e5d320fd6c Remove a bunch of stuff from chalk_db 2025-08-17 16:04:50 +00:00
jackh726
49f166029f Use impl_trait_ns in Impl::trait_ref 2025-08-17 16:04:50 +00:00
jackh726
05bc1818da Switch TraitRef in hir::TraitRef to next solver 2025-08-17 16:04:50 +00:00
jackh726
f92ca612a8 Replace layout_of_ty with layout_of_ty_ns 2025-08-17 16:04:50 +00:00
jackh726
00856fc250 Remove all_super_traits in dyn_compatibility 2025-08-17 16:04:50 +00:00
jackh726
cd0e0957bf Switch generics_require_sized_self to next solver 2025-08-17 16:04:50 +00:00
jackh726
d10e5d10fe Convert more of dyn_compatibility to next-solver 2025-08-17 16:04:50 +00:00
jackh726
064f1c7c83 Switch associated_type_shorthand_candidates to lower_nextsolver 2025-08-17 16:04:50 +00:00
jackh726
418f419d60 Cleanup assoc_type_shorthand_candidates 2025-08-17 16:04:50 +00:00
jackh726
73a5134722 Change direct_super_traits to use generic_predicates_for_param_ns 2025-08-17 16:04:50 +00:00
jackh726
1b03009e7c Convert some of mir/eval to next-solver types 2025-08-17 16:04:50 +00:00
jackh726
faf0dd978d Deduplicate layout_of_adt 2025-08-17 16:04:50 +00:00
jackh726
3f78a1fd5a impl HirDisplay for next_solver::Ty 2025-08-17 16:04:49 +00:00
jackh726
a25a1e34ec Convert more of dyn_compatibility to next-solver 2025-08-17 16:02:59 +00:00
jackh726
9c7ef48a7b 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
029cecf5e3
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
b9861fb75d fix: Make lang items query properly filter out overwritten/excluded sysroots 2025-08-17 22:28:04 +09:00
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