-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add track_path::path
fn for usage in proc_macro
s
#84029
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matthewjasper (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
Emits I'd appreciate some bikeshedding on better naming in general, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9214959
to
11f646a
Compare
@drahnr But what is the purpose of the
|
I think it's ok to add an interface like In #73921 (comment) I mentioned more high level interfaces for reading files as token streams (and simultaneously tracking them, of course). |
Thanks for your feedback @petrochenkov !
Reasoning was mostly to get started with the
I was taking the case into consideration where a shared crate is used, both in context of an regular application and a proc_macro. In the library context itself the shared code static libarary context, Case example: https://github.com/djc/askama/blob/main/askama_shared/src/generator.rs#L796-L799 |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
This comment has been minimized.
This comment has been minimized.
@rustbot label -S-waiting-on-author +S-waiting-on-review |
This comment has been minimized.
This comment has been minimized.
Looks like it needs |
I guess the moral of the story is that you really have to test locally, otherwise landing a PR turns into an attrition warfare. |
While I ran the tidy before the last set of nits, it's on me, failing to follow the guide to re-run the test + tidy checks. |
@rustbot label -S-waiting-on-author +S-waiting-on-review |
Thanks! |
📌 Commit 67e6a81 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#84029 (add `track_path::path` fn for usage in `proc_macro`s) - rust-lang#85001 (Merge `sys_common::bytestring` back into `os_str_bytes`) - rust-lang#86308 (Docs: clarify that certain intrinsics are not unsafe) - rust-lang#86796 (Add a regression test for issue-70703) - rust-lang#86803 (Remove & from Command::args calls in documentation) - rust-lang#86807 (Fix double import in wasm thread ) - rust-lang#86813 (Add a help message to `unused_doc_comments` lint) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Adds a way to declare a dependency on external files without including them, to either re-trigger the build of a file as well as covering the use case of including dependencies within the
rustc
invocation, such that tools likesccache
/cachepot
are able to handle references to external files which are not included.Ref #73921