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> {
13661366 LiteralOrConst :: Const ( c) => {
13671367 let c = match & self . body . pats [ * c] {
13681368 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+ ) ,
13701372 } ;
13711373 let unresolved_name = || MirLowerError :: unresolved_path ( self . db , c. as_ref ( ) ) ;
13721374 let resolver = self . owner . resolver ( self . db . upcast ( ) ) ;
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ fn bar() {
536536 ) ;
537537 }
538538
539- #[ test]
539+ #[ test]
540540 fn goto_definition_works_for_consts_inside_range_pattern ( ) {
541541 check (
542542 r#"
You can’t perform that action at this time.
0 commit comments