File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1366,7 +1366,9 @@ impl<'ctx> MirLowerCtx<'ctx> {
1366
1366
LiteralOrConst :: Const ( c) => {
1367
1367
let c = match & self . body . pats [ * c] {
1368
1368
Pat :: Path ( p) => p,
1369
- _ => not_supported ! ( "only `char` and numeric types are allowed in range patterns" ) ,
1369
+ _ => not_supported ! (
1370
+ "only `char` and numeric types are allowed in range patterns"
1371
+ ) ,
1370
1372
} ;
1371
1373
let unresolved_name = || MirLowerError :: unresolved_path ( self . db , c. as_ref ( ) ) ;
1372
1374
let resolver = self . owner . resolver ( self . db . upcast ( ) ) ;
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ fn bar() {
536
536
) ;
537
537
}
538
538
539
- #[ test]
539
+ #[ test]
540
540
fn goto_definition_works_for_consts_inside_range_pattern ( ) {
541
541
check (
542
542
r#"
You can’t perform that action at this time.
0 commit comments