mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
f1a0dfd145
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