Skip to content

Rollup of 4 pull requests - #166369

Merged
rust-bors[bot] merged 17 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-ggGH81G
Nov 23, 2026
Merged

rust-bors[bot] merged 17 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-ggGH81G

Conversation

@JonathanBrouwer

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

Jules-Bertholet and others added 17 commits November 3, 2026 15:27
Except `char::case` and `CharCase`.
since we'll introduce another comps in the next commit.
`components()` does non-trivial prefix-checking work on Windows.
Saves another round of prefix parsing. `self_comps` hasn't iterated, so `prefix_remaining` is always the same as `prefix_len`.
`is_absolute` causes another two prefix re-parsings, once each in `Path::has_root` and `Path::prefix`, but it's unnecessary:

`path.is_absolute() || path_comps.prefix.is_some()`

 expands to

`(path.has_root() && path.prefix().is_some()) || path_comps.prefix.is_some()`,

which simplifies to just the prefix check.

Pushing `C:foo` should clear, pushing `\foo` truncates to the existing prefix, just like on cygwin.
Both prefix checks are always true:

- `!prefix.parsed.is_drive()`
  - We are in the branch that already checked `comps.prefix_verbatim()`. Verbatim prefixes are never `Prefix::Disk`.
  - The pushed path can't have a prefix, since that would mean `need_clear` was true, at which point we wouldn't have to deal with merging verbatim paths in the first place :)
- `prefix.parsed.len() > 0`: prefixes are nonempty, and we're already in the `comps.prefix_verbatim()` branch.
now that the prefix() helper method isn't used in `_push` anymore, there are no callers left in the uefi builds.
Here the simplest way to avoid it just to honor the `split_block` function name and do a proper split which inserts a goto instead of taking the terminator out. This goto will then be replaced by adding later checks.
…r=Mark-Simulacrum

windows: remove redundant prefix parsing in `PathBuf::_push`

I noticed `PathBuf::_push` on Windows being 1.7 KiB big, on x86, even with `build-std` at `opt-level = "s"`.
After a bit of binary analysis I noticed 6 calls to `Path::components`, which, beyond the calls themselves, does nontrivial work (parsing prefixes) on Windows.

This PR drops the number of prefix parses down to the minimum of 2, one for `self`, one for `path`. All changes together dropped the size by about 400 bytes in my test (and just does less redundant work of course!).

Each reduction is described in more detail in the commit messages. The goal is to have zero behavioral differences in the PR, just reducing complexity and redundant work, I'd consider any edge case changing to be a bug/blocker.
…-check-enums-2, r=hanna-kruppe

Avoid terminator: None in check_enums in `split_block`

Another step towards changing `Option<Terminator>` to `Terminator` in `BasicBlockData`. More info in [this thread](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/vibe.20check.20-.20removing.20Option.20from.20Terminator/with/637588808).

The problem in this place is that there's multiple different checks (decided by branching on `EnumCheckType`), and one of them needs to insert two new blocks, so there's no nice way to group them together into one `push_with` call.

So I figured the simplest way to avoid the `None` here is just to honor the `split_block` function name and do a proper split which inserts a goto instead of taking the terminator out. This goto will then be replaced later when adding those checks.

r? hanna-kruppe
…s, r=maxdexh

Stabilize `char::is_case_ignorable`, `char::is_cased`, and the `titlecase` feature

`is_case_ignorable()` is tracked in rust-lang#154848, while `is_cased()` and `titlecase` are from rust-lang#153892. `char::case()` and `char::CharCase` are excluded.

## API summary

```rust
// core

impl char {
    pub fn is_cased(self) -> bool;
    pub fn is_case_ignorable(self) -> bool;
    pub fn is_titlecase(self) -> bool;
    pub fn to_titlecase(self) -> ToTitlecase;
}

mod char {
    struct ToTitlecase { ... }
    impl Iterator for ToTitlecase { ... }
    impl DoubleEndedIterator for ToTitlecase { ... }
    impl FusedIterator for ToTitlecase { }
    impl ExactSizeIterator for ToTitlecase { ... }
    impl fmt::Display for ToTitlecase { ... }
}
```

Together, these provide all the Unicode data necessary to implement string lowercasing, as needed by crates like https://github.com/VoidStarKat/widestring-rs.

---

Closes rust-lang#154848

@rustbot label A-Unicode T-libs I-libs-nominated needs-fcp
Rc/Arc::ptr_eq ignore the metadata of all wide pointers

