mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-23 02:57:16 +00:00
Turn `Cow::is_borrowed,is_owned` into associated functions. This is done because `Cow` implements `Deref`. Therefore, to avoid conflicts with an inner type having a method of the same name, we use an associated method, like `Box::into_raw`. Tracking issue: #65143