Place the nuts on an ungreased baking sheet and bake for about 10 minutes until they are warmed through. Meanwhile, combine the rosemary, pepper, sugar, salt and butter in a large bowl. Toss the warm nuts with the rosemary mixture until the nuts are completely coated. Serve warm.