Skip to content

Commit 9a017da

Browse files
Update rustdoc test and remove TODO comment
1 parent 81172d8 commit 9a017da

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: src/librustdoc/html/render.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3151,7 +3151,6 @@ fn render_attributes(w: &mut Buffer, it: &clean::Item, top: bool) {
31513151
continue;
31523152
}
31533153

3154-
// FIXME: this currently renders too many spaces as in: `#[repr(C, align (8))]`.
31553154
attrs.push_str(&pprust::attribute_to_string(&attr));
31563155
}
31573156
if !attrs.is_empty() {

Diff for: src/test/rustdoc/attributes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ pub enum Foo {
1616
Bar,
1717
}
1818

19-
// @has foo/struct.Repr.html '//*[@class="docblock attributes top-attr"]' '#[repr(C, align (8))]'
19+
// @has foo/struct.Repr.html '//*[@class="docblock attributes top-attr"]' '#[repr(C, align(8))]'
2020
#[repr(C, align(8))]
2121
pub struct Repr;

0 commit comments

Comments
 (0)