-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
reachable computation: extend explanation of what this does, and why #124904
Conversation
//! item. This obviously includes all public items. However, some of these items cannot be compiled | ||
//! to machine code (because they are generic), and for some the machine code is not sufficient |
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.
//! item. This obviously includes all public items. However, some of these items cannot be compiled | |
//! to machine code (because they are generic), and for some the machine code is not sufficient | |
//! item. This obviously includes all public items. However, some of these items cannot be lowered | |
//! (because they are generic), and for some the machine code is not sufficient |
🤷 I dislike mentioning "machine code" because a codegen backend can do things like emit JavaScript, but I don't have a particularly compelling alternative in mind.
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.
"lowered" is extremely vague, I don't think the term is precise enough for this discussion.
And we're still mentioning machine code later in the same sentence so I don't think anything is gained by this change.
I've pushed an alternative proposal.
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.
Makes sense, I like the alternative
I like everything else in here, except the one little thing I commented on. 👍 |
@bors r+ rollup=always |
Rollup of 5 pull requests Successful merges: - rust-lang#124233 (Add `-lmingwex` second time in `mingw_libs`) - rust-lang#124318 (ignore generics args in attribute paths) - rust-lang#124899 (bootstrap: add comments for the automatic dry run) - rust-lang#124904 (reachable computation: extend explanation of what this does, and why) - rust-lang#124930 (Make sure we consume a generic arg when checking mistyped turbofish) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124904 - RalfJung:reachable, r=tmiasko reachable computation: extend explanation of what this does, and why Follow-up to rust-lang#122769. I had the time to think about this some more, in particular in the context of rust-lang#119214, so I felt it was worth extending these comments some more. I also gave up on the context of "externally reachable" as it is not called that way anywhere else in the compiler. Cc `@tmiasko` `@saethlin`
Follow-up to #122769. I had the time to think about this some more, in particular in the context of #119214, so I felt it was worth extending these comments some more.
I also gave up on the context of "externally reachable" as it is not called that way anywhere else in the compiler.
Cc @tmiasko @saethlin