Skip to content

tests/ui: allow spaces in hashbrown src normalization - #156211

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kupiakos:space-in-hashbrown-src-location
May 7, 2026
Merged

tests/ui: allow spaces in hashbrown src normalization#156211
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kupiakos:space-in-hashbrown-src-location

Conversation

@kupiakos

@kupiakos kupiakos commented May 5, 2026

Copy link
Copy Markdown
Contributor

If one's home directory contains a space, the default location for the hashbrown source location also contains a space, and so the UI test normalization in issue-21763 fails to normalize as expected.

While this new regex does not handle all valid paths, such as those beginning with \\?\ or \\name\, this handles most absolute UNIX and Windows paths. Relative paths don't seem to be applicable.

If one's home directory contains a space, the default location for the
hashbrown source location also contains a space, and so the UI test
normalization in issue-21763 fails to normalize as expected.

While this new regex does not handle all valid paths, such as those
beginning with `\\?\` or `\\name\`, this handles most absolute UNIX and
Windows paths. Relative paths don't seem to be applicable.
@rustbot

rustbot commented May 5, 2026

Copy link
Copy Markdown
Collaborator

This PR modifies tests/ui/issues/. If this PR is adding new tests to tests/ui/issues/,
please refrain from doing so, and instead add it to more descriptive subdirectories.

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

rustbot commented May 5, 2026

Copy link
Copy Markdown
Collaborator

r? @TaKO8Ki

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

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 19 candidates

@wesleywiser

Copy link
Copy Markdown
Member

Thanks @kupiakos!

@bors r+ rollup

@rust-bors

rust-bors Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

📌 Commit a8d85e6 has been approved by wesleywiser

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 May 6, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request May 6, 2026
…cation, r=wesleywiser

tests/ui: allow spaces in hashbrown src normalization

If one's home directory contains a space, the default location for the hashbrown source location also contains a space, and so the UI test normalization in issue-21763 fails to normalize as expected.

While this new regex does not handle all valid paths, such as those beginning with `\\?\` or `\\name\`, this handles most absolute UNIX and Windows paths. Relative paths don't seem to be applicable.
rust-bors Bot pushed a commit that referenced this pull request May 6, 2026
…uwer

Rollup of 3 pull requests

Successful merges:

 - #156251 (stdarch subtree update)
 - #156151 (Don't return dummy MacroData in `get_macro`)
 - #156211 (tests/ui: allow spaces in hashbrown src normalization)
@rust-bors
rust-bors Bot merged commit 2744cb7 into rust-lang:main May 7, 2026
11 checks passed
rust-timer added a commit that referenced this pull request May 7, 2026
Rollup merge of #156211 - kupiakos:space-in-hashbrown-src-location, r=wesleywiser

tests/ui: allow spaces in hashbrown src normalization

If one's home directory contains a space, the default location for the hashbrown source location also contains a space, and so the UI test normalization in issue-21763 fails to normalize as expected.

While this new regex does not handle all valid paths, such as those beginning with `\\?\` or `\\name\`, this handles most absolute UNIX and Windows paths. Relative paths don't seem to be applicable.
@rustbot rustbot added this to the 1.97.0 milestone May 7, 2026
@kupiakos
kupiakos deleted the space-in-hashbrown-src-location branch May 7, 2026 01:11
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Jun 8, 2026
…uwer

Rollup of 3 pull requests

Successful merges:

 - rust-lang/rust#156251 (stdarch subtree update)
 - rust-lang/rust#156151 (Don't return dummy MacroData in `get_macro`)
 - rust-lang/rust#156211 (tests/ui: allow spaces in hashbrown src normalization)
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.

4 participants