1 parent 5a53dbc commit 7a3a942Copy full SHA for 7a3a942
2 files changed
compiler/rustc_target/src/spec/json.rs
@@ -152,6 +152,7 @@ impl Target {
152
forward!(is_like_wasm);
153
forward!(is_like_android);
154
forward!(is_like_vexos);
155
+ forward!(is_like_solana);
156
forward!(binary_format);
157
forward!(default_dwarf_version);
158
forward!(allows_weak_linkage);
@@ -350,6 +351,7 @@ impl ToJson for Target {
350
351
target_option_val!(is_like_wasm);
352
target_option_val!(is_like_android);
353
target_option_val!(is_like_vexos);
354
+ target_option_val!(is_like_solana);
355
target_option_val!(binary_format);
356
target_option_val!(default_dwarf_version);
357
target_option_val!(allows_weak_linkage);
@@ -572,6 +574,7 @@ struct TargetSpecJson {
572
574
is_like_wasm: Option<bool>,
573
575
is_like_android: Option<bool>,
576
is_like_vexos: Option<bool>,
577
+ is_like_solana: Option<bool>,
578
binary_format: Option<BinaryFormat>,
579
default_dwarf_version: Option<u32>,
580
allows_weak_linkage: Option<bool>,
library/std/src/panicking.rs
@@ -13,14 +13,15 @@ use core::panic::Location;
13
#[cfg(not(target_family = "solana"))]
14
use core::panic::PanicPayload;
15
16
-#[cfg(not(target_family = "solana"))]
17
// make sure to use the stderr output configured
18
// by libtest in the real copy of std
19
-#[cfg(all(test, not(target_family = "solana")))]
20
-use realstd::io::set_output_capture;
+#[cfg(not(target_family = "solana"))]
+#[cfg(test)]
+use realstd::io::try_set_output_capture;
21
22
use crate::any::Any;
23
-#[cfg(all(not(test), not(target_arch = "bpf"), not(target_arch = "sbf")))]
24
+#[cfg(not(test))]
25
use crate::io::try_set_output_capture;
26
27
use crate::mem::{self, ManuallyDrop};
0 commit comments