Skip to content

Commit 6a04ae5

Browse files
Update src/lib.rs
Improve error messages. Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
1 parent f65965c commit 6a04ae5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,8 @@ fn warn_on_failure(target: &Target, toolchain: &str, msg_info: MessageInfo) -> R
367367
if component.is_not_available() {
368368
shell::warn(format!("rust-std is not available for {target}"), msg_info)?;
369369
shell::note(
370-
"you may need to build components for the std library `-Z build-std=<components>`
371-
the available components are core, std, alloc, and proc_macro
372-
if no components are provided, cargo will build all components",
370+
format_args!(r#"you may need to build components for the target via `-Z build-std=<components>` or in your cross configuration specify `target.{target}.build-std`
371+
the available components are core, std, alloc, and proc_macro"#),
373372
msg_info,
374373
)?;
375374
}

0 commit comments

Comments
 (0)