File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
compiler/rustc_builtin_macros/src/deriving/generic Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 8888//!
8989//! When generating the `expr` for the `A` impl, the `SubstructureFields` is
9090//!
91- //! ```{. text}
91+ //! ```text
9292//! Struct(vec![FieldInfo {
9393//! span: <span of x>
9494//! name: Some(<ident of x>),
9999//!
100100//! For the `B` impl, called with `B(a)` and `B(b)`,
101101//!
102- //! ```{. text}
102+ //! ```text
103103//! Struct(vec![FieldInfo {
104104//! span: <span of `i32`>,
105105//! name: None,
113113//! When generating the `expr` for a call with `self == C0(a)` and `other
114114//! == C0(b)`, the SubstructureFields is
115115//!
116- //! ```{. text}
116+ //! ```text
117117//! EnumMatching(0, <ast::Variant for C0>,
118118//! vec![FieldInfo {
119119//! span: <span of i32>
125125//!
126126//! For `C1 {x}` and `C1 {x}`,
127127//!
128- //! ```{. text}
128+ //! ```text
129129//! EnumMatching(1, <ast::Variant for C1>,
130130//! vec![FieldInfo {
131131//! span: <span of x>
137137//!
138138//! For the tags,
139139//!
140- //! ```{. text}
140+ //! ```text
141141//! EnumTag(
142142//! &[<ident of self tag>, <ident of other tag>], <expr to combine with>)
143143//! ```
149149//!
150150//! A static method on the types above would result in,
151151//!
152- //! ```{. text}
152+ //! ```text
153153//! StaticStruct(<ast::VariantData of A>, Named(vec![(<ident of x>, <span of x>)]))
154154//!
155155//! StaticStruct(<ast::VariantData of B>, Unnamed(vec![<span of x>]))
You can’t perform that action at this time.
0 commit comments