about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-08-10Simplify `check_command` while avoiding allocationsmo8it-26/+24
2024-08-09Auto merge of #17836 - winstxnhdw:sysroot, r=Veykrilbors-4/+4
minor: log error when sysroot can't be discovered Closes #17808
2024-08-09minor: log error when sysroot can't be discoveredwinstxnhdw-4/+4
2024-08-08Auto merge of #17832 - ShoyuVanilla:issue-17811, r=Veykrilbors-4/+27
fix: Panic while rendering function type hint with impl trait arg Fixes #17811
2024-08-08fix: Panic while rendering function with impl trait argShoyu Vanilla-4/+27
2024-08-08Auto merge of #17831 - Veykril:flycheck-move-to-rust-analyzer, r=Veykrilbors-303/+252
internal: Move and split flycheck crate into rust-analyzer main crate The crate no longer is about flychecking, it mainly hosts common command process handling shared by flycheck, test explorer and now project discovery. This re-organizes that into the main crate.
2024-08-08Split up flycheck moduleLukas Wirth-204/+195
2024-08-08Move flycheck crate into rust-analyzer main crateLukas Wirth-113/+71
2024-08-08Auto merge of #17827 - regexident:improve-crate-manifests-continuation, ↵bors-1/+2
r=lnicola Improve crate manifest of 'syntax-bridge', adding missing `[package.repository]` and `[package.description]` fields This is a follow-up of https://github.com/rust-lang/rust-analyzer/pull/17745, specifically [this comment](https://github.com/rust-lang/rust-analyzer/pull/17745#issuecomment-2271102382) by `@lnicola.` It refines the manifest of the newly added 'syntax-bridge' crate, adding a `[package.repository]` as `workspace = true` and changes the existing `[package.description]` from "TBD" to a more useful description.
2024-08-07Add missing `[package.description]` for 'syntax-bridge' crateVincent Esche-1/+1
2024-08-07Make 'syntax-bridge' crate inherit `[package.repository]` from workspaceVincent Esche-0/+1
2024-08-07Auto merge of #17825 - Veykril:server-things, r=Veykrilbors-45/+70
internal: Offload diagnostics serialization to the task pool
2024-08-07Auto merge of #17824 - ShoyuVanilla:fix-diags, r=Veykrilbors-1/+1
fix: Native diagnostics not working This should be a `continue` now _Originally posted by `@Veykril` in https://github.com/rust-lang/rust-analyzer/pull/17775#discussion_r1706845633_ I've tested the release compile output with IDE in the original PR, but my test workspace had only one `.rs` file 🤦 😢
2024-08-07Offload diagnostics serialization to the task poolLukas Wirth-32/+48
2024-08-07Slightly quieter fatal panicsLukas Wirth-13/+22
2024-08-07Fix native diagnostics not workingShoyu Vanilla-1/+1
2024-08-07Auto merge of #17823 - Veykril:mod-unconfigured-diag, r=Veykrilbors-2/+26
fix: Fix unconfigured diagnostic being attached to the wrong file for modules Fixes https://github.com/rust-lang/rust-analyzer/issues/17817
2024-08-07Fix unconfigured diagnostic being attached to the wrong file for modulesLukas Wirth-2/+26
2024-08-07Auto merge of #17821 - Veykril:project-model-cleanup, r=Veykrilbors-323/+317
internal: Remove unnecessary CfgFlag definition in project-model
2024-08-07Fix cargo config get env parsingLukas Wirth-4/+7
2024-08-07Remove unnecessary CfgFlag definition in project-modelLukas Wirth-319/+310
2024-08-07Auto merge of #17809 - nicolas-guichard:index-vendored, r=Veykrilbors-24/+54
Include vendored crates in StaticIndex `StaticIndex::compute` filters out modules from libraries. This makes an exceptions for vendored libraries, ie libraries actually defined inside the workspace being indexed. This aims to solve https://bugzilla.mozilla.org/show_bug.cgi?id=1846041 In general StaticIndex is meant for code browsers, which likely want to index all visible source files.
2024-08-07Auto merge of #17813 - roife:fix-issue-17803, r=Veykrilbors-2/+32
fix: tyck for non-ADT types when searching refs for `Self` kw See https://github.com/rust-lang/rust-analyzer/pull/15864/files/e0276dc5ddc38c65240edb408522bb869f15afb4#r1389848845 For ADTs, to handle `{error}` in generic args, we should to convert them to ADT for comparisons; for others, we can directly compare the types.
2024-08-07Auto merge of #17818 - alibektas:hidden_rust_project_json, r=Veykrilbors-2/+14
Allow rust-project.json to be hidden Closes #17816
2024-08-07Allow rust-project.json to be hiddenAli Bektas-2/+14
2024-08-06fix: tyck for non-ADT types when searching refs for `Self` kwroife-2/+32
2024-08-06Include vendored crates in StaticIndexNicolas Guichard-24/+54
StaticIndex::compute filters out modules from libraries. This makes an exceptions for vendored libraries, ie libraries actually defined inside the workspace being indexed. This aims to solve https://bugzilla.mozilla.org/show_bug.cgi?id=1846041 In general StaticIndex is meant for code browsers, which likely want to index all visible source files.
2024-08-06Auto merge of #17745 - regexident:improve-crate-manifests, r=Veykrilbors-38/+70
Improve crate manifests, adding missing `[package.repository]` and `[package.description]` fields As [discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Could.20we.20add.20repository.20url.20to.20.60ra_ap_.60.20crates.20on.20crates.2Eio.3F/near/455095161). cc `@Veykril` `@lnicola`
2024-08-06Auto merge of #17805 - ShoyuVanilla:issue-17578, r=Veykrilbors-5/+46
fix: Panic in path transform with default type parameters Fixes #17578
2024-08-06Replace `[package.repository] = "…"` of published crates with ↵Vincent Esche-34/+35
`[package.repository.workspace] = true`
2024-08-06Unify package descriptions by adding references to "rust-analyzer"Vincent Esche-12/+12
With the lack of a README on the individually published library crates and the somewhat cryptic `ra_ap_` prefix it is hard to figure out where those crates belong to, so mentioning "rust-analyzer" feels like auseful hint there.
2024-08-06Apply Veykril's change suggestionsVincent Esche-4/+4
2024-08-06Replace "`ra_ap_ide`" with "`ide` (aka `ra_ap_ide`)"Vincent Esche-1/+1
2024-08-06Fix spelling of "data structure"Vincent Esche-2/+2
2024-08-06Fix spelling of "object-oriented"Vincent Esche-2/+2
2024-08-06Fix obsolete repository URL in `[package.repository]` of `rust-analyzer` crateVincent Esche-1/+1
2024-08-06Add repository URL for published crates' missing `[package.repository]` fieldsVincent Esche-0/+31
2024-08-06Replace `"TBD"` with more helpful desciptions in published crates' ↵Vincent Esche-33/+33
`[package.description]` fields
2024-08-06fix: Panic in path transform with default type parametersShoyu Vanilla-5/+46
2024-08-05Auto merge of #17802 - Veykril:arg-mismatch-no-ty-mismatch, r=Veykrilbors-3/+18
fix: Surpress type mismatches in calls with mismatched arg counts These tend to get very noisy, hiding the actual problem.
2024-08-05Auto merge of #17772 - Veykril:debug.ts, r=Veykrilbors-99/+187
internal: Reorganize debug.ts
2024-08-05Surpress type mismatches in calls with mismatched arg countsLukas Wirth-3/+18
2024-08-05Auto merge of #17771 - Veykril:parallel-vfs-config, r=Veykrilbors-113/+183
internal: Load VFS config changes in parallel Simple attempt to make some progress f or https://github.com/rust-lang/rust-analyzer/issues/17373 No clue if those atomic orderings are right, though I don't think they are really too relevant either. A more complete fix would probably need to replace our `ProjectFolders` handling a bit.
2024-08-05Reorganize debug.tsLukas Wirth-99/+187
2024-08-05Slightly optimize watch list in vfsLukas Wirth-12/+30
2024-08-05Auto merge of #17791 - ShoyuVanilla:await-outside-of-async, r=Veykrilbors-17/+187
feat: Implement diagnostic for `await` outside of `async` Closes #17781
2024-08-05Auto merge of #17775 - ShoyuVanilla:segregate-diags, r=Veykrilbors-146/+255
perf: Segregate syntax and semantic diagnostics Closes #17731
2024-08-05perf: Segregate syntax and semantic diagnosticsShoyu Vanilla-146/+255
2024-08-05Auto merge of #17801 - Veykril:unbrick-metrics, r=Veykrilbors-5/+1
minor: Fix metrics not running `@bors` r+
2024-08-05minor: Fix metrics not runningLukas Wirth-5/+1