File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ impl FlycheckActor {
239
239
Ok ( cargo_handle) => {
240
240
tracing:: debug!(
241
241
command = ?command_string,
242
- "did restart flycheck"
242
+ "did restart flycheck"
243
243
) ;
244
244
self . cargo_handle = Some ( cargo_handle) ;
245
245
self . report_progress ( Progress :: DidStart ) ;
@@ -384,8 +384,19 @@ impl FlycheckActor {
384
384
let mut args = args. clone ( ) ;
385
385
args[ i] = saved_file. to_string ( ) ;
386
386
( cmd, args)
387
- } ,
388
- _ => unreachable ! ( "this code should not be reachable. An invariant inside of rust-analyzer has been broken." )
387
+ }
388
+ ( None , Some ( saved_file) ) => {
389
+ dbg ! ( "no index, saved file included: {}" , & saved_file) ;
390
+ unreachable ! ( )
391
+ }
392
+ ( Some ( i) , None ) => {
393
+ dbg ! ( "index, no saved file included: {}" , & i) ;
394
+ unreachable ! ( )
395
+ }
396
+ ( None , None ) => {
397
+ dbg ! ( "No index or no saved file included" ) ;
398
+ unreachable ! ( )
399
+ }
389
400
}
390
401
} else {
391
402
( cmd, args. clone ( ) )
You can’t perform that action at this time.
0 commit comments