Skip to content

Commit 8d1c120

Browse files
michalmuskalameta-codesync[bot]
authored andcommitted
no_sleep: don't flag infinity timeout
Summary: Infinity sleeps are usually done to keep some auxiliary process alive. They also never slow down test - if they were actually blocking for the test, the test would be broken. There's little value in flagging and linting those. Reviewed By: ilya-klyuchnikov Differential Revision: D85987359 fbshipit-source-id: 3691d9c4bae56e93dfc9a526c73136364a75dc70
1 parent ff680df commit 8d1c120

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/ide/src/codemod_helpers.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,9 @@ impl TryFrom<&str> for MFA {
439439
}
440440
}
441441

442+
#[allow(unused)]
442443
pub struct CheckCallCtx<'a, T> {
443-
#[allow(unused)]
444+
pub sema: &'a Semantic<'a>,
444445
pub mfa: &'a FunctionMatch,
445446
pub parents: &'a Vec<ParentId>,
446447
pub target: &'a CallTarget<ExprId>,
@@ -561,6 +562,7 @@ pub(crate) fn find_call_in_function<CallCtx, MakeCtx, Res>(
561562
) {
562563
let in_clause = &def_fb.in_clause(clause_id);
563564
let context = CheckCallCtx {
565+
sema,
564566
mfa,
565567
parents: ctx.parents,
566568
t,

0 commit comments

Comments
 (0)