"Parting is such sweet sorrow" is also alliteration, the repetition of the same consonant sound closely located in a line of poetry.
Personification is used in "Arise fair sun and kill the envious moon" as Shakespeare was giving human actions to inanimate objects, the sun and the moon. "Parting is such sweet sorrow" is antithesis - "sweet" and "sorrow" are antithetical, or opposite to one another, which was a common literary device used by Shakespeare to give more emphasis to the words he is contrasting.
Check the links below for more information on both personification and antithesis, as well as other literary devices.
In the first quotations: metaphor
Second quotations: metaphor