Ensure that negative auto impls are always applicable

This commit is contained in:
Michael Goulet
2025-02-28 01:28:32 +00:00
parent fd17deacce
commit 3d62b279dd
19 changed files with 275 additions and 107 deletions

View File

@@ -778,7 +778,6 @@ impl<T> From<T> for T {
///
/// [#64715]: https://github.com/rust-lang/rust/issues/64715
#[stable(feature = "convert_infallible", since = "1.34.0")]
#[allow(unused_attributes)] // FIXME(#58633): do a principled fix instead.
#[rustc_reservation_impl = "permitting this impl would forbid us from adding \
`impl<T> From<!> for T` later; see rust-lang/rust#64715 for details"]
impl<T> From<!> for T {