Skip to content

Commit c92d770

Browse files
(not to be included in message) stop gating the example as it also works prior to 1.83.0
1 parent f018d13 commit c92d770

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

samples/rust/rust_print.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ fn arc_print() -> Result {
3434
// Uses `dbg` to print, will move `c` (for temporary debugging purposes).
3535
dbg!(c);
3636

37-
#[cfg(CONFIG_RUST_COERCE_POINTEE)]
3837
{
3938
use core::fmt::Display;
4039
fn arc_dyn_print(arc: &Arc<dyn Display>) {
@@ -50,12 +49,6 @@ fn arc_print() -> Result {
5049
arc_dyn_print(&a_str_display);
5150
}
5251

53-
#[cfg(not(CONFIG_RUST_COERCE_POINTEE))]
54-
pr_info!(
55-
"The demonstration for dynamic dispatching through Arc is skipped. "
56-
"To see the print-out from this example, please upgrade your Rust compiler to 1.83.0 or higher.\n"
57-
);
58-
5952
// Pretty-prints the debug formatting with lower-case hexadecimal integers.
6053
pr_info!("{:#x?}", a);
6154

0 commit comments

Comments
 (0)