Thermal limitations on incorporation of wall rock into magma