16 Commits

Author SHA1 Message Date
Mahdi Ali-Raihan d6ff921cd9 Fixed ByteStr not padding within its Display trait when no specific alignment is not mentioned (e.g. ':10' instead of ':<10', ':>10', or ':^1') 2026-02-20 17:46:14 -05:00
bendn d67f99af2e fix 2025-11-27 17:55:34 +07:00
Matthias Krüger 61b9467af8 Rollup merge of #142506 - clarfonthey:path-trailing-sep, r=joboet
Add `Path::has_trailing_sep` and related methods

Implements rust-lang/libs-team#335.

Tracking issue: rust-lang/rust#142503

Notable differences from ACP:

* `trim_trailing_sep` was added to `Path` since it felt reasonable to ensure that the inverse operation was available.
* Per suggestion of `@kennytm,` added `push_trailing_sep` and `pop_trailing_sep` to `PathBuf` in addition to `set_trailing_sep`.

This also updates some of the docs on various `Path` methods to use the term "trailing separator" instead of "trailing slash" for consistency.
2025-09-30 20:46:44 +02:00
Iris Shi 5a4e536036 Fix infinite recursion in Path::eq with String 2025-09-24 21:30:41 +08:00
ltdk 7ce8e289db Add Path::has_trailing_sep and related methods 2025-09-04 20:07:10 -04:00
bendn f19da67ed7 add test 2025-09-04 14:17:31 +07:00
Hanna Kruppe 52063ae248 stabilize path_add_extension 2025-08-13 19:03:13 +02:00
Kivooeo 4c4b8b23c6 remove gate 2025-08-04 02:18:18 +05:00
王宇逸 3cb0cba054 Handle win32 separator & prefixes for cygwin paths 2025-06-16 09:24:07 +08:00
schvv31n eba3a61067 Stabilised os_string_pathbuf_leak 2025-06-06 12:06:42 -07:00
Chris Denton c299e297ee Implement normalize lexically 2025-05-25 08:11:41 +00:00
GrantBirki 4358a1c05e remove extra tests that really might not be all that useful 2025-05-17 10:49:15 -07:00
GrantBirki 1bc8535e61 revert forward slash to backslash 2025-05-17 10:36:39 -07:00
GrantBirki 604f0e2743 remove test_embedded_null_byte() test for now 2025-05-16 22:42:05 -07:00
GrantBirki 49658e6a3c additional edge cases tests for path.rs 2025-05-16 15:19:44 -07:00
bjorn3 b8fa843a1a Move std::path unit tests to integration tests 2025-01-26 10:28:04 +00:00