Skip to content

chore(lane): daily maintenance 2026-10-17 - #126

Merged
kirillDevPro merged 1 commit into
masterfrom
lane/daily-2026-10-17
Oct 17, 2026
Merged

kirillDevPro merged 1 commit into
masterfrom
lane/daily-2026-10-17

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

Fix

Filed by the fix lane.

Fixes #123

  • RelPath::file_stem splits a POSIX file name at a backslash on Windows hosts #123: rel_path::rel_path_tests::file_stem_uses_the_relative_file_name_on_every_host and rel_path::rel_path_tests::extension_uses_the_relative_file_name_on_every_host failed on Windows before the change (file_stem() of dir/a\b.rs was Some("b"), extension() of dir/a.d\b was None) and pass now. RelPath::file_stem / extension now split the last / component by std's dot rules instead of going through the host Path. Re-run: cargo test -p moon-util --lib uses_the_relative_file_name.

Reviewer: Codex. Its one objection (a foo.rs/ value built by RelPathBuf::push(RelPath::empty()) would have lost its stem) is addressed: the split skips the empty trailing component as Path::file_name does.


…ery host

Filed by the fix lane.

Fixes #123

- #123: `rel_path::rel_path_tests::file_stem_uses_the_relative_file_name_on_every_host`
  and `rel_path::rel_path_tests::extension_uses_the_relative_file_name_on_every_host`
  failed on Windows before the change (`file_stem()` of `dir/a\b.rs` was `Some("b")`,
  `extension()` of `dir/a.d\b` was `None`) and pass now. `file_stem` / `extension` now
  split the last `/` component by std's dot rules instead of going through the host `Path`.
  Re-run: `cargo test -p moon-util --lib uses_the_relative_file_name`.

Reviewer: Codex. Its one objection (a `foo.rs/` value built by
`RelPathBuf::push(RelPath::empty())` would have lost its stem) is addressed: the split
skips the empty trailing component as `Path::file_name` does.
@kirillDevPro
kirillDevPro merged commit c65e91e into master Oct 17, 2026
4 checks passed
@kirillDevPro
kirillDevPro deleted the lane/daily-2026-10-17 branch October 17, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RelPath::file_stem splits a POSIX file name at a backslash on Windows hosts

1 participant