What’s wrong with this piece of code? [closed]

This loop:

while($listing->have_posts()):
    get_template_part( 'partials/listing-cars/listing-list', 'loop' );
endwhile;

will never terminate, because $listing->have_posts() will never be false. You need $listing->the_post() to advance the loop to the next post in each iteration. Then, when the last post is reached, $listing->have_posts() will be false and the loop will end.

while($listing->have_posts()):
    $listing->the_post();
    get_template_part( 'partials/listing-cars/listing-list', 'loop' );
endwhile;