This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1414// You should have received a copy of the GNU General Public License
1515// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
1616
17- #[ cfg( feature = "nightly" ) ]
1817#[ doc( hidden) ]
1918pub extern crate alloc;
2019
Original file line number Diff line number Diff line change 1616
1717use std:: { process:: { Command , Stdio } , fs} ;
1818
19+ use std:: env;
1920use tempfile:: tempdir;
2021
2122/// Checks that all prerequisites are installed.
2223///
2324/// # Returns
2425/// Returns `None` if everything was found and `Some(ERR_MSG)` if something could not be found.
2526pub fn check ( ) -> Option < & ' static str > {
26- if !check_nightly_installed ( ) {
27+ if !rustc_stable_forced_to_nightly ( ) && ! check_nightly_installed ( ) {
2728 return Some ( "Rust nightly not installed, please install it!" )
2829 }
2930
@@ -39,6 +40,10 @@ pub fn check() -> Option<&'static str> {
3940 check_wasm_toolchain_installed ( )
4041}
4142
43+ fn rustc_stable_forced_to_nightly ( ) -> bool {
44+ env:: var ( "RUSTC_BOOTSTRAP" ) == Ok ( "1" . to_string ( ) )
45+ }
46+
4247fn check_nightly_installed ( ) -> bool {
4348 let command = crate :: get_nightly_cargo ( ) ;
4449 command. is_nightly ( )
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
8484 // and set impl_version to equal spec_version. If only runtime
8585 // implementation changes and behavior does not, then leave spec_version as
8686 // is and increment impl_version.
87- spec_version : 178 ,
88- impl_version : 178 ,
87+ spec_version : 179 ,
88+ impl_version : 179 ,
8989 apis : RUNTIME_API_VERSIONS ,
9090} ;
9191
You can’t perform that action at this time.
0 commit comments