diff options
| author | bors <bors@rust-lang.org> | 2021-07-02 20:00:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-02 20:00:51 +0000 |
| commit | 798baebde1fe77e5a660490ec64e727a5d79970d (patch) | |
| tree | 271df8bcac32ffd8ffd2d52d4a56f0094cecdcbf /compiler/rustc_expand/src/proc_macro_server.rs | |
| parent | 2545459bff0aae43288e2e17bff0d332c49a6353 (diff) | |
| parent | 1b136323dcd219241bf8b8949f50992a83b28954 (diff) | |
| download | rust-798baebde1fe77e5a660490ec64e727a5d79970d.tar.gz rust-798baebde1fe77e5a660490ec64e727a5d79970d.zip | |
Auto merge of #86817 - JohnTitor:rollup-rcysc95, r=JohnTitor
Rollup of 7 pull requests Successful merges: - #84029 (add `track_path::path` fn for usage in `proc_macro`s) - #85001 (Merge `sys_common::bytestring` back into `os_str_bytes`) - #86308 (Docs: clarify that certain intrinsics are not unsafe) - #86796 (Add a regression test for issue-70703) - #86803 (Remove & from Command::args calls in documentation) - #86807 (Fix double import in wasm thread ) - #86813 (Add a help message to `unused_doc_comments` lint) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_expand/src/proc_macro_server.rs')
| -rw-r--r-- | compiler/rustc_expand/src/proc_macro_server.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs index 92315c4d4f6..1d73002710d 100644 --- a/compiler/rustc_expand/src/proc_macro_server.rs +++ b/compiler/rustc_expand/src/proc_macro_server.rs @@ -411,6 +411,10 @@ impl server::FreeFunctions for Rustc<'_> { fn track_env_var(&mut self, var: &str, value: Option<&str>) { self.sess.env_depinfo.borrow_mut().insert((Symbol::intern(var), value.map(Symbol::intern))); } + + fn track_path(&mut self, path: &str) { + self.sess.file_depinfo.borrow_mut().insert(Symbol::intern(path)); + } } impl server::TokenStream for Rustc<'_> { |
