chore(bootstrap): capitalize {error, warning, info, note} tags · rust-lang/rust@d1e2640 (original) (raw)

`@@ -141,7 +141,7 @@ impl Step for Std {

`

141

141

`if builder.config.keep_stage.contains(&compiler.stage)

`

142

142

` || builder.config.keep_stage_std.contains(&compiler.stage)

`

143

143

`{

`

144

``

`-

builder.info("Warning: Using a potentially old libstd. This may not behave well.");

`

``

144

`+

builder.info("WARNING: Using a potentially old libstd. This may not behave well.");

`

145

145

``

146

146

`copy_third_party_objects(builder, &compiler, target);

`

147

147

`copy_self_contained_objects(builder, &compiler, target);

`

`@@ -817,8 +817,8 @@ impl Step for Rustc {

`

817

817

` builder.ensure(Std::new(compiler, target));

`

818

818

``

819

819

`if builder.config.keep_stage.contains(&compiler.stage) {

`

820

``

`-

builder.info("Warning: Using a potentially old librustc. This may not behave well.");

`

821

``

`` -

builder.info("Warning: Use --keep-stage-std if you want to rebuild the compiler when it changes");

``

``

820

`+

builder.info("WARNING: Using a potentially old librustc. This may not behave well.");

`

``

821

`` +

builder.info("WARNING: Use --keep-stage-std if you want to rebuild the compiler when it changes");

``

822

822

` builder.ensure(RustcLink::from_rustc(self, compiler));

`

823

823

`return;

`

824

824

`}

`

`@@ -1203,8 +1203,8 @@ fn is_codegen_cfg_needed(path: &TaskPath, run: &RunConfig<'_>) -> bool {

`

1203

1203

`}

`

1204

1204

`if needs_codegen_backend_config {

`

1205

1205

` run.builder.info(

`

1206

``

`-

"Warning: no codegen-backends config matched the requested path to build a codegen backend. \

`

1207

``

`-

Help: add backend to codegen-backends in config.toml.",

`

``

1206

`+

"WARNING: no codegen-backends config matched the requested path to build a codegen backend. \

`

``

1207

`+

HELP: add backend to codegen-backends in config.toml.",

`

1208

1208

`);

`

1209

1209

`return true;

`

1210

1210

`}

`

`@@ -1250,7 +1250,7 @@ impl Step for CodegenBackend {

`

1250

1250

``

1251

1251

`if builder.config.keep_stage.contains(&compiler.stage) {

`

1252

1252

` builder.info(

`

1253

``

`-

"Warning: Using a potentially old codegen backend. \

`

``

1253

`+

"WARNING: Using a potentially old codegen backend. \

`

1254

1254

` This may not behave well.",

`

1255

1255

`);

`

1256

1256

`// Codegen backends are linked separately from this step today, so we don't do

`

`@@ -1525,14 +1525,14 @@ impl Step for Sysroot {

`

1525

1525

`let sysroot_lib_rustlib_src_rust = sysroot_lib_rustlib_src.join("rust");

`

1526

1526

`if let Err(e) = symlink_dir(&builder.config, &builder.src, &sysroot_lib_rustlib_src_rust) {

`

1527

1527

`eprintln!(

`

1528

``

`` -

"warning: creating symbolic link {} to {} failed with {}",

``

``

1528

`` +

"WARNING: creating symbolic link {} to {} failed with {}",

``

1529

1529

` sysroot_lib_rustlib_src_rust.display(),

`

1530

1530

` builder.src.display(),

`

1531

1531

` e,

`

1532

1532

`);

`

1533

1533

`if builder.config.rust_remap_debuginfo {

`

1534

1534

`eprintln!(

`

1535

``

`` -

"warning: some tests/ui tests will fail when lacking {}",

``

``

1535

`` +

"WARNING: some tests/ui tests will fail when lacking {}",

``

1536

1536

` sysroot_lib_rustlib_src_rust.display(),

`

1537

1537

`);

`

1538

1538

`}

`

`@@ -1545,7 +1545,7 @@ impl Step for Sysroot {

`

1545

1545

`symlink_dir(&builder.config, &builder.src, &sysroot_lib_rustlib_rustcsrc_rust)

`

1546

1546

`{

`

1547

1547

`eprintln!(

`

1548

``

`` -

"warning: creating symbolic link {} to {} failed with {}",

``

``

1548

`` +

"WARNING: creating symbolic link {} to {} failed with {}",

``

1549

1549

` sysroot_lib_rustlib_rustcsrc_rust.display(),

`

1550

1550

` builder.src.display(),

`

1551

1551

` e,

`

`@@ -1986,7 +1986,7 @@ pub fn stream_cargo(

`

1986

1986

` builder.verbose(&format!("running: {cargo:?}"));

`

1987

1987

`let mut child = match cargo.spawn() {

`

1988

1988

`Ok(child) => child,

`

1989

``

`-

Err(e) => panic!("failed to execute command: {cargo:?}\nerror: {e}"),

`

``

1989

`+

Err(e) => panic!("failed to execute command: {cargo:?}\nERROR: {e}"),

`

1990

1990

`};

`

1991

1991

``

1992

1992

`// Spawn Cargo slurping up its JSON output. We'll start building up the

`

`@@ -2050,7 +2050,7 @@ pub fn strip_debug(builder: &Builder<'_>, target: TargetSelection, path: &Path)

`

2050

2050

`}

`

2051

2051

``

2052

2052

`let previous_mtime = FileTime::from_last_modification_time(&path.metadata().unwrap());

`

2053

``

`` -

// Note: output will propagate any errors here.

``

``

2053

`` +

// NOTE: output will propagate any errors here.

``

2054

2054

`output(Command::new("strip").arg("--strip-debug").arg(path));

`

2055

2055

``

2056

2056

`` // After running strip, we have to set the file modification time to what it was before,

``