File tree 1 file changed +6
-6
lines changed
compiler/rustc_builtin_macros/src/deriving/generic
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 88
88
//!
89
89
//! When generating the `expr` for the `A` impl, the `SubstructureFields` is
90
90
//!
91
- //! ```{. text}
91
+ //! ```text
92
92
//! Struct(vec![FieldInfo {
93
93
//! span: <span of x>
94
94
//! name: Some(<ident of x>),
99
99
//!
100
100
//! For the `B` impl, called with `B(a)` and `B(b)`,
101
101
//!
102
- //! ```{. text}
102
+ //! ```text
103
103
//! Struct(vec![FieldInfo {
104
104
//! span: <span of `i32`>,
105
105
//! name: None,
113
113
//! When generating the `expr` for a call with `self == C0(a)` and `other
114
114
//! == C0(b)`, the SubstructureFields is
115
115
//!
116
- //! ```{. text}
116
+ //! ```text
117
117
//! EnumMatching(0, <ast::Variant for C0>,
118
118
//! vec![FieldInfo {
119
119
//! span: <span of i32>
125
125
//!
126
126
//! For `C1 {x}` and `C1 {x}`,
127
127
//!
128
- //! ```{. text}
128
+ //! ```text
129
129
//! EnumMatching(1, <ast::Variant for C1>,
130
130
//! vec![FieldInfo {
131
131
//! span: <span of x>
137
137
//!
138
138
//! For the tags,
139
139
//!
140
- //! ```{. text}
140
+ //! ```text
141
141
//! EnumTag(
142
142
//! &[<ident of self tag>, <ident of other tag>], <expr to combine with>)
143
143
//! ```
149
149
//!
150
150
//! A static method on the types above would result in,
151
151
//!
152
- //! ```{. text}
152
+ //! ```text
153
153
//! StaticStruct(<ast::VariantData of A>, Named(vec![(<ident of x>, <span of x>)]))
154
154
//!
155
155
//! StaticStruct(<ast::VariantData of B>, Unnamed(vec![<span of x>]))
You can’t perform that action at this time.
0 commit comments