I think when you say "grow up" it shuts the person down and makes them not want to share. I think learning to share your feelings with a person or two that you can trust is actually very healthy....In a world that has so much negativity in it, I fear that many young people are learning to shut down and turn inward... Not a good thing.
Sharing is good for the soul, (when one is willing) and it reinforces communication skills which are necessary in life, family, relationships, jobs etc.
Bottom line, it's not what you tell someone, it's how you tell them. If someone told me to grow up and talk about what's bothering me, I would find someone else to share with!