We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f20d586 commit 180b859Copy full SHA for 180b859
src/librustdoc/html/render.rs
@@ -3789,6 +3789,14 @@ const ATTRIBUTE_WHITELIST: &'static [&'static str] = &[
3789
"non_exhaustive"
3790
];
3791
3792
+// The `top` parameter is used when generating the item declaration to ensure it doesn't have a
3793
+// left padding. For example:
3794
+//
3795
+// #[foo] <----- "top" attribute
3796
+// struct Foo {
3797
+// #[bar] <---- not "top" attribute
3798
+// bar: usize,
3799
+// }
3800
fn render_attributes(w: &mut dyn fmt::Write, it: &clean::Item, top: bool) -> fmt::Result {
3801
let mut attrs = String::new();
3802
0 commit comments