-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Some rustc_middle
cleanups
#136465
base: master
Are you sure you want to change the base?
Some rustc_middle
cleanups
#136465
Conversation
`rustc_middle` and `rustc_query_system` both have a file called `dep_node.rs` with a big comment at the top, and the comments are very similar. The one in `rustc_query_system` looks like the original, and the one in `rustc_middle` is a copy with some improvements. This commit removes the comment from `rustc_middle` and updates the one in `rustc_query_system` to include the improvements. I did it this way because `rustc_query_system` is the crate that defines `DepNode`, and so seems like the right place for the comment.
The same comments are on the `DepNodeExt` trait and the single impl of that trait, immediately below. This commit eliminates the duplication.
It has a single call site and removing it makes the code simpler. Perhaps there were more uses at some point in the past?
The `field_name`/`field_ty` don't need to be parameters, they can be hardcoded.
- Mention THIR. - Removed mentions of non-existent READMEs.
I *think* this addresses what the `FIXME` comments are asking for.
The job Click to see the possible cause of the failure (guessed by this bot)
|
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.
Thanks, one nit, but otherwise LGTM
@@ -47,10 +47,8 @@ | |||
#![feature(extract_if)] | |||
#![feature(file_buffered)] | |||
#![feature(if_let_guard)] | |||
#![feature(intra_doc_pointers)] |
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.
Might need this because the doc comment uses this?
Small cleanups I found while looking closely at this code.
r? @jieyouxu