@@ -125,23 +125,23 @@ struct ParsedToolchainDesc {
125
125
target : Option < String > ,
126
126
}
127
127
128
- // A toolchain descriptor from rustup's perspective. These contain
129
- // 'partial target triples', which allow toolchain names like
130
- // 'stable-msvc' to work. Partial target triples though are parsed
131
- // from a hardcoded set of known triples, whereas target triples
132
- // are nearly-arbitrary strings.
128
+ /// A toolchain descriptor from rustup's perspective. These contain
129
+ /// 'partial target triples', which allow toolchain names like
130
+ /// 'stable-msvc' to work. Partial target triples though are parsed
131
+ /// from a hardcoded set of known triples, whereas target triples
132
+ /// are nearly-arbitrary strings.
133
133
#[ derive( Debug , Clone , Eq , PartialEq , PartialOrd , Ord ) ]
134
134
pub struct PartialToolchainDesc {
135
135
pub channel : Channel ,
136
136
pub date : Option < String > ,
137
137
pub target : PartialTargetTriple ,
138
138
}
139
139
140
- // Fully-resolved toolchain descriptors. These always have full target
141
- // triples attached to them and are used for canonical identification,
142
- // such as naming their installation directory.
143
- //
144
- // as strings they look like stable-x86_64-pc-windows-msvc or
140
+ /// Fully-resolved toolchain descriptors. These always have full target
141
+ /// triples attached to them and are used for canonical identification,
142
+ /// such as naming their installation directory.
143
+ ///
144
+ /// As strings they look like stable-x86_64-pc-windows-msvc or
145
145
/// 1.55-x86_64-pc-windows-msvc
146
146
#[ derive( Debug , Clone , Eq , PartialEq , PartialOrd , Ord ) ]
147
147
pub struct ToolchainDesc {
@@ -181,6 +181,8 @@ impl FromStr for Channel {
181
181
}
182
182
}
183
183
184
+ /// A possibly incomplete Rust toolchain version that
185
+ /// can be converted from and to its string form.
184
186
#[ derive( Debug , Clone , Eq , PartialEq , PartialOrd , Ord ) ]
185
187
pub struct PartialVersion {
186
188
pub major : u64 ,
0 commit comments