Skip to content

misc doc improvements#152206

Merged
rust-bors[bot] merged 7 commits intorust-lang:mainfrom
tshepang:misc
Feb 17, 2026
Merged

misc doc improvements#152206
rust-bors[bot] merged 7 commits intorust-lang:mainfrom
tshepang:misc

Conversation

@tshepang
Copy link
Member

@tshepang tshepang commented Feb 6, 2026

These are things I collected as I was looking at code and docs

@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 Feb 6, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 6, 2026

r? @davidtwco

rustbot has assigned @davidtwco.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • People who recently interacted with files modified in this PR: compiler, types
  • compiler, types expanded to 22 candidates
  • Random selection from 13 candidates

@rust-log-analyzer

This comment has been minimized.

@lqd
Copy link
Member

lqd commented Feb 6, 2026

I’m slightly confused as this PR seems to be mostly adding newlines and commas? We already don’t accept typo fixes because they’re not user-facing and not worth the churn.


/// Some features are not allowed to be used together at the same time, if
/// the two are present, produce an error.
/// Some features are not allowed to be used together at the same time
Copy link
Member

Choose a reason for hiding this comment

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

This just seems worse?

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines 3 to 4
The Rust compiler maintains a list of unsupported ABIs on for each target.
If an ABI is present in such a list, this usually means that the
Copy link
Member

Choose a reason for hiding this comment

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

The new text has errors (“on for”), and seems less clear than the original.

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines -102 to +107
/// A pattern newtype. Takes any type and restricts its valid values to its pattern.
/// A pattern newtype.
///
/// Takes any type and restricts its valid values to its pattern.
Copy link
Contributor

@apiraino apiraino Feb 6, 2026

Choose a reason for hiding this comment

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

I am confused by changes like this one.

@tshepang I appreciate your interest in improving our texts (see also your patches elsewhere in the project), but do you think we really need to spend time on nits like these? Can we maybe set a lower bound under which your time (authoring) plus our time (reviewing) is not worth the effort?

just a thought.

Copy link
Member Author

Choose a reason for hiding this comment

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

I should have mentioned that it's better reviewed a commit at a time, since each commit message justifies the change

@tshepang
Copy link
Member Author

tshepang commented Feb 7, 2026

I’m slightly confused as this PR seems to be mostly adding newlines and commas? We already don’t accept typo fixes because they’re not user-facing and not worth the churn.

These are a collection of things I fixed when learning how things work. I also decided to not submit them individually since I have seen complaints that such things are too tiny them being their own PRs.

Also, here is the guideline, and I have seen it not applied consistently:

Please notice that at this time we don’t accept typography/spellcheck fixes to internal documentation (usually not worth the churn or the review time) or in our testsuite (they could inadvertently cause code regressions).

I also once asked for clarification on what user-facing means, and that was not answered... perhaps because it was obvious to them. I would think doc-comments are user-facing.

The comma changes are readability improvements... they don't count as typos I think.

Someone once offered they would be happy accepting such PRs, so I should probably search for their name and assign such PRs them to them, so I don't bother people who don't see such work as valuable enough.

@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 7, 2026

user-facing means its something that a user of the rust language will see. doc comments in the compiler are not something that rust users will ever encounter so aren't user facing, whereas standard library documentation is

Copy link
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

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

Happy to approve this, these are harmless minor improvements

View changes since this review

@davidtwco
Copy link
Member

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 16, 2026

📌 Commit 3be2843 has been approved by davidtwco

It is now in the queue for this repository.

@rust-bors rust-bors bot 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 Feb 16, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 16, 2026
misc doc improvements

These are things I collected as I was looking at code and docs
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 16, 2026
misc doc improvements

These are things I collected as I was looking at code and docs
rust-bors bot pushed a commit that referenced this pull request Feb 16, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #152700 (miri subtree update)
 - #152715 (`rust-analyzer` subtree update)
 - #152609 (Install LLVM DLL in the right place on Windows)
 - #152206 (misc doc improvements)
 - #152664 (Fix mis-constructed `file_span` when generating scraped examples)
 - #152698 (Suppress unstable-trait notes under `-Zforce-unstable-if-unmarked`)
rust-bors bot pushed a commit that referenced this pull request Feb 16, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #152700 (miri subtree update)
 - #152715 (`rust-analyzer` subtree update)
 - #152609 (Install LLVM DLL in the right place on Windows)
 - #152206 (misc doc improvements)
 - #152664 (Fix mis-constructed `file_span` when generating scraped examples)
 - #152698 (Suppress unstable-trait notes under `-Zforce-unstable-if-unmarked`)
rust-bors bot pushed a commit that referenced this pull request Feb 17, 2026
Rollup of 11 pull requests

Successful merges:

 - #152700 (miri subtree update)
 - #152715 (`rust-analyzer` subtree update)
 - #151783 (Implement RFC 3678: Final trait methods)
 - #152512 (core: Implement feature `float_exact_integer_constants`)
 - #152661 (Avoid ICE in From/TryFrom diagnostic under -Znext-solver)
 - #152703 (Remove `rustc_query_system`)
 - #152206 (misc doc improvements)
 - #152664 (Fix mis-constructed `file_span` when generating scraped examples)
 - #152698 (Suppress unstable-trait notes under `-Zforce-unstable-if-unmarked`)
 - #152727 (`probe_op` silence ambiguity errors if tainted)
 - #152728 (Port #![default_lib_allocator] to the new attribute parser)
@rust-bors rust-bors bot merged commit 910d4f4 into rust-lang:main Feb 17, 2026
11 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 17, 2026
rust-timer added a commit that referenced this pull request Feb 17, 2026
Rollup merge of #152206 - tshepang:misc, r=davidtwco

misc doc improvements

These are things I collected as I was looking at code and docs
@tshepang tshepang deleted the misc branch February 17, 2026 09:28
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.

8 participants