Skip to content

Conversation

edwin0cheng
Copy link
Contributor

@edwin0cheng edwin0cheng commented Mar 9, 2020

This PR add three things :

  1. Add get and set in Env.
  2. Implement fixture meta for with_single_file.
  3. Add env meta in fixture.

@matklad
Copy link
Contributor

matklad commented Mar 10, 2020

bors r+

@edwin0cheng
Copy link
Contributor Author

rebased.

bors retry

@bors
Copy link
Contributor

bors bot commented Mar 10, 2020

@bors bors bot merged commit 6b9d66b into rust-lang:master Mar 10, 2020
@edwin0cheng edwin0cheng deleted the single-file-meta branch March 10, 2020 17:05
bors bot added a commit that referenced this pull request Mar 11, 2020
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants