@@ -1624,26 +1624,20 @@ impl Build {
16241624 self . release ( & self . version )
16251625 }
16261626
1627- /// Returns the "package version" for a component given the `num` release
1628- /// number.
1627+ /// Returns the "package version" for a component.
16291628 ///
16301629 /// The package version is typically what shows up in the names of tarballs.
1631- /// For channels like beta/nightly it's just the channel name, otherwise
1632- /// it's the `num` provided .
1633- fn package_vers ( & self , num : & str ) -> String {
1630+ /// For channels like beta/nightly it's just the channel name, otherwise it's the release
1631+ /// version .
1632+ fn rust_package_vers ( & self ) -> String {
16341633 match & self . config . channel [ ..] {
1635- "stable" => num . to_string ( ) ,
1634+ "stable" => self . version . to_string ( ) ,
16361635 "beta" => "beta" . to_string ( ) ,
16371636 "nightly" => "nightly" . to_string ( ) ,
1638- _ => format ! ( "{num }-dev" ) ,
1637+ _ => format ! ( "{}-dev" , self . version ) ,
16391638 }
16401639 }
16411640
1642- /// Returns the value of `package_vers` above for Rust itself.
1643- fn rust_package_vers ( & self ) -> String {
1644- self . package_vers ( & self . version )
1645- }
1646-
16471641 /// Returns the `version` string associated with this compiler for Rust
16481642 /// itself.
16491643 ///
0 commit comments