Move unexpected params warning to solve

This commit is contained in:
Agus Zubiaga 2024-07-06 21:36:26 -03:00
parent 63e722f61d
commit 0cbb352a89
No known key found for this signature in database
18 changed files with 115 additions and 169 deletions

View file

@ -1472,11 +1472,12 @@ fn solve(
state
}
(None, Some(_)) | (None, None) => {
// Module does not expect params.
// If provided still, canonicalization will produce a warning.
(None, Some(_)) => {
problems.push(TypeError::UnexpectedImportParams(*region, *module_id));
state
}
(None, None) => state,
}
}
};