Conversation
When switching from `refutable: bool` to an Exhaustive enum, the description of which constructs are exhaustive was accidentally reversed. The comment about returning an "otherwise" block is also out-of-date.
After the removal of `ensure_sufficient_stack`, this inner method no longer needs to exist.
Adding the verb "lower" makes it clearer that this is where important MIR-building work happens.
Calling this step "link" is a better fit for the existing code and comments.
This avoids the need to allocate a one-element vector in a few cases.
…l, r=notriddle rustdoc: Fix `impl MyTrait for !` syntax highlighting Rustdoc's HTML syntax highlighting does not render trait implementations for the never type `!` correctly because it think it's a macro. ## Example https://doc.rust-lang.org/src/core/hash/mod.rs.html#871 <img alt="rustdoc example screenshot" src="https://github.com/user-attachments/assets/fb427962-6a52-40af-b8d1-fadf7d956ba0" /> ## My Fix I modified `src/librustdoc/html/highlight.rs`. It contains a `NON_MACRO_KEYWORDS` list which denotes keywords that should never be treated as a macro (even) when followed by a `!`. As far as I know, keywords are never valid macro identifiers, so I got rid of this list and the corresponding code. Maybe my thought process here was wrong, idk. Alternatively, `NON_MACRO_KEYWORDS` could simply be extended to include the `for` keyword, which would fix also this issue (I think).
…buginfo-attribute, r=clarfonthey Document the collapse_debuginfo attribute Documents the `collapse_debuginfo` built-in attribute in `library/core/src/attribute_docs.rs`. Part of rust-lang#157604
mir_build: Assorted small cleanups in match lowering This PR cleans up a few small things that I noticed while looking through the match lowering code. Each individual commit should hopefully be self-explanatory and uncontroversial. There should be no change to compiler output.
Member
Author
|
Rollup of everything. @bors r+ rollup=never p=5 force |
Contributor
This comment has been minimized.
This comment has been minimized.
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for ff259af failed: CI. Failed job:
|
Member
Author
|
Looks flaky. I’ll replace this with a larger rollup. |
Contributor
|
This pull request was unapproved due to being closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
impl MyTrait for !syntax highlighting #166538 (rustdoc: Fiximpl MyTrait for !syntax highlighting)r? @ghost
Create a similar rollup