about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-04-14minor: Cleanup config.rs a bitLukas Wirth-50/+96
2022-04-14Auto merge of #11960 - Veykril:config-valid, r=Veykrilbors-51/+82
internal: Show more project building errors to the user Should help out with https://github.com/rust-analyzer/rust-analyzer/issues/9720 Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11223
2022-04-14internal: Show more project building errors to the userLukas Wirth-51/+82
2022-04-14Auto merge of #11980 - atouchet:repo, r=Veykrilbors-3/+3
Update repo URL
2022-04-14Auto merge of #11979 - Veykril:ci, r=lnicolabors-8/+5
minor: Don't run CI on master branch
2022-04-13Update repo URLAlex Touchet-3/+3
2022-04-13Auto merge of #11956 - fee1-dead:master, r=flodieboldbors-15/+53
feat: allow customizing the command for running build scripts I have tested this locally and it fixed #9201 with some small changes on the compiler side with suggestions from https://github.com/rust-analyzer/rust-analyzer/issues/9201#issuecomment-1019554086. I have also added an environment variable `IS_RA_BUILDSCRIPT_CHECK` for crates to detect that it is a check for buildscripts, and allows defaulting to bogus values for expected environment variables.
2022-04-14minor: Don't run CI on master branchLukas Wirth-8/+5
2022-04-13Auto merge of #11976 - Veykril:rust-lang-test, r=Veykrilbors-1/+1
minor: fix ide docs link Let's test if bors listens to me here bors r+
2022-04-13Update CI for Rust borsDeadbeef-2/+25
2022-04-13Remove trailing `;` when turning assignment into `==` comparisonJonas Schievink-1/+70
2022-04-13Add more no-op testsJonas Schievink-0/+16
2022-04-13feat: allow customizing the command for running build scriptsDeadbeef-15/+53
2022-04-13minor: fix ide docs linkLukas Wirth-1/+1
2022-04-13Merge #11974bors[bot]-7/+7
11974: minor: prepare CI for rust-lang move r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-13minor: prepare CI for rust-lang moveLukas Wirth-7/+7
2022-04-12Add trailing `;` when typing `=` in assignmentJonas Schievink-9/+95
2022-04-12Merge #11970bors[bot]-11/+11
11970: Bump chalk r=lnicola a=lnicola Closes #9990, but not #6418, #10653 bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2022-04-12Bump chalkLaurențiu Nicola-11/+11
2022-04-12Merge #11969bors[bot]-15/+25
11969: fix: Add trailing `;` when completing assoc const/type in trait impl r=jonas-schievink a=jonas-schievink Final item of https://github.com/rust-analyzer/rust-analyzer/issues/11860, thus closes https://github.com/rust-analyzer/rust-analyzer/issues/11860 :tada: bors r+ Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2022-04-12Add trailing `;` when completing assoc const/typeJonas Schievink-15/+25
2022-04-12Merge #11967bors[bot]-22/+22
11967: fix: Fix trait impl completions not triggering after `fn`/`const`/`type` r=jonas-schievink a=jonas-schievink ![screenshot-2022-04-12-17:13:01](https://user-images.githubusercontent.com/1786438/162996087-56540f5e-a6be-4111-a4a5-8de21f483a5e.png) Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11467 cc https://github.com/rust-analyzer/rust-analyzer/issues/11860 bors r+ Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2022-04-12Fix trait impl completions' `lookup_by` textJonas Schievink-22/+22
2022-04-12Merge #11883bors[bot]-13/+106
11883: fix(ide): move moudle directory when rename r=rainy-me a=rainy-me fix: #10992 Added `FileSystemEdit::MoveDir` variant for move dirs. Original implemented as recursively move child mod files but had many issues like 1. left empty dir after rename file 2. only affect rust file 3. not performant so changed to current version Co-authored-by: rainy-me <github@yue.coffee>
2022-04-12fix: move dir on rename modrainy-me-13/+106
2022-04-12Merge #11966bors[bot]-4/+4
11966: minor: simplify r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2022-04-12simplifyJonas Schievink-4/+4
2022-04-11Merge #11964bors[bot]-2/+26
11964: internal: Show more project building errors to the user r=Veykril a=Veykril Something very fishy is going on with the `rustc_workspace` handling, which caused this bug to only manifest in the `std` library but not other library crate... So there is either a bug there or just the fact that we seem to add duplicate dependencies (I think this is what we are doing with this right?) might be tripping something up somewhere. cc https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Rust-analyzer.20use.20inside.20stdlib bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-12fix: Unset test feature in rustc source cratesLukas Wirth-2/+26
2022-04-11Merge #11961bors[bot]-49/+119
11961: feature: deprioritize already-imported names in `use` items r=jonas-schievink a=jonas-schievink ![screenshot-2022-04-11-18:48:46](https://user-images.githubusercontent.com/1786438/162790376-6b133925-7cf9-46c5-b0e2-d8c3cba61d47.png) Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11640 bors r+ Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
2022-04-11Deprioritize already-imported namesJonas Schievink-49/+119
2022-04-11Merge #11958bors[bot]-61/+97
11958: Show config deseralization failures on start up r=Veykril a=Veykril We now also show deserialization errors to the user when starting the server. This PR also adds a small validation "pass" on the config that we will probably populate over time with more checks. Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11950 bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-11Add simplistic config validationLukas Wirth-0/+13
2022-04-11Show config deseralization failures on start upLukas Wirth-61/+84
2022-04-11Merge #11935bors[bot]-234/+87
11935: feat: Switch to LSP inlay hints r=lnicola a=lnicola Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2022-04-11Merge #11957bors[bot]-8/+37
11957: fix panic on GAT r=flodiebold a=skyzh Signed-off-by: Alex Chi <iskyzh@gmail.com> This is still a workaround on GAT panic, and didn't solve the full problem. But at least we won't panic now. False positive is better than panicking and letting VSCode constantly pop out the warning 🤣 This PR is simple -- only apply the https://github.com/rust-analyzer/rust-analyzer/pull/11878 fix on const generics. For normal GATs, just follow the previous approach. This PR fixes https://github.com/rust-analyzer/rust-analyzer/issues/11939, I've added it as a test case. This PR didn't fully fix / https://github.com/rust-analyzer/rust-analyzer/issues/11923. But at least it won't panic now -- will only give a type mismatch error. Not sure if it fixes / https://github.com/rust-analyzer/rust-analyzer/issues/11921, I'll test it later. cc `@flodiebold` for review, thanks! Co-authored-by: Alex Chi <iskyzh@gmail.com>
2022-04-11fix panic on GATAlex Chi-8/+37
Signed-off-by: Alex Chi <iskyzh@gmail.com>
2022-04-10Merge #11951bors[bot]-35/+54
11951: minor: Simplify r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-10SimplifyLukas Wirth-35/+54
2022-04-10Merge #11955bors[bot]-1/+1
11955: Fix typo in the manual r=lnicola a=okuramasafumi The -> There Co-authored-by: OKURA Masafumi <masafumi.o1988@gmail.com>
2022-04-11Fix typo in the manualOKURA Masafumi-1/+1
The -> There
2022-04-10Merge #11954bors[bot]-158/+245
11954: Parse `for<'a>` closure syntax r=Veykril a=Veykril Fixes https://github.com/rust-analyzer/rust-analyzer/issues/11716 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-10Parse for<'a> closure syntaxLukas Wirth-158/+245
2022-04-10Merge #11953bors[bot]-165/+96
11953: fix: `extract_module` is too eager r=Veykril a=iDawer Refactored `extract_module`. Searching for usages and import resolving are done lazily. Close #11944 Co-authored-by: iDawer <ilnur.iskhakov.oss@outlook.com>
2022-04-09`extract_module`: Refactor loopsiDawer-84/+52
2022-04-09extract_module: Resolve imports lazilyiDawer-41/+27
2022-04-09Refactor `extract_module`iDawer-35/+20
2022-04-09Clean up `extract_module`iDawer-16/+8
2022-04-09Merge #11946bors[bot]-16/+13
11946: internal: Revert #11912 as it parses all visited files r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2022-04-09Revert #11912 as it parses all visited filesLukas Wirth-16/+13