Commit graph

23302 commits

Author SHA1 Message Date
Lukas Wirth 5174b65ed8 Use correct invocation strategy config for checkOnSave 2022-10-19 23:21:34 +02:00
Lukas Wirth 4a287d2525 Implement invocation strategy config for checkOnSave
Note that due to how cargo works, none of the modes currently work for r-a
2022-10-19 23:21:34 +02:00
Lukas Wirth 7e2c41dbd6 Implement invocation strategy config for build scripts 2022-10-19 23:21:29 +02:00
bors 40cbeb5b3d Auto merge of #13423 - Veykril:vscode-vars, r=Veykril
Substitute some VSCode variables in the VSCode client

cc https://github.com/rust-lang/rust-analyzer/issues/13405
2022-10-17 10:08:12 +00:00
bors a2e4f783a2 Auto merge of #13399 - DropDemBits:assists-format-args-capture-pt2, r=Veykril
Migrate assists to format args captures, part 2

Continuation of #13379

Migrates:

- `generate_constant`
- `generate_default_from_enum_variant`
- `generate_default_from_new`
- `generate_delegate_methods`
- `generate_deref`
- `generate_documentation_template`
- `generate_enum_is_method`
- `generate_enum_projection_method`
- `generate_from_impl_for_enum`
- `generate_function`
- `generate_getter`
- `generate_impl`
- `generate_new`
- `generate_setter`
2022-10-17 09:54:07 +00:00
Lukas Wirth d5f467aa4a Substitute some VSCode variables in the VSCode client 2022-10-16 19:45:08 +02:00
bors 0531aab522 Auto merge of #13397 - zyctree:zyctree-patch-2, r=lnicola
fix link in syntax.md
2022-10-16 17:40:21 +00:00
zyctree ea8b62f9b0 update link in syntax.md 2022-10-17 01:39:19 +08:00
zyctree 5df03c2c18 update link in syntax.md 2022-10-16 23:41:32 +08:00
bors ee2d9eddb6 Auto merge of #13354 - Veykril:try-stuff, r=Veykril
feat: Diagnose some incorrect usages of the question mark operator

Trying to figure out how the type stuff in r-a works some more, I think I am doing this correct here but I am not quite sure :)
2022-10-16 11:11:08 +00:00
Lukas Wirth 381366f1dd Diagnose incorrect usages of the question mark operator 2022-10-16 12:58:24 +02:00
bors 4876693708 Auto merge of #13408 - lowr:patch/bump-chalk-0.86, r=Veykril
Bump chalk

There's a bug in current chalk that prevents us from properly supporting GATs, which is supposed to be fixed in v0.86. Note the following:
- v0.86 is only going to be released next Sunday so I'll keep this PR as draft until then.
- This doesn't compile without https://github.com/rust-lang/chalk/pull/779, which I hope will be included in v0.86. I confirmed this compiles with it locally.

