Whether or not one believes in the Trinity or other doctrines, has little bearing on anything. Heaven will be filled with prostitutes, sinners, Mormons, Jews, Catholics and all manner of those who trust in Christ, regardless of their religion. God will judge them by their works, namely, by their love for Jesus' brethren, not by what they think they know.
I trust it is true that salvation is not dependant on that doctrine a person adhers to or not.
You say they will be judged by the love they show to Jesus' brethren. Then what does it mean that they do not know they had done good to Jesus through those? Matthew 25:37-39
…37"Then the righteous will answer Him, 'Lord, when did we see You hungry, and feed You, or thirsty, and give You something to drink? 38 'And when did we see You a stranger, and invite You in, or naked, and clothe You? 39 'When did we see You sick, or in prison, and come to You?'…