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),
145 the_quick_brown_fox_jumps_over_the_lazy_dog:
146 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,
150 deeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep:
151 node::Handle<IdRef<'id, Node<Key, Value>>, Type, NodeType>,
156 convex_shape.set_point(0, &Vector2f { x: 400.0, y: 100.0 });
157 convex_shape.set_point(1, &Vector2f { x: 500.0, y: 70.0 });
158 convex_shape.set_point(2, &Vector2f { x: 450.0, y: 100.0 });
159 convex_shape.set_point(3, &Vector2f { x: 580.0, y: 150.0 });
162 // Vertical alignment
169 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 1
171 zzz: u32, // comment3
173 aaaaaa: u32, // comment4
179 aaaaaaa: u32, /* multi
185 do_not_push_this_comment1: u32, // comment1
186 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 2
187 please_do_not_push_this_comment3: u32, // comment3
189 do_not_push_this_comment1: u32, // comment1
191 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 2
192 please_do_not_push_this_comment3: u32, // comment3
194 do_not_push_this_comment1: u32, // comment1
195 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: u32, // 2
197 please_do_not_push_this_comment3: u32, // comment3