Skip to content

Commit fe35b02

Browse files
committed
move constant to top of module
1 parent 339f10c commit fe35b02

File tree

1 file changed

+3
-3
lines changed
  • crates/ty_python_semantic/src/types

1 file changed

+3
-3
lines changed

crates/ty_python_semantic/src/types/infer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ mod builder;
5858
#[cfg(test)]
5959
mod tests;
6060

61+
/// How many fixpoint iterations to allow before falling back to Divergent type.
62+
const ITERATIONS_BEFORE_FALLBACK: u32 = 10;
63+
6164
/// Infer all types for a [`ScopeId`], including all definitions and expressions in that scope.
6265
/// Use when checking a scope, or needing to provide a type for an arbitrary expression in the
6366
/// scope.
@@ -157,9 +160,6 @@ pub(crate) fn infer_deferred_types<'db>(
157160
.finish_definition()
158161
}
159162

160-
/// How many fixpoint iterations to allow before falling back to Divergent type.
161-
const ITERATIONS_BEFORE_FALLBACK: u32 = 10;
162-
163163
fn deferred_cycle_recover<'db>(
164164
_db: &'db dyn Db,
165165
_value: &DefinitionInference<'db>,

0 commit comments

Comments
 (0)