| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-01-25 | Merge pull request #18973 from ThouCheese/feat/nice-niches | Lukas Wirth | -2/+85 | |
| Make niches into nices | ||||
| 2025-01-25 | Merge pull request #19023 from Wilfred/sequence_type_names | Lukas Wirth | -10/+93 | |
| minor: Suggest better names when a type is a sequence | ||||
| 2025-01-24 | manual: Convert to mdbook | Wilfred Hughes | -2686/+2836 | |
| Split manual.adoc into markdown files, one for each chapter. For the parts of the manual that are generated from source code doc comments, update the comments to use markdown syntax and update the code generators to write to `generated.md` files. For the weekly release, stop copying the .adoc files to the `rust-analyzer/rust-analyzer.github.io` at release time. Instead, we'll sync the manual hourly from this repository. See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/226 for the sync. This PR should be merged first, and that PR needs to be merged before the next weekly release. This change is based on #15795, but rebased and updated. I've also manually checked each page for markdown syntax issues and fixed any I encountered. Co-authored-by: Lukas Wirth <lukastw97@gmail.com> Co-authored-by: Josh Rotenberg <joshrotenberg@gmail.com> | ||||
| 2025-01-24 | minor: Suggest better names when a type is a sequence | Wilfred Hughes | -10/+93 | |
| Previously, we'd suggest a type of `vec` for a value of type `Vec<T>`, which is rarely what the user wants. We also had no suggestions for values of type `&[T]`. Instead, try to pluralise the inner type name, and fall back to `items`. | ||||
| 2025-01-24 | Explicitly add buildfiles when constructing ProjectFolders | David Richey | -21/+38 | |
| 2025-01-24 | Merge pull request #19018 from Veykril/push-wxqqunxwrply | Lukas Wirth | -95/+112 | |
| internal: Record the use tree index in glob imports | ||||
| 2025-01-24 | Merge pull request #18991 from Veykril/push-rmqmnrymwmoz | Lukas Wirth | -322/+433 | |
| Keep already computed inlay hint properties instead of late resolving them | ||||
| 2025-01-24 | Lazily compute location links in type hints again | Lukas Wirth | -9/+18 | |
| 2025-01-24 | Record the use tree index in glob imports | Lukas Wirth | -95/+112 | |
| 2025-01-24 | Add a new failing test that overflows stack | Shoyu Vanilla | -0/+37 | |
| 2025-01-24 | Merge pull request #19012 from ShoyuVanilla/arbitrary-self | Lukas Wirth | -26/+129 | |
| feat: Implement `arbitrary-self-types` | ||||
| 2025-01-24 | feat: Implement `arbitrary-self-types` | Shoyu Vanilla | -26/+129 | |
| 2025-01-24 | Merge pull request #19017 from Veykril/push-uktrsknwmsvy | Lukas Wirth | -10/+26 | |
| fix: Fix flycheck panicking with "once" invocation strategy | ||||
| 2025-01-24 | Merge pull request #18993 from ChayimFriedman2/iter-config | Lukas Wirth | -56/+111 | |
| feat: Provide a config to control auto-insertion of `await` and `iter()` | ||||
| 2025-01-24 | Merge pull request #18994 from Wilfred/failed_rustc_cfg_as_warning | Lukas Wirth | -1/+1 | |
| internal: Treat cfg fetching failures as a warning | ||||
| 2025-01-24 | Merge pull request #19016 from Veykril/push-moqnsytyrupu | Lukas Wirth | -208/+234 | |
| fix: Fix `ItemScope` not recording glob imports | ||||
| 2025-01-24 | fix: Fix flycheck panicking with "once" invocation strategy | Lukas Wirth | -10/+26 | |
| We only ever have one flycheck runner no matter the number of workspaces, so just kick off flycheck for it immediately | ||||
| 2025-01-24 | Fix `ItemScope` not recording glob imports | Lukas Wirth | -208/+234 | |
| This caused us other code to incorrectly assume in dealing with a declaration when in fact it was dealing with a glob imported definition | ||||
| 2025-01-23 | Check cfg when collecting macro defs | David Richey | -0/+6 | |
| 2025-01-23 | Rephrase comment | Laurențiu Nicola | -3/+3 | |
| 2025-01-22 | increase `AUTODEREF_RECURSION_LIMIT` to 20 | Teodor Tanasoaia | -2/+2 | |
| The limit was introduced in https://github.com/rust-lang/rust-analyzer/pull/1408#discussion_r294059044 to avoid infinite cycles but it effectively caps the number of derefs to 10. Types like `ID3D12Device14` from the `windows` crate run into this because it derefs to `ID3D12Device13`, 13 to 12 and so on. Increasing it to 20 is a quick fix; a better cycle detection method would be nicer long term. | ||||
| 2025-01-21 | manual: Document all rust-project.json fields | Wilfred Hughes | -8/+84 | |
| Ensure that all the fields that rust-analyzer understands are in the manual, they all have doc comments, and they use consistent punctuation (`;` rather than mixing `,` and `;`). Whilst we're here, fix the `sysroot_src` example and add 2024 as a legal value for Rust edition. | ||||
| 2025-01-21 | internal: Treat cfg fetching failures as a warning | Wilfred Hughes | -1/+1 | |
| If the user doesn't have rustc on $PATH, rust-analyzer won't be able to run `rustc --print cfg`. This isn't really an error, as rust-analyzer can still proceed without it. This is particularly noticeable when loading crates defined in a rust-project.json. Until the configuration is loaded, the opened files are briefly treated as detached files and users see this error. Environments with rust-project.json generally have a sysroot and rustc elsewhere, so the error confuses users. | ||||
| 2025-01-21 | Provide a config to control auto-insertion of `await` and `iter()` | Chayim Refael Friedman | -56/+111 | |
| 2025-01-21 | Keep already computed inlay hint properties instead of late resolving them | Lukas Wirth | -92/+99 | |
| 2025-01-21 | Make `InlayHint::linked_location` computation lazy | Lukas Wirth | -204/+285 | |
| 2025-01-21 | remove is_pwr2 | Luuk Wester | -17/+3 | |
| 2025-01-21 | switch from using leading zeros to trailing zeros | Luuk Wester | -1/+4 | |
| 2025-01-21 | Fix Param::as_local treating closures wrong | Lukas Wirth | -53/+67 | |
| 2025-01-21 | Sort completion items that skip `await` and `iter()` behind those that don't | Chayim Refael Friedman | -0/+26 | |
| I don't think my ranking is perfect, because it places them even behind snippet completions, but this is something. | ||||
| 2025-01-21 | make large niche description more terse, switch to using u128::is_power_of_two | Luuk Wester | -5/+5 | |
| 2025-01-21 | Merge pull request #18986 from Veykril/push-zlwvwlowpzqm | Lukas Wirth | -0/+49 | |
| Goto `Display::fmt` when invoked on `to_string` | ||||
| 2025-01-21 | Cleanup `Name` string rendering | Lukas Wirth | -249/+145 | |
| 2025-01-21 | Merge pull request #18977 from ChayimFriedman2/fix-upmapping | Lukas Wirth | -13/+68 | |
| fix: Fix missing upmapping in trait impls completion | ||||
| 2025-01-20 | Fix another bug with completion of trait items inside macros | Chayim Refael Friedman | -11/+36 | |
| This time, when completing the keyword (e.g. `fn` + whitespace). The bug was actually a double-bug: First, we did not resolve the impl in the macro-expanded file but in the real file, which of course cannot work. Second, in analysis the whitespace was correlated with the `impl` and not the incomplete `fn`, which caused fake (where we insert an identifier after the whitespace) and real expansions to go out of sync, which failed analysis. The fix is to skip whitespaces in analysis. | ||||
| 2025-01-20 | fix: Only refresh syntax tree view when the active document changes | Giga Bowser | -1/+8 | |
| 2025-01-20 | Goto `Display::fmt` when invoked on `to_string` | Lukas Wirth | -0/+49 | |
| 2025-01-20 | Bring back goto def redirect for parse -> FromStr | Lukas Wirth | -4/+59 | |
| 2025-01-20 | Move dual blanket impl logic from source analyzer to goto_def | Lukas Wirth | -114/+93 | |
| 2025-01-20 | fix: upmap ranges in convert_tuple_struct_to_named_struct assist | Vishruth-Thimmaiah | -1/+101 | |
| fixes #18766 | ||||
| 2025-01-20 | Merge pull request #18967 from Veykril/push-pwonkmwqmmol | Lukas Wirth | -265/+368 | |
| Properly record meaningful imports as re-exports in symbol index | ||||
| 2025-01-20 | Merge pull request #18934 from 1hakusai1/goto_definition_from_into | Lukas Wirth | -2/+278 | |
| feat: Add the ability to jump from `into` to `from` definitions | ||||
| 2025-01-20 | Merge pull request #18982 from Veykril/push-lstmvzsowxyt | Lukas Wirth | -7/+15 | |
| Extract variable assist triggers less eagerly | ||||
| 2025-01-20 | Merge pull request #18972 from ↵ | Lukas Wirth | -12/+42 | |
| osiewicz/drop-outgoing-messages-on-background-thread lsp-server: Drop outgoing messages on background thread | ||||
| 2025-01-20 | Merge pull request #18976 from ChayimFriedman2/non-module-generic-args | Lukas Wirth | -29/+81 | |
| fix: Fix a bug where enum variants were not considered properly in type ns resolution | ||||
| 2025-01-20 | Fix import search not discarding rawness | Lukas Wirth | -29/+65 | |
| 2025-01-20 | Less allocs | Lukas Wirth | -19/+30 | |
| 2025-01-20 | Preserve impl assoc names in ImplData | Lukas Wirth | -89/+78 | |
| 2025-01-20 | Vec -> Box<[_]> | Lukas Wirth | -9/+6 | |
| 2025-01-20 | Properly record meaningful imports as re-exports in symbol index | Lukas Wirth | -143/+213 | |
