Rose midge maggots pupate insect a white, silken cocoon.
Rose midge pupae and their cocoons (the middle cocoon opened to show the pupa inside).

Photo by Jim Baker, North Carolina State University, Bugwood.org