about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-02 17:08:11 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-03 02:09:30 -0700
commiteb084b1818bb220928d1c99e241192f2cd98b069 (patch)
treef517d6f0244e7740e0128bf2146168d8a197b092 /src/rustllvm/RustWrapper.cpp
parent71a52a2edc76527e3bba92378da633bb1fde3743 (diff)
downloadrust-eb084b1818bb220928d1c99e241192f2cd98b069.tar.gz
rust-eb084b1818bb220928d1c99e241192f2cd98b069.zip
rustdoc: Make static initalizers prettier
Previously, if an initializer took multiple lines or was just large in general,
it was pretty poorly rendered [1] [2]. This alters the logic to just link back
to the source for any multi-line static, with a placeholder of "[definition]".
This should make reading statics a little easier on the eyes. All single-line
statics are still inlined in the documentation.

Closes #13198

[1] - http://static.rust-lang.org/doc/master/sync/mutex/index.html#statics
[2] - http://static.rust-lang.org/doc/master/std/sync/atomics/index.html#statics
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions