Laurențiu Nicola
c15c22139f
Make Debug less verbose for VfsPath and use Display in analysis-stats
2020-06-24 14:07:03 +03:00
Aleksey Kladov
dad1333b48
New VFS
2020-06-23 17:51:06 +02:00
Aleksey Kladov
663ce0e99d
Remove dead code
2020-06-11 13:34:09 +02:00
Aleksey Kladov
27ebe5d33e
Reduce OUT_DIR special casing
2020-06-10 12:08:35 +02:00
Paul Daniel Faria
9c35f135b9
Remove default_cfg_options, pass target instead so it can be used for building cargo workspaces
2020-06-08 10:23:29 -04:00
Paul Daniel Faria
3937b225e7
Change management of test cfg to better support json projects
2020-06-07 10:29:03 -04:00
Aleksey Kladov
8baa4c5d07
Groundwork for specifying the set of projects via config
2020-06-03 12:22:01 +02:00
Aleksey Kladov
03a76191a1
Rename ProjectRoot -> ProjectManifest
2020-06-03 12:05:50 +02:00
Aleksey Kladov
c847c079fd
Add AssistConfig
2020-05-19 20:28:27 +02:00
Pavan Kumar Sunkara
9f0a7eb97b
Make some stuff public so that they can be reused by other tools
2020-05-14 11:14:46 +02:00
Christophe MASSOLIN
14dde99627
Pass cargo.target to rustc
2020-05-05 18:15:13 +02:00
Aleksey Kladov
b1d5817dd1
Convert code to text-size
2020-04-25 11:59:18 +02:00
Aleksey Kladov
27dd0086ea
Fully get rid of SyntaxNodePtr::range
2020-04-23 21:23:36 +02:00
veetaha
d3019164dc
ra_proc_macro: cleanups here and there
2020-04-20 21:37:02 +03:00
bors[bot]
f8016b8194
Merge #3996
...
3996: Fix path for proc-macro in nightly / stable release r=matklad a=edwin0cheng
I messed up that I forget we use different executable names for nightly / stable release, I changed to use the current executable name instead.
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-04-17 09:31:57 +00:00
Edwin Cheng
ef6ee16006
Fix path for proc-macro in nightly / stable build
2020-04-17 04:45:03 +08:00
bors[bot]
8d296be109
Merge #3995
...
3995: Separate project discovery from project loading r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2020-04-16 20:36:19 +00:00
Aleksey Kladov
422ae477ce
Unmix error handling when discovering workspaces
...
Hitting an io::Error is a legit problem. Finding more than one
Cargo.toml is not.
2020-04-16 22:35:50 +02:00
Aleksey Kladov
be2654b0ed
Decouple project loading from project discovery a bit
2020-04-16 22:02:10 +02:00
Edwin Cheng
177becea98
Add proc-macro cli command for rust-analyzer
2020-04-16 21:13:57 +08:00
Edwin Cheng
a4b0ce07f8
Add config for proc_macro
2020-04-16 19:28:06 +08:00
Edwin Cheng
22e33f308a
Add with-proc-macro in bench ,stats and diagnositcs
2020-04-16 19:27:44 +08:00
Josh Mcguigan
6be972770e
diagnostics cli, iterate over members
2020-04-14 16:26:03 -07:00
Josh Mcguigan
f9701efbe7
cli diagnostics walk files
2020-04-14 04:35:34 -07:00
Josh Mcguigan
f62c73a972
add diagnostics subcommand to rust-analyzer CLI
2020-04-13 18:40:41 -07:00
Aleksey Kladov
0aece75cdd
Remove dead code
2020-04-11 19:36:31 +02:00
Edwin Cheng
73e512215a
Fix non canonicallized path for crate file
2020-04-11 18:12:50 +08:00
veetaha
6190caeeae
Migrate to privacy as per review commets
2020-04-02 21:09:03 +03:00
veetaha
b7d5172f69
Simpify workspace handling
2020-04-02 21:07:05 +03:00
Aleksey Kladov
4936abdd49
Reduce scope of deserialization
2020-04-01 18:51:16 +02:00
Aleksey Kladov
569f47e427
Better names for config structs
2020-03-31 16:05:25 +02:00
Aleksey Kladov
311cbbdad5
Remove some unwraps
2020-03-28 12:27:54 +01:00
Edwin Cheng
d0b6ed4441
Add ProcMacroClient
2020-03-26 03:29:45 +08:00
Emil Lauridsen
f84deffd72
Support loading OUT_DIR for CLI runs
2020-03-17 14:47:05 +01:00
Emil Lauridsen
f5a2fcf8f5
Change existing OUT_DIR override config to make use of new infrastructure
2020-03-17 14:47:05 +01:00
Emil Lauridsen
33c6c7abc6
Support loading OUT_DIR from cargo check at launch
2020-03-17 14:47:05 +01:00
bors[bot]
c48dcf7411
Merge #3549
...
3549: Implement env! macro r=matklad a=edwin0cheng
This PR implements `env!` macro by adding following things:
1. Added `additional_outdirs` settings in vscode. (naming to be bikeshed)
2. Added `ExternSourceId` which is a wrapping for SourceRootId but only used in extern sources. It is because `OUT_DIR` is not belonged to any crate and we have to access it behind an `AstDatabase`.
3. This PR does not implement the `OUT_DIR` parsing from `cargo check`. I don't have general design about this, @kiljacken could we reuse some cargo watch code for that ?
~~Block on [#3536 ]~~
PS: After this PR , we (kind of) completed the `include!(concat!(env!('OUT_DIR'), "foo.rs")` macro call combo. [Exodia Obliterate!](https://www.youtube.com/watch?v=RfqNH3FoGi0 )
Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
2020-03-11 10:51:07 +00:00
Aleksey Kladov
14094e4477
Move FeatureFlags
2020-03-10 18:56:15 +01:00
Aleksey Kladov
bf582e77d6
Pull completion options up to the rust-analyzer
2020-03-10 18:47:09 +01:00
Edwin Cheng
e00a1e0b79
Setup Env in world
2020-03-11 01:06:01 +08:00
Kirill Bulatov
5cffef56e2
Consider crate declaration names
2020-03-08 23:00:50 +02:00
Aleksey Kladov
fb5891c433
Source map returns a result
...
cc #2236
2020-03-06 14:44:44 +01:00
Aleksey Kladov
a1e1869554
Rename ast::ImplBlock -> ast::ImplDef
2020-02-29 21:33:15 +01:00
Florian Diebold
5fe220b987
Fix a common false-positive type mismatch
...
E.g. for `&{ some_string() }` in a context where a `&str` is expected, we
reported a mismatch inside the block. The problem is that we're passing an
expectation of `str` down, but the expectation is more of a hint in this case.
There's a long comment in rustc about this, which I just copied.
Also, fix reported location for type mismatches in macros.
2020-02-29 15:31:07 +01:00
Kirill Bulatov
b8ddcb0652
Run cargo +nightly fix --clippy -Z unstable-options
2020-02-18 16:03:08 +02:00
Aleksey Kladov
865759925b
Rename folder
2020-02-18 12:37:45 +01:00