]> git.lizzy.rs Git - rust.git/commit
Don't re-parse terminfo (twice!) on every compiler diagnostic
authorKevin Ballard <kevin@sb.org>
Thu, 11 Jul 2013 07:56:26 +0000 (00:56 -0700)
committerKevin Ballard <kevin@sb.org>
Sun, 14 Jul 2013 22:01:50 +0000 (15:01 -0700)
commit1d4c3146f5e35ce60db73849da8806d73c6ecee2
treece10236b81d0859222b0fa9125ef6f3753e3d496
parent69da3808444d71a39d3c05519a45d5186537cfcb
Don't re-parse terminfo (twice!) on every compiler diagnostic

Stuff the term::Terminal into TLS to avoid re-parsing for every single
message we want to color.

Fixes #6827.
src/libsyntax/diagnostic.rs