File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ fn panic_expand(
344
344
let loc: MacroCallLoc = db. lookup_intern_macro_call ( id) ;
345
345
// Expand to a macro call `$crate::panic::panic_{edition}`
346
346
let krate = tt:: Ident { text : "$crate" . into ( ) , id : tt:: TokenId :: unspecified ( ) } ;
347
- let mut call = if db. crate_graph ( ) [ loc. krate ] . edition = = Edition :: Edition2021 {
347
+ let mut call = if db. crate_graph ( ) [ loc. krate ] . edition > = Edition :: Edition2021 {
348
348
quote ! ( #krate:: panic:: panic_2021!)
349
349
} else {
350
350
quote ! ( #krate:: panic:: panic_2015!)
@@ -363,7 +363,7 @@ fn unreachable_expand(
363
363
let loc: MacroCallLoc = db. lookup_intern_macro_call ( id) ;
364
364
// Expand to a macro call `$crate::panic::unreachable_{edition}`
365
365
let krate = tt:: Ident { text : "$crate" . into ( ) , id : tt:: TokenId :: unspecified ( ) } ;
366
- let mut call = if db. crate_graph ( ) [ loc. krate ] . edition = = Edition :: Edition2021 {
366
+ let mut call = if db. crate_graph ( ) [ loc. krate ] . edition > = Edition :: Edition2021 {
367
367
quote ! ( #krate:: panic:: unreachable_2021!)
368
368
} else {
369
369
quote ! ( #krate:: panic:: unreachable_2015!)
You can’t perform that action at this time.
0 commit comments