about summary refs log tree commit diff
path: root/library/std/tests/path.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-09-04 16:31:05 +0000
committerbors <bors@rust-lang.org>2025-09-04 16:31:05 +0000
commit0d6a806909f8e99ad59d3ca96dee012faf9a38e9 (patch)
tree05be4d14baf3e3b7e5724c91da62282c45836b13 /library/std/tests/path.rs
parent71289c378d0a406a4f537fe4001282d19362931f (diff)
parenta038e28e8a72c0a07a42a9098b6766786f1e2822 (diff)
downloadrust-0d6a806909f8e99ad59d3ca96dee012faf9a38e9.tar.gz
rust-0d6a806909f8e99ad59d3ca96dee012faf9a38e9.zip
Auto merge of #146205 - matthiaskrgr:rollup-fxt43oq, r=matthiaskrgr
Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#145976 (Add bootstrap.toml option to control debug breaking on ICEs on windows)
 - rust-lang/rust#146151 (fixes auto-run js checks in tidy)
 - rust-lang/rust#146194 (fix path str eq)
 - rust-lang/rust#146197 (triagebot: fix rustc_allow_const_fn_unstable matcher)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/tests/path.rs')
-rw-r--r--library/std/tests/path.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/std/tests/path.rs b/library/std/tests/path.rs
index 3577f0d9c7b..fa76c50597b 100644
--- a/library/std/tests/path.rs
+++ b/library/std/tests/path.rs
@@ -2526,3 +2526,9 @@ fn normalize_lexically() {
         check_err(r"\\?\UNC\server\share\a\..\..");
     }
 }
+
+#[test]
+/// See issue#146183
+fn compare_path_to_str() {
+    assert!(&PathBuf::from("x") == "x");
+}