about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-04 17:45:49 +0200
committerGitHub <noreply@github.com>2025-09-04 17:45:49 +0200
commit60196de4c29cf73a1d1524dffa667fb9f75bbb13 (patch)
tree6f6409d3a9cd0fb06efec85940dd84d7473b93d3 /library/std/src
parentbdfa97b648f5e5ff3d70842042dd74488df28e6b (diff)
parent1e37c1fe2e29d88d4843e7c0ce46e50edd9f7251 (diff)
downloadrust-60196de4c29cf73a1d1524dffa667fb9f75bbb13.tar.gz
rust-60196de4c29cf73a1d1524dffa667fb9f75bbb13.zip
Rollup merge of #146194 - bend-n:fix-path-str-eq, r=ibraheemdev
fix path str eq

fixes rust-lang/rust#146183
where the impl for partialeq<str> for pathbuf resulted in infinite recursion
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs
index 531a1aa4215..19663e4a9df 100644
--- a/library/std/src/path.rs
+++ b/library/std/src/path.rs
@@ -2107,7 +2107,7 @@ impl PartialEq for PathBuf {
 impl cmp::PartialEq<str> for PathBuf {
     #[inline]
     fn eq(&self, other: &str) -> bool {
-        &*self == other
+        Path::eq(self, other)
     }
 }