Skip to content

Commit

Permalink
Update rustdoc test and remove TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 17, 2020
1 parent 81172d8 commit 9a017da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/librustdoc/html/render.rs
Expand Up @@ -3151,7 +3151,6 @@ fn render_attributes(w: &mut Buffer, it: &clean::Item, top: bool) {
continue;
}

// FIXME: this currently renders too many spaces as in: `#[repr(C, align (8))]`.
attrs.push_str(&pprust::attribute_to_string(&attr));
}
if !attrs.is_empty() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/attributes.rs
Expand Up @@ -16,6 +16,6 @@ pub enum Foo {
Bar,
}

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

0 comments on commit 9a017da

Please sign in to comment.