about summary refs log tree commit diff
path: root/src/test/rustdoc/static.rs
AgeCommit message (Collapse)AuthorLines
2020-10-13fixup! Avoid extraneous space between visibility kw and ident for staticsayazhafiz-3/+3
2020-10-13Avoid extraneous space between visibility kw and ident for staticsayazhafiz-0/+12
Today, given a static like `static mut FOO: usize = 1`, rustdoc would emit `static mut FOO: usize = 1`, as it emits both the mutability kw with a space and reserves a space after the mutability kw. This patch fixes that misformatting. This patch also adds some tests for emit of other statics, as I could not find an existing test devoted to statics.