Repository navigation
Rollup of 4 pull requests - #166369
Rollup of 4 pull requests#166369
Conversation
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.
|
@bors r+ p=5 force |
|
Trying commonly failed jobs |
This comment has been minimized.
This comment has been minimized.
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
This comment has been minimized.
This comment has been minimized.
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 differencesShow 472 test diffs472 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard fde8dfd638478da758f93f0e8d9b74d7907f0c9e --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (fde8dfd): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (primary 2.5%, secondary -1.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.0%, secondary 0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 460.451s -> 460.128s (-0.07%) |
|
📌 Perf builds for each rolled up PR:
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: |
Successful merges:
PathBuf::_push#165720 (windows: remove redundant prefix parsing inPathBuf::_push)split_block#166243 (Avoid terminator: None in check_enums insplit_block)char::is_case_ignorable,char::is_cased, and thetitlecasefeature #165434 (Stabilizechar::is_case_ignorable,char::is_cased, and thetitlecasefeature)r? @ghost
Create a similar rollup