1
Fork 0

Revert stabilization of feature(never_type).

This commit is just covering the feature gate itself and the tests
that made direct use of `!` and thus need to opt back into the
feature.

A follow on commit brings back the other change that motivates the
revert: Namely, going back to the old rules for falling back to `()`.
This commit is contained in:
Felix S. Klock II 2018-04-20 17:07:58 +02:00
parent 1a4443995c
commit fadabd6fbb
41 changed files with 127 additions and 17 deletions

View file

@ -233,7 +233,7 @@ impl<'a> From<Cow<'a, str>> for Box<Error> {
}
}
#[stable(feature = "never_type", since = "1.26.0")]
#[unstable(feature = "never_type", issue = "35121")]
impl Error for ! {
fn description(&self) -> &str { *self }
}