File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,14 @@ fn result_unwrap_or() {
137137}
138138
139139// don't lint in const fn
140- const fn const_fn_unwrap_or () {
140+ const fn const_fn_option_unwrap_or () {
141141 match Some(1) {
142142 Some(s) => s,
143143 None => 0,
144144 };
145145}
146146
147- const fn const_fn_unwrap () {
147+ const fn const_fn_result_unwrap_or () {
148148 match Ok::<&str, &str>("Alice") {
149149 Ok(s) => s,
150150 Err(_) => "Bob",
Original file line number Diff line number Diff line change @@ -176,14 +176,14 @@ fn result_unwrap_or() {
176176}
177177
178178// don't lint in const fn
179- const fn const_fn_unwrap_or ( ) {
179+ const fn const_fn_option_unwrap_or ( ) {
180180 match Some ( 1 ) {
181181 Some ( s) => s,
182182 None => 0 ,
183183 } ;
184184}
185185
186- const fn const_fn_unwrap ( ) {
186+ const fn const_fn_result_unwrap_or ( ) {
187187 match Ok :: < & str , & str > ( "Alice" ) {
188188 Ok ( s) => s,
189189 Err ( _) => "Bob" ,
You can’t perform that action at this time.
0 commit comments