We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d23d06 commit cb7fb35Copy full SHA for cb7fb35
library/alloc/src/borrow.rs
@@ -441,11 +441,13 @@ where
441
}
442
443
444
+// FIXME(inference): const bounds removed due to inference regressions found by crater;
445
+// see https://github.com/rust-lang/rust/issues/147964
446
+// #[rustc_const_unstable(feature = "const_convert", issue = "143773")]
447
#[stable(feature = "rust1", since = "1.0.0")]
-#[rustc_const_unstable(feature = "const_convert", issue = "143773")]
-impl<T: ?Sized + ToOwned> const AsRef<T> for Cow<'_, T>
-where
448
- T::Owned: [const] Borrow<T>,
+impl<T: ?Sized + ToOwned> AsRef<T> for Cow<'_, T>
449
+// where
450
+// T::Owned: [const] Borrow<T>,
451
{
452
fn as_ref(&self) -> &T {
453
self
0 commit comments