@@ -200,9 +200,9 @@ pub(crate) struct TestProps {
200200 pub no_auto_check_cfg : bool ,
201201 /// Build and use `minicore` as `core` stub for `no_core` tests in cross-compilation scenarios
202202 /// that don't otherwise want/need `-Z build-std`.
203- pub add_core_stubs : bool ,
203+ pub add_minicore : bool ,
204204 /// Add these flags to the build of `minicore`.
205- pub core_stubs_compile_flags : Vec < String > ,
205+ pub minicore_compile_flags : Vec < String > ,
206206 /// Whether line annotatins are required for the given error kind.
207207 pub dont_require_annotations : HashSet < ErrorKind > ,
208208 /// Whether pretty printers should be disabled in gdb.
@@ -254,8 +254,8 @@ mod directives {
254254 pub const LLVM_COV_FLAGS : & ' static str = "llvm-cov-flags" ;
255255 pub const FILECHECK_FLAGS : & ' static str = "filecheck-flags" ;
256256 pub const NO_AUTO_CHECK_CFG : & ' static str = "no-auto-check-cfg" ;
257- pub const ADD_CORE_STUBS : & ' static str = "add-core-stubs " ;
258- pub const CORE_STUBS_COMPILE_FLAGS : & ' static str = "core-stubs -compile-flags" ;
257+ pub const ADD_MINICORE : & ' static str = "add-minicore " ;
258+ pub const MINICORE_COMPILE_FLAGS : & ' static str = "minicore -compile-flags" ;
259259 pub const DISABLE_GDB_PRETTY_PRINTERS : & ' static str = "disable-gdb-pretty-printers" ;
260260 pub const COMPARE_OUTPUT_BY_LINES : & ' static str = "compare-output-by-lines" ;
261261}
@@ -311,8 +311,8 @@ impl TestProps {
311311 llvm_cov_flags : vec ! [ ] ,
312312 filecheck_flags : vec ! [ ] ,
313313 no_auto_check_cfg : false ,
314- add_core_stubs : false ,
315- core_stubs_compile_flags : vec ! [ ] ,
314+ add_minicore : false ,
315+ minicore_compile_flags : vec ! [ ] ,
316316 dont_require_annotations : Default :: default ( ) ,
317317 disable_gdb_pretty_printers : false ,
318318 compare_output_by_lines : false ,
@@ -601,18 +601,18 @@ impl TestProps {
601601
602602 config. set_name_directive ( ln, NO_AUTO_CHECK_CFG , & mut self . no_auto_check_cfg ) ;
603603
604- self . update_add_core_stubs ( ln, config) ;
604+ self . update_add_minicore ( ln, config) ;
605605
606606 if let Some ( flags) =
607- config. parse_name_value_directive ( ln, CORE_STUBS_COMPILE_FLAGS )
607+ config. parse_name_value_directive ( ln, MINICORE_COMPILE_FLAGS )
608608 {
609609 let flags = split_flags ( & flags) ;
610610 for flag in & flags {
611611 if flag == "--edition" || flag. starts_with ( "--edition=" ) {
612612 panic ! ( "you must use `//@ edition` to configure the edition" ) ;
613613 }
614614 }
615- self . core_stubs_compile_flags . extend ( flags) ;
615+ self . minicore_compile_flags . extend ( flags) ;
616616 }
617617
618618 if let Some ( err_kind) =
@@ -753,12 +753,12 @@ impl TestProps {
753753 self . pass_mode
754754 }
755755
756- fn update_add_core_stubs ( & mut self , ln : & DirectiveLine < ' _ > , config : & Config ) {
757- let add_core_stubs = config. parse_name_directive ( ln, directives:: ADD_CORE_STUBS ) ;
758- if add_core_stubs {
756+ fn update_add_minicore ( & mut self , ln : & DirectiveLine < ' _ > , config : & Config ) {
757+ let add_minicore = config. parse_name_directive ( ln, directives:: ADD_MINICORE ) ;
758+ if add_minicore {
759759 if !matches ! ( config. mode, TestMode :: Ui | TestMode :: Codegen | TestMode :: Assembly ) {
760760 panic ! (
761- "`add-core-stubs ` is currently only supported for ui, codegen and assembly test modes"
761+ "`add-minicore ` is currently only supported for ui, codegen and assembly test modes"
762762 ) ;
763763 }
764764
@@ -767,10 +767,10 @@ impl TestProps {
767767 if self . local_pass_mode ( ) . is_some_and ( |pm| pm == PassMode :: Run ) {
768768 // `minicore` can only be used with non-run modes, because it's `core` prelude stubs
769769 // and can't run.
770- panic ! ( "`add-core-stubs ` cannot be used to run the test binary" ) ;
770+ panic ! ( "`add-minicore ` cannot be used to run the test binary" ) ;
771771 }
772772
773- self . add_core_stubs = add_core_stubs ;
773+ self . add_minicore = add_minicore ;
774774 }
775775 }
776776}
0 commit comments