mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Remove unused OpportunisticResolve field
This commit is contained in:
parent
31220d5598
commit
4049eb6780
3 changed files with 0 additions and 6 deletions
|
@ -713,7 +713,6 @@ pub struct PatternEq(
|
||||||
pub struct OpportunisticResolve {
|
pub struct OpportunisticResolve {
|
||||||
/// The specialized type of this lookup, to try to resolve.
|
/// The specialized type of this lookup, to try to resolve.
|
||||||
pub specialization_variable: Variable,
|
pub specialization_variable: Variable,
|
||||||
pub specialization_expectation: Index<Expected<Type>>,
|
|
||||||
|
|
||||||
/// The ability member to try to resolve.
|
/// The ability member to try to resolve.
|
||||||
pub member: Symbol,
|
pub member: Symbol,
|
||||||
|
|
|
@ -439,9 +439,6 @@ pub fn constrain_expr(
|
||||||
if let Some(specialization_id) = specialization_id {
|
if let Some(specialization_id) = specialization_id {
|
||||||
env.resolutions_to_make.push(OpportunisticResolve {
|
env.resolutions_to_make.push(OpportunisticResolve {
|
||||||
specialization_variable: specialization_var,
|
specialization_variable: specialization_var,
|
||||||
specialization_expectation: constraints.push_expected_type(
|
|
||||||
Expected::NoExpectation(Type::Variable(specialization_var)),
|
|
||||||
),
|
|
||||||
member: symbol,
|
member: symbol,
|
||||||
specialization_id,
|
specialization_id,
|
||||||
});
|
});
|
||||||
|
|
|
@ -1530,8 +1530,6 @@ fn solve(
|
||||||
}
|
}
|
||||||
&Resolve(OpportunisticResolve {
|
&Resolve(OpportunisticResolve {
|
||||||
specialization_variable,
|
specialization_variable,
|
||||||
// TODO: remove me
|
|
||||||
specialization_expectation: _,
|
|
||||||
member,
|
member,
|
||||||
specialization_id,
|
specialization_id,
|
||||||
}) => {
|
}) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue