about summary refs log tree commit diff
path: root/src/tools/rust-analyzer
AgeCommit message (Collapse)AuthorLines
2024-07-07Update hover test fixtureLukas Wirth-3/+14
2024-07-07Move parser test generation to xtaskLukas Wirth-18/+50
2024-07-07Allow new clippy lint in testLukas Wirth-0/+1
2024-07-07Fix stop_watch on linuxLukas Wirth-17/+29
2024-07-07Update generated lint definitionsLukas Wirth-806/+1034
2024-07-07Drop unused profile thingsLukas Wirth-33/+0
2024-07-07fix: Fix parameter completions using macro expanded source rangesLukas Wirth-1/+2
2024-07-07Move capability querying out of the config moduleLukas Wirth-515/+525
2024-07-07use "bootstrap" instead of "rustbuild" in comments and docsonur-ozkan-1/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-07-06Auto merge of #17551 - Veykril:has-errors, r=Veykrilbors-3/+6
Also mark InferenceResult::has_errors flag when there are error types Should work around https://github.com/rust-lang/rust-analyzer/issues/15090#issuecomment-2211647133
2024-07-06Also mark InferenceResult::has_errors flag when there are error typesLukas Wirth-3/+6
2024-07-06Auto merge of #17549 - Veykril:runnables-fix, r=Veykrilbors-113/+223
fix: Fix runnables being incorrectly constructed I've misunderstood parts of the code here which caused runnables to arbitrarily break :) (I have yet to understand the conditions that made them break though, there is some odd caching involved I feel like ...) Fixes https://github.com/rust-lang/rust-analyzer/issues/17402
2024-07-06fix: Fix runnables being incorrectly constructedLukas Wirth-113/+223
2024-07-06Auto merge of #17548 - Veykril:debug-fix, r=Veykrilbors-11/+15
fix: Fix passing `message-format` after -- in debugging Fixes https://github.com/rust-lang/rust-analyzer/pull/17495#issuecomment-2211717224
2024-07-06Fix passing message-format after -- in debuggingLukas Wirth-11/+15
2024-07-06Auto merge of #17547 - Veykril:runnables-env, r=Veykrilbors-64/+102
internal: Clean up runnable lsp extension This feels like a natural addition to me, and also allows us to drop the expect-test hardcoding from the extension. Additionally, `cargoExtraArgs` is pointless, all the client will do is merge it with `cargoArgs` so the server can do that instead of delegating that to the client.
2024-07-06Don't emit current dir as cwd for runnablesLukas Wirth-17/+22
2024-07-06Flatten cargoExtraArgs away from the runnable lsp extensionLukas Wirth-38/+19
2024-07-06Add environment to runnable lsp extensionLukas Wirth-33/+85
2024-07-06Auto merge of #17508 - jjoeldaniel:landing-page, r=Veykrilbors-0/+128
feat: Add landing/faq walkthrough pages This is a basic implementation of a landing and FAQ page; I've included the bare-bones information as well as a [recommended section on inlay hints](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Landing.20Page/near/446135321). I've also added `rust-analyzer: Open Walkthrough` and `rust-analyzer: Open FAQ` commands for ease of access. I am hoping to create a small list of FAQ to include that might be useful as well as any other information I may have missed in the landing page. Feel free to share any suggestions! ![landing/faq page demo](https://github.com/rust-lang/rust-analyzer/assets/100006388/4644e4f0-4555-4b29-83c1-b048084ad63d) cc #13351
2024-07-06Diagnose unresolved self value in path expressionLukas Wirth-1/+18
2024-07-05Rollup merge of #127107 - mu001999-contrib:dead/enhance-2, r=pnkfelixMichael Goulet-8/+0
Improve dead code analysis Fixes #120770 1. check impl items later if self ty is private although the trait method is public, cause we must use the ty firstly if it's private 2. mark the adt live if it appears in pattern, like generic argument, this implies the use of the adt 3. based on the above, we can handle the case that private adts impl Default, so that we don't need adding rustc_trivial_field_reads on Default, and the logic in should_ignore_item r? ``@pnkfelix``
2024-07-04Delete `CloneAny` from `rust-analyzer`'s fork of `AnyMap`Maybe Lapkin-71/+0
...because it's very sketchy and causes FCWs. In this case it *is* actually sound, but still. I should write a better fork of anymap...
2024-07-04Disallow nested impl traitsShoyu Vanilla-1/+112
2024-07-04Improve dead code analysismu001999-8/+0
2024-07-03Auto merge of #17536 - Veykril:syntax-diags, r=Veykrilbors-1/+8
fix: Don't emit semantic diagnostics in files with a lot of syntax errors These will only add to the noise when something very unexpected breaks or where parser recovery fails to kick in.
2024-07-03fix: Don't emit semantic diagnostics in files with a lot of syntax errorsLukas Wirth-1/+8
2024-07-03Fix up the syntax tree for macro 2.0Lukas Wirth-161/+218
2024-07-03Skip match exhaustiveness checking if pattern type contains errorsLukas Wirth-0/+3
2024-07-02Move lifetimes in front of type and const params but after selfLukas Wirth-124/+120
2024-07-02Make GenericParams::lifetimes privateLukas Wirth-14/+12
2024-07-02Make GenericParams::where_predicates privateLukas Wirth-8/+12
2024-07-02Make GenericParams::type_or_consts privateLukas Wirth-233/+239
2024-07-02Fix lifetime parameters moving paramter defaultsLukas Wirth-68/+113
2024-07-02squash.Shohei Wada-11/+233
2024-07-01Improve error message when the proc-macro server unexpectedly exitsLukas Wirth-37/+79
2024-07-01Auto merge of #17495 - listochkin:pass-cargo-extra-args-for-debugger, r=Veykrilbors-2/+3
pass cargo extra args when debugging fixes #17128
2024-07-01Auto merge of #17494 - harrysarson:harry/keep-braces, r=Veykrilbors-4/+79
do not normalize `use foo::{self}` to `use foo` It changes behaviour and can cause collisions. E.g. for the following snippet ```rs mod foo { pub mod bar {} pub const bar: i32 = 8; } // transforming the below to `use foo::bar;` causes the error: // // the name `bar` is defined multiple times use foo::bar::{self}; const bar: u32 = 99; fn main() { let local_bar = bar; } ``` we still normalize ```rs use foo::bar; use foo::bar::{self}; ``` to `use foo::bar;` because this cannot cause collisions. See: https://github.com/rust-lang/rust-analyzer/pull/17140#issuecomment-2079189725
2024-07-01Auto merge of #17522 - Veykril:comptimes, r=Veykrilbors-116/+107
internal: Cut compiletimes slightly
2024-06-30Bump rustc_pattern_analysisLukas Wirth-92/+76
2024-06-30Remove serde flag from indexmap dependencyLukas Wirth-24/+31
2024-06-30Auto merge of #17520 - Veykril:slim-proc-macro-api, r=Veykrilbors-348/+351
internal: Cleanup proc-macro-srv some more
2024-06-30Arc proc-macro expander pathsLukas Wirth-3/+5
2024-06-30Abstract proc-macro-srv protocol formatLukas Wirth-39/+60
2024-06-30SimplifyLukas Wirth-19/+17
2024-06-30Actual dummy server for the server cliLukas Wirth-3/+29
2024-06-30Fix proc-macro-test build scriptLukas Wirth-10/+17
2024-06-30Faster env snapshotting in proc-macro-srvLukas Wirth-117/+147
2024-06-30Move proc-macro-test test path fetching from include to env varLukas Wirth-5/+3
2024-06-30Rename proc-macro-srv::server to server_implLukas Wirth-41/+42