From 7f16edc0c0ce8182d62ba82112fda5d68bde88f0 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sat, 13 Dec 2025 17:09:04 -0500 Subject: [PATCH] Remove Copy impl on Ancestors It's probably too late to claw this back given the stabilization was ages ago in 1.28, but I was confused reading some code using it so want to see how bad it would be. --- library/std/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 2a57a1ed59600..1e0603b67ea0e 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -1093,7 +1093,7 @@ fn compare_components(mut left: Components<'_>, mut right: Components<'_>) -> cm /// ``` /// /// [`ancestors`]: Path::ancestors -#[derive(Copy, Clone, Debug)] +#[derive(Clone, Debug)] #[must_use = "iterators are lazy and do nothing unless consumed"] #[stable(feature = "path_ancestors", since = "1.28.0")] pub struct Ancestors<'a> {