diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-03-17 15:08:44 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-03-17 20:58:31 +0100 |
| commit | 9a017da45922efa25f3e40b6a999b47aa1af9c89 (patch) | |
| tree | c12823b53651316daf66a07fe3257db480de8a5e | |
| parent | 81172d8f39685fe52aac077c18ccdc899f94d363 (diff) | |
| download | rust-9a017da45922efa25f3e40b6a999b47aa1af9c89.tar.gz rust-9a017da45922efa25f3e40b6a999b47aa1af9c89.zip | |
Update rustdoc test and remove TODO comment
| -rw-r--r-- | src/librustdoc/html/render.rs | 1 | ||||
| -rw-r--r-- | src/test/rustdoc/attributes.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index b3d70475bf3..d782a9d5a09 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -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() { diff --git a/src/test/rustdoc/attributes.rs b/src/test/rustdoc/attributes.rs index d5772e183bc..e9cd3514a07 100644 --- a/src/test/rustdoc/attributes.rs +++ b/src/test/rustdoc/attributes.rs @@ -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; |
