]> git.lizzy.rs Git - rust.git/commit
Pull out nightly checking to edges
authorMark Rousskov <mark.simulacrum@gmail.com>
Sat, 21 Jul 2018 22:12:16 +0000 (16:12 -0600)
committerMark Rousskov <mark.simulacrum@gmail.com>
Tue, 31 Jul 2018 17:37:21 +0000 (11:37 -0600)
commit0af5a6be0531a1ad038bd150239847cb4acc5026
tree9333a37b41c4b4b2d308f522b7c5fed127f0f78f
parentf89817997ac0aa100bf91997194ad85a7e59f743
Pull out nightly checking to edges

Parsing the code block's LangString (```foo) previously checked itself
to see if we were on nightly; that isn't the right place to do so. Move
that check slightly outwards to better abstract LangString.

(This is also an optimization as we avoid the costly environment
variable load of RUSTC_BOOTSTRAP).
src/librustdoc/html/markdown.rs