1 // rustfmt-normalize_comments: true
2 // rustfmt-wrap_comments: true
8 f : SomeType, // Comment beside a field
9 f: SomeType, // Comment beside a field
13 /// A doc comment on a field
15 pub i: TypeForPublicField,
21 // This will NOT get deleted!
27 // `x` is an important number.
28 #[allow(unused)] // TODO: use
33 #[allow(missing_docs)]
34 pub union Writebatch<K: Key> {
35 #[allow(dead_code)] // only used for holding the internal pointer
36 writebatch: RawWritebatch,
37 marker: PhantomData<K>,
40 // With a where clause and generics.
41 pub union Foo<'a, Y: Baz>
45 f: SomeType, // Comment beside a field
81 pub union State<F: FnMut() -> time::Timespec> {
85 pub union State<F: FnMut() -> ()> {
89 pub union State<F: FnMut()> {
94 /// A map of indices in the palette to a count of pixels in approximately
99 // Splitting a single line comment into a block previously had a misalignment
100 // when the field had attributes
101 union FieldsWithAttributes {
103 #[rustfmt_skip] pub host:String, /* Post comment BBBBBBBBBBBBBB BBBBBBBBBBBBBBBB
104 * BBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBB BBBBBBBBBBB */
105 // Another pre comment
108 pub id: usize, /* CCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCC
109 * CCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCC CCCCCCCCCCCC */
113 deeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep:
114 node::Handle<IdRef<'id, Node<K, V>>, Type, NodeType>,
127 pub ptr: *const libc::c_void,
128 pub trace: fn(obj: *const libc::c_void, tracer: *mut JSTracer),
139 union Foo { /* comment */ }
143 the_quick_brown_fox_jumps_over_the_lazy_dog:
144 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,
148 deeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep:
149 node::Handle<IdRef<'id, Node<Key, Value>>, Type, NodeType>,
154 convex_shape.set_point(0, &Vector2f { x: 400.0, y: 100.0 });
155 convex_shape.set_point(1, &Vector2f { x: 500.0, y: 70.0 });
156 convex_shape.set_point(2, &Vector2f { x: 450.0, y: 100.0 });
157 convex_shape.set_point(3, &Vector2f { x: 580.0, y: 150.0 });
160 // Vertical alignment
167 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 1
169 zzz: u32, // comment3
171 aaaaaa: u32, // comment4
177 aaaaaaa: u32, /* multi
183 do_not_push_this_comment1: u32, // comment1
184 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 2
185 please_do_not_push_this_comment3: u32, // comment3
187 do_not_push_this_comment1: u32, // comment1
189 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 2
190 please_do_not_push_this_comment3: u32, // comment3
192 do_not_push_this_comment1: u32, // comment1
193 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 2
195 please_do_not_push_this_comment3: u32, // comment3