Two breaking changes from v0.84:
- `TypeFolder` has been split into `TypeFolder` and `FallibleTypeFolder` (https://github.com/rust-lang/chalk/pull/772)
- `ProjectionTy::self_type_parameter()` has been removed (https://github.com/rust-lang/chalk/pull/778)
2022-10-16 10:57:23 +00:00
Ryo Yoshida 310a72bf47
Bump chalk to 0.86
Two breaking changes:
- `TypeFolder` has been split into `TypeFolder` and `FallibleTypeFolder`
- `ProjectionTy::self_type_parameter()` has been removed
2022-10-16 19:23:34 +09:00
bors 8406380b5a Auto merge of #13421 - rust-lang:Veykril-patch-1, r=Veykril
Update guide.md to reflect support for proc-macros
2022-10-16 09:52:16 +00:00
Lukas Wirth 88d0efc243
Update guide.md to reflect support for proc-macros 2022-10-16 11:52:01 +02:00
bors c09151c619 Auto merge of #13402 - HKalbasi:patch-1, r=Veykril
Cast runnableEnv items to string

fix #13390

An alternative approach could be raising an error if there is non string values.
2022-10-16 09:20:38 +00:00
bors 8267966180 Auto merge of #13420 - volsa:master, r=Veykril
fix: Ignore auto-import assist on parameter names

Fixes #13105; before & after

https://user-images.githubusercontent.com/29666622/195999489-0474c93a-b2bf-41c4-b7da-a4242a8082d8.mov

https://user-images.githubusercontent.com/29666622/195999571-605ee09c-bc6f-4ee5-bfe4-73e37254c647.mov
2022-10-16 08:42:24 +00:00
Volkan Sagcan dd4d3f0a09 fix #13105: Ignore auto-import assist on parameter names 2022-10-15 18:00:32 +02:00
bors 5174d3d030 Auto merge of #13419 - lnicola:bump-setup-node, r=lnicola
Bump `actions/setup-node`

Fixes more Node 12 deprecation warnings.
2022-10-15 11:48:14 +00:00
Laurențiu Nicola 7bf6f188de Bump actions/setup-node 2022-10-15 14:47:53 +03:00
bors 855cd5c280 Auto merge of #13418 - lnicola:bump-deps, r=lnicola
Bump deps
2022-10-15 11:27:12 +00:00
Laurențiu Nicola 342764d31a Add new license 2022-10-15 14:26:30 +03:00
Laurențiu Nicola b513111f3c Bump the rest of the deps 2022-10-15 13:06:10 +03:00
Laurențiu Nicola 119e1bafcc Bump notify 2022-10-15 13:03:39 +03:00
Laurențiu Nicola f5bbf9a06a Bump proc-macro2 2022-10-15 13:02:10 +03:00
Laurențiu Nicola 792920f441 Bump pulldown-cmark-to-cmark 2022-10-15 13:00:41 +03:00
Laurențiu Nicola 275848803b Bump mimalloc 2022-10-15 12:59:56 +03:00
Laurențiu Nicola 39777bf941 Bump rowan 2022-10-15 12:58:57 +03:00
Laurențiu Nicola 97eebbfab6 Bump url 2022-10-15 12:57:30 +03:00
Laurențiu Nicola e294640484 Bump libc 2022-10-15 12:55:56 +03:00
Laurențiu Nicola 3a5f6a705e Bump dashmap 2022-10-15 12:54:25 +03:00
Laurențiu Nicola 6e74a22918 Bump home 2022-10-15 12:53:26 +03:00
Laurențiu Nicola bb6990c4c9 Bump tracing 2022-10-15 12:52:34 +03:00
Laurențiu Nicola 50f990c46f Bump smallvec 2022-10-15 12:52:34 +03:00
Laurențiu Nicola cbce0cda08 Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
bors 018b8429cf Auto merge of #13415 - lnicola:ovsx-timeout, r=lnicola
internal: Set a timeout when publishing to OVSX

CC https://github.com/rust-lang/rust-analyzer/issues/11080#issuecomment-1279212120
2022-10-14 16:39:16 +00:00
Laurențiu Nicola f94d8d8940 Set a timeout when publishing to OVSX 2022-10-14 19:38:50 +03:00
bors af987dafcb Auto merge of #13414 - lnicola:bump-cache, r=lnicola
minor: Bump `Swatinem/rust-cache` to move off Node 12
2022-10-14 14:32:00 +00:00
Laurențiu Nicola d2d1c1e3ca Bump Swatinem/rust-cache to move off Node 12 2022-10-14 17:31:22 +03:00
bors 44fbe522e3 Auto merge of #13413 - rust-lang:revert-13367-fix-problem-matchers, r=jonas-schievink
Revert "fix: in VSCode, correctly resolve relative paths to errors"

Reverts rust-lang/rust-analyzer#13367

I didn't manage to figure out what exactly is the issue, so reverting this to fix https://github.com/rust-lang/rust-analyzer/issues/13404 before monday.
2022-10-14 07:32:44 +00:00
Jonas Schievink 55fdcbe339
Revert "fix: in VSCode, correctly resolve relative paths to errors" 2022-10-14 09:28:44 +02:00
bors 36a70b7435 Auto merge of #13401 - lnicola:opt-tests, r=lnicola
Run `analysis-stats` on CI, with `opt-level = 1`

We might want to run `analysis-stats` on PRs, and this makes it less unbearable.
2022-10-14 07:00:38 +00:00
Laurențiu Nicola 4adf09bc8a Run analysis-stats on CI 2022-10-13 13:57:15 +03:00
HKalbasi 58e5452a9b
fix formatting 2022-10-12 14:14:59 -07:00
HKalbasi 983ae1b1c9
Cast runnableEnv items to string 2022-10-12 20:40:49 +03:30
Laurențiu Nicola 82a8774a08 Avoid format! in favor of to_string 2022-10-12 17:44:15 +03:00
Laurențiu Nicola 73e91dda50 Set opt-level = 1 on dev profile 2022-10-12 17:44:15 +03:00
DropDemBits d7fb8d51d6 Migrate assists to format args captures, part 2 2022-10-12 02:23:35 -04:00
bors a0ab61fb6c Auto merge of #13358 - btwotwo:feature/env-vars-autocompletion, r=Veykril
feat: Autocomplete Cargo-defined env vars in `env!` and `option_env!` (#12448)

Closes #12448

Important to know:

- Variables are taken from https://doc.rust-lang.org/cargo/reference/environment-variables.html and hardcoded as a const array.
- For the sake of simplicity I didn't include the autocompletion of `CARGO_BIN_EXE_<name>` and `OUT_DIR` since it would require information about build.rs and binary name. If somebody knows an easy way of obtaining them I can add those vars as well :)
2022-10-11 18:45:31 +00:00
btwotwo 2b2b9f8c73
Formatting 2022-10-11 19:53:22 +02:00