Eliminate indirect reference

This commit is contained in:
Ayaz Hafiz 2022-11-09 13:38:35 -06:00
parent b03a1d3efd
commit bf1b688afb
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1388,7 +1388,7 @@ pub fn constrain_expr(
constraints.push_type(types, typ)
};
let specialized_type_index = {
let typ = types.from_old_type(&(*specialized_def_type));
let typ = types.from_old_type(specialized_def_type);
constraints.push_type(types, typ)
};
let expected_specialized =