Skip to content

Fix comment on is_horizontal_whitespace#153385

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
traviscross:TC/fix-frontmatter-whitespace-comment
Mar 5, 2026
Merged

Fix comment on is_horizontal_whitespace#153385
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
traviscross:TC/fix-frontmatter-whitespace-comment

Conversation

@traviscross
Copy link
Contributor

The comment on is_horizontal_whitespace says "This is Pattern_White_Space", but the function matches only tab (U+0009) and space (U+0020) -- two of the eleven Pattern_White_Space code points. This has been the case since #146106, which narrowed the set from full Pattern_White_Space to the horizontal subset.

The correct characterization is that this is the horizontal space subset of Pattern_White_Space, as categorized by UAX 31, Section 4.1, which partitions Pattern_White_Space into line endings, ignorable format controls, and horizontal space.

r? fee1-dead (reviewer on #146106)

cc @ehuss @epage

@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 Mar 4, 2026
@rustbot

This comment was marked as resolved.

The comment on `is_horizontal_whitespace` says "This is
Pattern_White_Space", but the function matches only tab (U+0009) and
space (U+0020) -- two of the eleven `Pattern_White_Space` code points.
This has been the case since Rust PR 146106, which narrowed the set
from full `Pattern_White_Space` to the horizontal subset.

The correct characterization is that this is the horizontal space
subset of `Pattern_White_Space`, as categorized by UAX 31,
Section 4.1, which partitions `Pattern_White_Space` into line endings,
ignorable format controls, and horizontal space.
@traviscross traviscross force-pushed the TC/fix-frontmatter-whitespace-comment branch from b66e34d to fe71b66 Compare March 4, 2026 06:11
@Kivooeo
Copy link
Member

Kivooeo commented Mar 4, 2026

@bors r=Kivooeo,epage rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 4, 2026

📌 Commit fe71b66 has been approved by Kivooeo,epage

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 1000. This pull request will be tested once the tree is reopened.

@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 Mar 4, 2026
rust-bors bot pushed a commit that referenced this pull request Mar 5, 2026
…uwer

Rollup of 8 pull requests

Successful merges:

 - #153361 (enable `PassMode::Indirect { on_stack: true, .. }` tail call arguments)
 - #153369 (library/test: always enable unstable features for miri)
 - #152283 (Properly pass offload sizes to kernel args)
 - #153323 (Remove `impl QueryVTable`)
 - #153385 (Fix comment on `is_horizontal_whitespace`)
 - #153394 (fix(thir): Include `NoneWithError` in Enum Struct Tail Assertion)
 - #153419 (rustc_llvm: add missing `-` to flag-comparison logic)
 - #153423 (Update dispatch2 to v0.3.1)
@rust-bors rust-bors bot merged commit 4675a29 into rust-lang:main Mar 5, 2026
11 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 5, 2026
rust-timer added a commit that referenced this pull request Mar 5, 2026
Rollup merge of #153385 - traviscross:TC/fix-frontmatter-whitespace-comment, r=Kivooeo,epage

Fix comment on `is_horizontal_whitespace`

The comment on `is_horizontal_whitespace` says "This is Pattern_White_Space", but the function matches only tab (U+0009) and space (U+0020) -- two of the eleven `Pattern_White_Space` code points. This has been the case since #146106, which narrowed the set from full `Pattern_White_Space` to the horizontal subset.

The correct characterization is that this is the horizontal space subset of `Pattern_White_Space`, as categorized by UAX 31, Section 4.1, which partitions `Pattern_White_Space` into line endings, ignorable format controls, and horizontal space.

r? fee1-dead (reviewer on #146106)

cc @ehuss @epage
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.

5 participants