File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1061,7 +1061,9 @@ symbols! {
1061
1061
optin_builtin_traits,
1062
1062
option,
1063
1063
option_env,
1064
+ option_expect,
1064
1065
option_payload_ptr,
1066
+ option_unwrap,
1065
1067
options,
1066
1068
or,
1067
1069
or_patterns,
Original file line number Diff line number Diff line change @@ -892,6 +892,7 @@ impl<T> Option<T> {
892
892
#[ track_caller]
893
893
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
894
894
#[ rustc_const_unstable( feature = "const_option" , issue = "67441" ) ]
895
+ #[ rustc_diagnostic_item = "option_expect" ]
895
896
pub const fn expect ( self , msg : & str ) -> T {
896
897
match self {
897
898
Some ( val) => val,
@@ -929,6 +930,7 @@ impl<T> Option<T> {
929
930
#[ track_caller]
930
931
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
931
932
#[ rustc_const_unstable( feature = "const_option" , issue = "67441" ) ]
933
+ #[ rustc_diagnostic_item = "option_unwrap" ]
932
934
pub const fn unwrap ( self ) -> T {
933
935
match self {
934
936
Some ( val) => val,
You can’t perform that action at this time.
0 commit comments