We dont need to do this resolve we can just let the ParamType's sort this
out.
gcc/rust/ChangeLog:
* typecheck/rust-tyty.cc (ADTType::is_equal): let param::is_eq do this
(FnType::is_equal): remove whitespace
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
const ParamType *aa = a.get_param_ty ();
const ParamType *bb = b.get_param_ty ();
- BaseType *aaa = aa->resolve ();
- BaseType *bbb = bb->resolve ();
- if (!aaa->is_equal (*bbb))
+ if (!aa->is_equal (*bb))
return false;
}
}
const ParamType *pa = a.get_param_ty ();
const ParamType *pb = b.get_param_ty ();
-
if (!pa->is_equal (*pb))
return false;
}