Skip to content

Commit a84bc12

Browse files
Remove always!() assert now that an empty flycheck list is valid
1 parent 35f4602 commit a84bc12

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

crates/rust-analyzer/src/handlers/notification.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,6 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
331331
// have this problem. Remove the line below when triomphe::Arc has an UnwindSafe impl
332332
// like std::sync::Arc's.
333333
let world = world;
334-
stdx::always!(
335-
world.flycheck.len() == 1,
336-
"should have exactly one flycheck handle when invocation strategy is once"
337-
);
338334
let saved_file = vfs_path.as_path().map(ToOwned::to_owned);
339335
if let Some(flycheck) = world.flycheck.first() {
340336
flycheck.restart_workspace(saved_file);

0 commit comments

Comments
 (0)