about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-07-14 16:08:02 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-07-14 16:08:02 -0700
commitc44ca17a4425b9bbd5d6219c8cf5d75bf670e667 (patch)
tree0b901632a6e8f83cb2a4341d467a3a2370b95250 /src/libcore
parentc724b67e1b474262917a5154d74e7072267593fe (diff)
downloadrust-c44ca17a4425b9bbd5d6219c8cf5d75bf670e667.tar.gz
rust-c44ca17a4425b9bbd5d6219c8cf5d75bf670e667.zip
Remove string comparison and use diagnostic item instead
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/option.rs1
1 files changed, 1 insertions, 0 deletions
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<A, V: FromIterator<A>> FromIterator<Option<A>> for Option<V> {
 /// to allow `x?` (where `x` is an `Option<T>`) to be converted into your error type, you can
 /// implement `impl From<NoneError>` 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;