I don't know why the docs specifically mention `dyn Trait` pointers, but that seems just wrong -- the length of slices is ignored as well. This seems like a mistake that was introduced in rust-lang#106450.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 22, 2026
@rustbot rustbot added A-path Area: `std::path` (note: `std::fs` is A-filesystem) A-rc Area: `Rc` and `Arc` A-str Area: `str` and `String` 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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 22, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

@rust-bors

rust-bors Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

📌 Commit e56c717 has been approved by JonathanBrouwer

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 Nov 22, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

Trying commonly failed jobs
@bors try jobs=dist-various-1,dist-various-2,test-various,test-x86_64-gnu-aux,test-x86_64-msvc-1,test-aarch64-apple-1,test-aarch64-apple-2,test-x86_64-mingw-1,test-i686-msvc,test-armhf-gnu,test-x86_64-gnu-llvm-22-3,test-aarch64-msvc-2

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
Rollup of 4 pull requests


try-job: dist-various-1
try-job: dist-various-2
try-job: test-various
try-job: test-x86_64-gnu-aux
try-job: test-x86_64-msvc-1
try-job: test-aarch64-apple-1
try-job: test-aarch64-apple-2
try-job: test-x86_64-mingw-1
try-job: test-i686-msvc
try-job: test-armhf-gnu
try-job: test-x86_64-gnu-llvm-22-3
try-job: test-aarch64-msvc-2
@rust-bors

rust-bors Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: f62488d (f62488d949081494671ca93388c43ff0e0c67bc2)
Base parent: ce66487 (ce66487ebbd7541212d22d01c39a808057d69f1f)

@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 23, 2026
@rust-bors

rust-bors Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 20m 40s
Pushing fde8dfd to main...

@rust-bors
rust-bors Bot merged commit fde8dfd into rust-lang:main Nov 23, 2026
16 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor
What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 137d1d4 (parent) -> fde8dfd (this PR)

Test differences

Show 472 test diffs

472 doctest diffs were found. These are ignored, as they are noisy.

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard fde8dfd638478da758f93f0e8d9b74d7907f0c9e --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. dist-sparcv9-solaris: 1h 8m -> 1h 44m (+51.4%)
  2. test-x86_64-gnu-nopt: 1h 41m -> 2h 32m (+49.9%)
  3. test-x86_64-gnu-llvm-22-1: 1h 24m -> 45m 28s (-46.2%)
  4. test-x86_64-gnu: 2h 43m -> 1h 28m (-45.8%)
  5. dist-x86_64-llvm-mingw: 2h 6m -> 1h 14m (-41.1%)
  6. test-x86_64-msvc-1: 2h 49m -> 1h 40m (-40.6%)
  7. test-x86_64-gnu-aux: 2h 48m -> 1h 45m (-37.3%)
  8. test-x86_64-msvc-ext2: 1h 39m -> 1h 2m (-37.0%)
  9. test-x86_64-gnu-distcheck: 2h 38m -> 1h 39m (-37.0%)
  10. dist-loongarch64-musl: 2h 5m -> 1h 21m (-34.9%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (fde8dfd): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.1%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

Results (primary 2.5%, secondary -1.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.5% [2.5%, 2.6%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-1.1% [-1.1%, -1.1%] 1
All ❌✅ (primary) 2.5% [2.5%, 2.6%] 2

Binary size

Results (primary 0.0%, secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 4
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 40
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.0%] 4

Bootstrap: 460.451s -> 460.128s (-0.07%)
Artifact size: 405.75 MiB -> 405.77 MiB (0.00%)

@rust-bors

rust-bors Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#165720 windows: remove redundant prefix parsing in PathBuf::_push 88369f2e8e487e4a84bada92e565c94ef192e61c
(link)
#166243 Avoid terminator: None in check_enums in split_block 4806b12b228992b79ad197ff343d0f28e9e8db8b
(link)
#165434 Stabilize char::is_case_ignorable, char::is_cased, and … 1b4420e46fd569c290400c683cd58265bc164bc8
(link)
#166144 Rc/Arc::ptr_eq ignore the metadata of all wide pointers 02d720ab3389253005ed79544de6ea8512a7376d
(link)

parent commit: 137d1d4945

In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: @rust-timer triage $SHA $SHA $SHA..., or run @rust-timer triage all to benchmark all rollup members.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-path Area: `std::path` (note: `std::fs` is A-filesystem) A-rc Area: `Rc` and `Arc` A-str Area: `str` and `String` merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants