The singular set of a variety $X$ is the set of singular points. This is a proper subvariety. A subvariety $Y$ of $X$ is contained in the singular set if and only if its local ring $\mc{O}_Y$ is not regular.