@@ -125,23 +125,23 @@ struct ParsedToolchainDesc {
125125 target : Option < String > ,
126126}
127127
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.
133133#[ derive( Debug , Clone , Eq , PartialEq , PartialOrd , Ord ) ]
134134pub struct PartialToolchainDesc {
135135 pub channel : Channel ,
136136 pub date : Option < String > ,
137137 pub target : PartialTargetTriple ,
138138}
139139
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
145145/// 1.55-x86_64-pc-windows-msvc
146146#[ derive( Debug , Clone , Eq , PartialEq , PartialOrd , Ord ) ]
147147pub struct ToolchainDesc {
@@ -181,6 +181,8 @@ impl FromStr for Channel {
181181 }
182182}
183183
184+ /// A possibly incomplete Rust toolchain version that
185+ /// can be converted from and to its string form.
184186#[ derive( Debug , Clone , Eq , PartialEq , PartialOrd , Ord ) ]
185187pub struct PartialVersion {
186188 pub major : u64 ,
0 commit comments