Skip to content
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

Merged
merged 1 commit into from May 11, 2024

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented May 8, 2024

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

@rustbot
Copy link
Collaborator

rustbot commented May 8, 2024

r? @fmease

rustbot has assigned @fmease.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 8, 2024
Comment on lines 6 to 7
//! 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//! 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.

Copy link
Member Author

@RalfJung RalfJung May 9, 2024

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.

Copy link
Member

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

@saethlin
Copy link
Member

saethlin commented May 9, 2024

I like everything else in here, except the one little thing I commented on. 👍

@tmiasko
Copy link
Contributor

tmiasko commented May 10, 2024

@bors r+ rollup=always

@bors
Copy link
Contributor

bors commented May 10, 2024

📌 Commit fd2af9b has been approved by tmiasko

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 10, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request May 11, 2024
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
@bors bors merged commit d8bf3fd into rust-lang:master May 11, 2024
6 checks passed
@rustbot rustbot added this to the 1.80.0 milestone May 11, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 11, 2024
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`
@RalfJung RalfJung deleted the reachable branch May 11, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants