The answer depends on where the maneuver happens: you get ahead of a moving truck by leaving your lane, and you do it in an intersection. By definition this is passing, and passing is banned in intersections. The fact that the truck has turned on its right turn signal and is getting out of your way changes nothing: it is still moving, and you are leaving your lane to get ahead of it. Stay behind the truck until it turns, then continue in your lane