Cruz has recently adopted a Romney like posture on illegal immigrants which amounts to robust enforcement of laws concerning employment and benefits, strict enforcement on the border, and forced deportation according to the law, reversal of his position on H1B visas etc.
It appears that there is virtually no difference today between Cruz' position on illegal immigrants and Trump's except Cruz does not say he would let them back in, but Trump would.
Cruz was in favor of TPP, until Trump came into prominence and then he flipped, the same exact thing happened to Cruz on immigration. The difference is that Cruz is lying about his past.