mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
clippy
This commit is contained in:
parent
36b41322f5
commit
14638aff35
5 changed files with 4 additions and 6 deletions
|
@ -891,8 +891,6 @@ pub(crate) fn sort_can_defs_new(
|
||||||
group_length => {
|
group_length => {
|
||||||
let group_defs = defs.split_off(defs.len() - group_length);
|
let group_defs = defs.split_off(defs.len() - group_length);
|
||||||
|
|
||||||
let length = declarations.declarations.len();
|
|
||||||
|
|
||||||
let cycle_mark = IllegalCycleMark::new(var_store);
|
let cycle_mark = IllegalCycleMark::new(var_store);
|
||||||
declarations.push_recursive_group(group_length as u16, cycle_mark);
|
declarations.push_recursive_group(group_length as u16, cycle_mark);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::annotation::IntroducedVariables;
|
use crate::annotation::IntroducedVariables;
|
||||||
use crate::def::{Declaration, Def};
|
use crate::def::Def;
|
||||||
use crate::expr::{AnnotatedMark, ClosureData, Declarations, Expr, Recursive};
|
use crate::expr::{AnnotatedMark, ClosureData, Declarations, Expr, Recursive};
|
||||||
use crate::pattern::Pattern;
|
use crate::pattern::Pattern;
|
||||||
use crate::scope::Scope;
|
use crate::scope::Scope;
|
||||||
|
|
|
@ -1411,7 +1411,9 @@ fn constrain_destructure_def(
|
||||||
|
|
||||||
let destructure_def = &declarations.destructs[destructure_def_index.index()];
|
let destructure_def = &declarations.destructs[destructure_def_index.index()];
|
||||||
let loc_pattern = &destructure_def.loc_pattern;
|
let loc_pattern = &destructure_def.loc_pattern;
|
||||||
let pattern_vars = &destructure_def.pattern_vars;
|
|
||||||
|
// TODO what is this for?
|
||||||
|
// let pattern_vars = &destructure_def.pattern_vars;
|
||||||
|
|
||||||
let mut def_pattern_state =
|
let mut def_pattern_state =
|
||||||
constrain_def_pattern(constraints, env, loc_pattern, Type::Variable(expr_var));
|
constrain_def_pattern(constraints, env, loc_pattern, Type::Variable(expr_var));
|
||||||
|
|
|
@ -2,7 +2,6 @@ use crate::expr::{constrain_def_make_constraint, constrain_def_pattern, Env};
|
||||||
use roc_builtins::std::StdLib;
|
use roc_builtins::std::StdLib;
|
||||||
use roc_can::abilities::AbilitiesStore;
|
use roc_can::abilities::AbilitiesStore;
|
||||||
use roc_can::constraint::{Constraint, Constraints};
|
use roc_can::constraint::{Constraint, Constraints};
|
||||||
use roc_can::def::Declaration;
|
|
||||||
use roc_can::expected::Expected;
|
use roc_can::expected::Expected;
|
||||||
use roc_can::expr::Declarations;
|
use roc_can::expr::Declarations;
|
||||||
use roc_can::pattern::Pattern;
|
use roc_can::pattern::Pattern;
|
||||||
|
|
|
@ -8,7 +8,6 @@ use roc_builtins::roc::module_source;
|
||||||
use roc_builtins::std::borrow_stdlib;
|
use roc_builtins::std::borrow_stdlib;
|
||||||
use roc_can::abilities::AbilitiesStore;
|
use roc_can::abilities::AbilitiesStore;
|
||||||
use roc_can::constraint::{Constraint as ConstraintSoa, Constraints};
|
use roc_can::constraint::{Constraint as ConstraintSoa, Constraints};
|
||||||
use roc_can::def::Declaration;
|
|
||||||
use roc_can::expr::Declarations;
|
use roc_can::expr::Declarations;
|
||||||
use roc_can::module::{canonicalize_module_defs, Module};
|
use roc_can::module::{canonicalize_module_defs, Module};
|
||||||
use roc_collections::{default_hasher, BumpMap, MutMap, MutSet, VecSet};
|
use roc_collections::{default_hasher, BumpMap, MutMap, MutSet, VecSet};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue