FYI - on a final return everything flows out on the K-1s.
Otherwise, capital gains are generally corpus, stay in the trust, and the trust pays tax on them.