Whisk the sugar, eggs, flour, salt, and reserved pineapple juice together in a saucepan until smooth. Cook and stir over medium heat until the mixture thickens. Pour over cooled pasta, and toss to coat evenly. Cover and refrigerate overnight, or at least 8 hours.