rust-analyzer/crates/ra_hir_ty/src
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
..
infer Resolve Self::AssocTy in impls 2020-03-06 18:14:39 +01:00
tests Add and fix tests 2020-03-11 01:06:01 +08:00
traits Drop larlpop-intern dep 2020-03-03 07:57:16 +02:00
autoderef.rs Clippy lints 2019-12-20 15:14:30 -05:00
db.rs Normalize waiting queries names 2020-03-07 00:18:04 +01:00
diagnostics.rs More manual clippy fixes 2020-02-18 16:12:37 +02:00
display.rs Move hir_fmt code to display module 2020-02-14 15:01:42 +01:00
expr.rs Source map returns a result 2020-03-06 14:44:44 +01:00
infer.rs Normalize waiting queries names 2020-03-07 00:18:04 +01:00
lib.rs Normalize waiting queries names 2020-03-07 00:18:04 +01:00
lower.rs Resolve Self::AssocTy in impls 2020-03-06 18:14:39 +01:00
marks.rs Merge #3147 2020-02-14 20:32:55 +00:00
method_resolution.rs Fix completion with a partially unknown type 2020-03-10 21:02:13 +01:00
op.rs More manual clippy fixes 2020-02-18 16:12:37 +02:00
primitive.rs Doc primitives 2019-11-26 15:41:48 +03:00
test_db.rs Add resolve_extern_path in DB 2020-03-11 01:06:01 +08:00
tests.rs Source map returns a result 2020-03-06 14:44:44 +01:00
traits.rs Use Index for CrateGraph 2020-03-09 11:11:59 +01:00
utils.rs Rework find_super_trait_path to protect against cycles 2020-02-22 13:14:39 +01:00