In this answer it is implicitly proved that if $X, Y$ are Banach spaces such that $Y$ embeds continuously and densely into $X$, then $X'$ is a separating subspace of $Y'$.
However, I don't see where density of $Y$ is used in the argument. Am I right to believe that the result is true without density of $Y$?