| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-08-29 | Auto merge of #17940 - ChayimFriedman2:closure-to-fn, r=Veykril | bors | -13/+1511 | |
| feat: Create an assist to convert closure to freestanding fn The assist converts all captures to parameters. Closes #17920. This was more work than I though, since it has to handle a bunch of edge cases... Based on #17941. Needs to merge it first. | ||||
| 2024-08-29 | Merge from rust-lang/rust | Laurențiu Nicola | -2/+4 | |
| 2024-08-29 | fix: Fix TokenStream::to_string implementation dropping quotation marks | Lukas Wirth | -3/+8 | |
| 2024-08-29 | fix: Fix proc-macro server crashing when parsing a non-lexable string into a ↵ | Lukas Wirth | -3/+15 | |
| TokenStream | ||||
| 2024-08-29 | Auto merge of #17992 - Wilfred:newlines_in_logs, r=Veykril | bors | -2/+2 | |
| internal: Avoid newlines in fetch errors Most logs lines don't have newlines, ensure fetch errors follow this pattern. This makes it easier to see which log line is associated with the error. Before: 2024-08-28T21:11:58.431856Z ERROR FetchWorkspaceError: rust-analyzer failed to discover workspace After: 2024-08-28T21:11:58.431856Z ERROR FetchWorkspaceError: rust-analyzer failed to discover workspace | ||||
| 2024-08-28 | Fix incorrect symbol definitions in SCIP output | David Richey | -1/+3 | |
| 2024-08-28 | internal: Add doc comments to OpQueue | Wilfred Hughes | -0/+11 | |
| 2024-08-29 | Consider field attributes when converting from tuple to named struct and the ↵ | Chayim Refael Friedman | -11/+49 | |
| opposite | ||||
| 2024-08-29 | Also handle deref expressions in "Extract variable" | Chayim Refael Friedman | -15/+59 | |
| And BTW, remove the parentheses of the extracted expression if there are. | ||||
| 2024-08-28 | internal: Avoid newlines in fetch workspace errors | Wilfred Hughes | -2/+2 | |
| Most logs lines don't have newlines, ensure fetch workspace errors follow this pattern. Before: 2024-08-28T21:11:58.431856Z ERROR FetchWorkspaceError: rust-analyzer failed to discover workspace After: 2024-08-28T21:11:58.431856Z ERROR FetchWorkspaceError: rust-analyzer failed to discover workspace | ||||
| 2024-08-29 | Don't add reference when it isn't needed for the "Extract variable" assist | Chayim Refael Friedman | -1/+42 | |
| I.e. don't generate `let var_name = &foo()`. Anything that creates a new value don't need a reference. That excludes mostly field accesses and indexing. I had a thought that we can also not generate a reference for fields and indexing as long as the type is `Copy`, but sometimes people impl `Copy` even when they don't want to copy the values (e.g. a large type), so I didn't do that. | ||||
| 2024-08-28 | Consider all expressions that autoderef in "Extract variable", not just ↵ | Chayim Refael Friedman | -3/+48 | |
| method and field accesses. | ||||
| 2024-08-28 | Fix name resolution of shadowed builtin macro | Chayim Refael Friedman | -1/+33 | |
| 2024-08-28 | Minor errors | Ali Bektas | -2/+2 | |
| 2024-08-28 | Remove invalid tests | Ali Bektas | -72/+0 | |
| 2024-08-28 | Make almost every client config global | Ali Bektas | -210/+211 | |
| 2024-08-28 | Make completion_* local | Ali Bektas | -72/+76 | |
| 2024-08-28 | Make diagnostics_* local | Ali Bektas | -32/+33 | |
| 2024-08-28 | Make workspace_symbol_search_* workspace | Ali Bektas | -15/+15 | |
| 2024-08-28 | Make procMacro_* workspace | Ali Bektas | -7/+11 | |
| 2024-08-28 | Make rustc_* workspace | Ali Bektas | -11/+11 | |
| 2024-08-28 | Make runnables workspace | Ali Bektas | -22/+24 | |
| 2024-08-28 | Make check workspace | Ali Bektas | -85/+89 | |
| 2024-08-28 | Make checkOnSave workspace | Ali Bektas | -8/+9 | |
| 2024-08-28 | Make cargo_ workspace again | Ali Bektas | -157/+190 | |
| 2024-08-28 | Auto merge of #17981 - lnicola:proc-macro-cwd, r=Veykril | bors | -2/+2 | |
| minor: Fix cwd used for proc macro expansion Fixes #17980. | ||||
| 2024-08-28 | Fix cwd used for proc macro expansion | Laurențiu Nicola | -2/+2 | |
| 2024-08-27 | Create an assist to convert closure to freestanding fn | Chayim Refael Friedman | -13/+1511 | |
| The assist converts all captures to parameters. | ||||
| 2024-08-27 | Auto merge of #17757 - alibektas:toggle_macro_delimiters, r=Veykril | bors | -0/+279 | |
| assist: Add new assist toggle_macro_delimiter Closes #17716 | ||||
| 2024-08-27 | Fix tests | Lukas Wirth | -23/+23 | |
| 2024-08-27 | Auto merge of #17974 - lnicola:rm-apache-appendix, r=lnicola | bors | -25/+0 | |
| internal: Drop Apache license appendices Closes #14586 Similar to https://github.com/rust-lang/rust/pull/67734 | ||||
| 2024-08-27 | Auto merge of #17973 - Veykril:proc-macro-curr-dir, r=Veykril | bors | -14/+34 | |
| Expand proc-macros in workspace root, not package root Should fix https://github.com/rust-lang/rust-analyzer/issues/17748. The approach is generally not perfect though as rust-project.json projects don't benefit from this (still, nothing changes in that regard) | ||||
| 2024-08-27 | Drop Apache license appendices | Laurențiu Nicola | -25/+0 | |
| 2024-08-27 | Expand proc-macros in workspace root, not package root | Lukas Wirth | -14/+34 | |
| 2024-08-27 | Auto merge of #17970 - ChayimFriedman2:unwrap-unsafe-block, r=Veykril | bors | -3/+55 | |
| fix: Fix "Unwrap block" assist with block modifiers The assist just assumes the `{` will be the first character, which led to strange outputs such as `nsafe {`. Fixes #17964. | ||||
| 2024-08-27 | Revert "feat: Implement `module_path` macro" | Lukas Wirth | -278/+71 | |
| 2024-08-26 | Fix "Unwrap block" assist with block modifiers | Chayim Refael Friedman | -3/+55 | |
| The assist just assumes the `{` will be the first character, which led to strange outputs such as `nsafe {`. | ||||
| 2024-08-26 | Auto merge of #17963 - avrong:avrong/error-lifetimes, r=Veykril | bors | -33/+17 | |
| Always show error lifetime arguments as `'_` Fixes #17947 Changed error lifetime argument presentation in non-test environment to `'_` and now showing them even if all of args are error lifetimes. This also influenced some of the other tests like `extract_function.rs`, `predicate.rs` and `type_pos.rs`. Not sure whether I need to refrain from adding lifetimes args there. Happy to fix if needed | ||||
| 2024-08-26 | Show lifetime args if there are only error ones | Aleksei Trifonov | -12/+2 | |
| 2024-08-26 | Show and render error lifetime args as `'_` | Aleksei Trifonov | -21/+15 | |
| 2024-08-26 | Auto merge of #17941 - ChayimFriedman2:pre-closure-to-fn, r=Veykril | bors | -166/+815 | |
| Preliminary work for #17940 I split the PR as requested, and made small commits. | ||||
| 2024-08-26 | Fix Return Type Syntax to include `..` (i.e. `method(..)` and not ↵ | Chayim Refael Friedman | -16/+183 | |
| `method()`) as specified in the RFC | ||||
| 2024-08-25 | Auto merge of #17960 - duncanawoods:master, r=HKalbasi | bors | -0/+8 | |
| fix: add extra_test_bin_args to test explorer test runner `@HKalbasi` I thought I included this in #17470 but it appears not so I have created a new issue #17959 for this fix. | ||||
| 2024-08-25 | Auto merge of #17961 - Veykril:autoderef-alloc, r=Veykril | bors | -23/+56 | |
| internal: Don't allocate autoderef steps when not needed | ||||
| 2024-08-25 | internal: Don't allocate autoderef steps when not needed | Lukas Wirth | -23/+56 | |
| 2024-08-25 | fix: add extra_test_bin_args to test explorer test runner | duncan | -0/+8 | |
| trim whitespace | ||||
| 2024-08-25 | Auto merge of #17958 - Veykril:deref-chain-method-completions, r=Veykril | bors | -33/+90 | |
| fix: Fix trait method completions not acknowledging Deref impls | ||||
| 2024-08-25 | fix: Fix trait method completions not acknowledging Deref impls | Lukas Wirth | -33/+90 | |
| 2024-08-25 | Auto merge of #17956 - Veykril:metadata-err, r=Veykril | bors | -52/+60 | |
| fix: Fix metadata retrying eating original errors | ||||
| 2024-08-25 | fix: Fix metadata retrying eating original errors | Lukas Wirth | -52/+60 | |
