-
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
Document everybody_loops
#82617
Document everybody_loops
#82617
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
f371fc2
to
bd203df
Compare
/// * `const fn`; support could be added, but hasn't. Originally `const fn` | ||
/// was skipped due to issue #43636 that `loop` was not supported for | ||
/// const evaluation. |
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.
Do you want to add support here? I think it would be as simple as removing within_static_or_const
and https://github.com/rust-lang/rust/blob/bd203dfe0a70bd4c5fe3927b16ed75d3d0e13b2c/compiler/rustc_interface/src/util.rs#L865.
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.
Probably makes sense to do that in a separate PR since it would require signoff on the change.
compiler/rustc_interface/src/util.rs
Outdated
/// Since [#73566], rustdoc no longer runs `everybody_loops`. As of February 2021, | ||
/// `everybody_loops` is only run for the `-Z unpretty=everybody_loops` CLI option. |
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.
Does this need to be mentioned? This seems only of historical interest, and you can find it easily with git or a google search.
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.
This seems only of historical interest, and you can find it easily with git or a google search.
I wanted to make it clear that it's only used for debugging. Someone reading the code might not think of or might not want to spend the time of doing a search.
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.
Ok, then I would say something like "This is used for the -Z unpretty=everybody_loops
debugging pass"`. I don't think you need to mention rustdoc.
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.
Personally, I would still prefer to mention rustdoc, but it doesn't matter that much so I removed the sentence about rustdoc :)
This comment has been minimized.
This comment has been minimized.
bd203df
to
9f18254
Compare
r? @jyn514 |
9f18254
to
1814923
Compare
1814923
to
8164a74
Compare
@bors r+ cc @pnkfelix, you might be interested in adding support for |
📌 Commit 8164a74 has been approved by |
Rollup of 10 pull requests Successful merges: - rust-lang#81465 (Add documentation about formatting `Duration` values) - rust-lang#82121 (Implement Extend and FromIterator for OsString) - rust-lang#82617 (Document `everybody_loops`) - rust-lang#82789 (Get with field index from pattern slice instead of directly indexing) - rust-lang#82798 (Rename `rustdoc` to `rustdoc::all`) - rust-lang#82804 (std: Fix a bug on the wasm32-wasi target opening files) - rust-lang#82943 (Demonstrate best practice for feeding stdin of a child processes) - rust-lang#83066 (Add `reverse` search alias for Iterator::rev()) - rust-lang#83070 (Update cargo) - rust-lang#83081 (Fix panic message of `assert_failed_inner`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
cc @jyn514