-
Notifications
You must be signed in to change notification settings - Fork 550
Adjust some doc for Query System #2465
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
Conversation
Thanks for the PR. If you have write access, feel free to merge this PR if it does not need reviews. You can request a review using |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: xizheyin <[email protected]>
r? rustc-dev-guide |
[`wasm_import_module_map`][wasm_import_module_map], that `rustc_driver` can invoke. | ||
1. Implement the provider function: | ||
```rust,ignore | ||
fn fubar<'tcx>(tcx: TyCtxt<'tcx>, key: DefId) -> Fubar<'tcx> { ... } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do this change in a future pr
fn fubar<'tcx>(tcx: TyCtxt<'tcx>, key: DefId) -> Fubar<'tcx> { ... } | |
fn fubar<'tcx>(tcx: TyCtxt<'tcx>, key: LocalDefId) -> Fubar<'tcx> { ... } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, I see we now have ExternProvider
as well (since rust-lang/rust#85830)... would you be able to adjust docs to account for it @xizheyin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem, I'm just working on this pr rust-lang/rust#142450, which involves extern providers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright... feel free to modify rdg there as well, to avoid having to open a separate pr here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the changes to rdg could only be made here. It seems that I can submit other improvements in rust-lang/rust in the future.
But for this improvement, I think it would be better to submit it here, because rust-lang/rust may take time to synchronize.
This PR improves the documentation for the rustc query system.
Providers