From c44ca17a4425b9bbd5d6219c8cf5d75bf670e667 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Tue, 14 Jul 2020 16:08:02 -0700 Subject: Remove string comparison and use diagnostic item instead --- src/libcore/option.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libcore') diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 7aca6af3de6..a27e8d2a724 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -1681,6 +1681,7 @@ impl> FromIterator> for Option { /// to allow `x?` (where `x` is an `Option`) to be converted into your error type, you can /// implement `impl From` for `YourErrorType`. In that case, `x?` within a function that /// returns `Result<_, YourErrorType>` will translate a `None` value into an `Err` result. +#[rustc_diagnostic_item = "none_error"] #[unstable(feature = "try_trait", issue = "42327")] #[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)] pub struct NoneError; -- cgit 1.4.1-3-g733a5