Does rust test suite supports nightly options during bootstrapping in rust?

Hello everyone,

I am building and testing rust 1.73 on yocto poky sources by executing python3 src/bootstrap/bootstrap.py test during which got the following failure-

Testing stage1 compiletest suite=mir-opt mode=mir-opt (x86_64-unknown-linux-gnu -> x86_64-poky-linux-gnu)                           
thread 'main' panicked at src/tools/compiletest/src/common.rs:519:30:                                                               
no entry found for key                                                                                                              
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace                                                       
error: the option `Z` is only accepted on the nightly compiler                                                                      
                                                                                                                                    
help: consider switching to a nightly toolchain: `rustup default nightly`                                                           
                                                                                                                                    
note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>                                                                                                                            
                                                                                                                                    
note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>                                                                                                                          
                                                                                                                                    
error: 1 nightly option were parsed                                                                                                 
                                                                                                                                    
thread 'main' panicked at synthetic_targets.rs:66:9:                                                                                
failed to gather the target spec for x86_64-poky-linux-gnu                                                                          
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace                                                       
Build completed unsuccessfully in 0:04:46

This failure was not seen till rust 1.70. After upgrading to rust 1.71 and later versions(1.72,1.73), this failure was observed.
I know the nightly options (-Z and others) are not supported in release versions/channels but these were even present in rust 1.70 and before versions (1.69,1.68...)

Is there any change in the working/execution of mir-opt test suite or rather in the complete rust test suite from rust 1.71 that doesn't allow nightly options in the build??

There are many commits adding support for blessing like(not sure if related to failure)-

9de3c29319a add support for blessing panic=abort mir-opt tests
b542c5526f4 Bless mir-opt tests.
479fa4a74d7 Bless mir-opt tests

It would be gracious if someone could brief about the workings of test suites in rust so that I can clearly understand what's happening here.

How do I handle this failure and make the builds and tests complete successfully and work again?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.