rust-analyzer/crates
bors d534cc63d3 Auto merge of #18016 - IvarWithoutBones:wrap-return-ty-local-result, r=Veykril
fix: use Result type aliases in "Wrap return type in Result" assist

This commit makes the "Wrap return type in Result" assist prefer type aliases of standard library type when the are in scope, use at least one generic parameter, and have the name `Result`.

The last restriction was made in an attempt to avoid false assumptions about which type the user is referring to, but that might be overly strict. We could also do something like this, in order of priority:
* Use the alias named "Result".
* Use any alias if only a single one is in scope, otherwise:
* Use the standard library type.

This is easy to add if others feel differently that is appropriate, just let me know.

Fixes #17796
2024-09-02 11:33:44 +00:00
..
base-db minor: Downgrade cyclic deps error to warning 2024-09-01 10:02:41 +02:00
cfg Remove unnecessary CfgFlag definition in project-model 2024-08-07 14:27:59 +02:00
hir Auto merge of #18016 - IvarWithoutBones:wrap-return-ty-local-result, r=Veykril 2024-09-02 11:33:44 +00:00
hir-def internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
hir-expand internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
hir-ty Rename function and remove flag argument 2024-08-31 10:17:37 +01:00
ide internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
ide-assists fix: use Result type aliases in "Wrap return type in Result" assist 2024-09-02 02:00:19 +02:00
ide-completion Adjust completions scoring 2024-09-02 13:17:52 +02:00
ide-db internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
ide-diagnostics Do not report missing unsafe on addr_of[_mut]!(EXTERN_OR_MUT_STATIC) 2024-08-29 22:58:26 +03:00
ide-ssr Properly account for editions in names 2024-08-16 16:46:24 +03:00
intern chore: fix some comments 2024-09-02 18:33:23 +08:00
limit Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
load-cargo Auto merge of #17864 - Veykril:lsif, r=Veykril 2024-08-12 12:34:31 +00:00
mbe internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
parser Fix Return Type Syntax to include .. (i.e. method(..) and not method()) as specified in the RFC 2024-08-26 01:45:52 +03:00
paths Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
proc-macro-api Expand proc-macros in workspace root, not package root 2024-08-27 13:40:24 +02:00
proc-macro-srv fix: Fix TokenStream::to_string implementation dropping quotation marks 2024-08-29 08:45:35 +02:00
proc-macro-srv-cli Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
profile Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
project-model minor: Downgrade cyclic deps error to warning 2024-09-01 10:02:41 +02:00
rust-analyzer chore: fix some comments 2024-09-02 18:33:23 +08:00
salsa Drop Apache license appendices 2024-08-27 14:52:34 +03:00
span chore: fix some comments 2024-09-02 18:33:23 +08:00
stdx Use crossbeam-channel from the workspace 2024-08-09 23:48:03 +02:00
syntax Complete desugared and resugared async fn in trait impls 2024-09-01 11:22:50 +02:00
syntax-bridge internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
test-fixture Newtype ErasedFileAstId 2024-08-05 13:46:47 +02:00
test-utils Do not report missing unsafe on addr_of[_mut]!(EXTERN_OR_MUT_STATIC) 2024-08-29 22:58:26 +03:00
text-edit Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
toolchain Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
tt fix: Fix TokenStream::to_string implementation dropping quotation marks 2024-08-29 08:45:35 +02:00
vfs internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
vfs-notify Auto merge of #17843 - mo8it:flycheck, r=Veykril 2024-08-12 09:27:47 +00:00